示例#1
0
 def p_motion_alwayslast_around_call_keyword(self, p):
     """ motion_alwayslast_around_call_keyword  : MOTION_ALWAYSLAST_AROUND_CALL LPAREN ID COMMA ID RPAREN SEMI
                                              | MOTION_ALWAYSLAST_AROUND_CALL LPAREN ID COMMA ID COMMA ID COMMA ID RPAREN SEMI
   """
     p[0] = c_ast.MotionCall(p[3] if len(p) == 12 else None,
                             p[5] if len(p) == 12 else p[3],
                             p[7] if len(p) == 12 else None,
                             p[9] if len(p) == 12 else p[5], None, "last",
                             "always", "around")
示例#2
0
 def p_motion_alwaysfirst_before_call_keyword(self, p):
     """ motion_alwaysfirst_before_call_keyword : MOTION_ALWAYSFIRST_BEFORE_CALL LPAREN ID COMMA ID RPAREN SEMI
                                              | MOTION_ALWAYSFIRST_BEFORE_CALL LPAREN ID COMMA ID COMMA ID COMMA ID RPAREN SEMI
   """
     p[0] = c_ast.MotionCall(p[3] if len(p) == 12 else None,
                             p[5] if len(p) == 12 else p[3],
                             p[7] if len(p) == 12 else None,
                             p[9] if len(p) == 12 else p[5], None, "first",
                             "always", "before")
示例#3
0
 def p_motion_prepend_around_call_keyword(self, p):
     """ motion_prepend_around_call_keyword  : MOTION_PREPEND_AROUND_CALL LPAREN ID COMMA ID RPAREN SEMI
                                           | MOTION_PREPEND_AROUND_CALL LPAREN ID COMMA ID COMMA ID COMMA ID RPAREN SEMI
   """
     p[0] = c_ast.MotionCall(p[3] if len(p) == 12 else None,
                             p[5] if len(p) == 12 else p[3],
                             p[7] if len(p) == 12 else None,
                             p[9] if len(p) == 12 else p[5], None, "first",
                             None, "around")
示例#4
0
 def p_motion_append_before_call_keyword(self, p):
     """ motion_append_before_call_keyword   : MOTION_APPEND_BEFORE_CALL LPAREN ID COMMA ID RPAREN SEMI
                                           | MOTION_APPEND_BEFORE_CALL LPAREN ID COMMA ID COMMA ID COMMA ID RPAREN SEMI
   """
     p[0] = c_ast.MotionCall(p[3] if len(p) == 12 else None,
                             p[5] if len(p) == 12 else p[3],
                             p[7] if len(p) == 12 else None,
                             p[9] if len(p) == 12 else p[5], None, "last",
                             None, "before")
示例#5
0
 def p_motion_prepend_advice_before_call_keyword(self, p):
     """ motion_prepend_advice_before_call_keyword  : MOTION_PREPEND_ADVICE_BEFORE_CALL LPAREN ID COMMA ID COMMA ID RPAREN SEMI
                                                  | MOTION_PREPEND_ADVICE_BEFORE_CALL LPAREN ID COMMA ID COMMA ID COMMA ID COMMA ID RPAREN SEMI
   """
     p[0] = c_ast.MotionCall(p[3] if len(p) == 12 else None,
                             p[5] if len(p) == 12 else p[3],
                             p[7] if len(p) == 12 else None,
                             p[9] if len(p) == 12 else p[5],
                             p[11] if len(p) == 12 else p[7], "first", None,
                             "before")
示例#6
0
 def p_motion_append_advice_around_call_keyword(self, p):
     """ motion_append_advice_around_call_keyword : MOTION_APPEND_ADVICE_AROUND_CALL LPAREN ID COMMA ID COMMA ID RPAREN SEMI
                                                | MOTION_APPEND_ADVICE_AROUND_CALL LPAREN ID COMMA ID COMMA ID COMMA ID COMMA ID RPAREN SEMI
   """
     p[0] = c_ast.MotionCall(p[3] if len(p) == 12 else None,
                             p[5] if len(p) == 12 else p[3],
                             p[7] if len(p) == 12 else None,
                             p[9] if len(p) == 12 else p[5],
                             p[11] if len(p) == 12 else p[7], "last", None,
                             "around")
示例#7
0
 def p_motion_append_after_call_keyword(self, p):
     """ motion_append_after_call_keyword    : MOTION_APPEND_AFTER_CALL LPAREN ID COMMA ID RPAREN SEMI
   """
     p[0] = c_ast.MotionCall(p[3], p[5], None, "last", None, "after")