def p_if_else_statement(p): """statement : IF '(' expression ')' statement ELSE statement""" p[0] = ast.IfStmt(p[3], p[5], p[7])
def p_if_statement(p): """statement : IF '(' expression ')' statement %prec IFX""" p[0] = ast.IfStmt(p[3], p[5])