Esempio n. 1
0
 def p_activity_7(self, p):
     """activity : VARIABLE "=" action subject IF condition END
                 | VARIABLE "=" action subject WITH condition END"""
     p[0] = Activity()
     p[0].variable = p[1]
     p[0].action = p[3]
     p[0].subjects = p[4]
     p[0].condition = p[6]
Esempio n. 2
0
 def p_activity_6(self, p):
     'activity : VARIABLE "=" action subject END'
     p[0] = Activity()
     p[0].variable = p[1]
     p[0].action = p[3]
     p[0].subjects = p[4]
Esempio n. 3
0
 def p_activity_5(self, p):
     'activity : VARIABLE "=" action END'
     p[0] = Activity()
     p[0].variable = p[1]
     p[0].action = p[3]