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")
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")
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")
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")
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")
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")
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")