def p_return_statement_2(self, p): """return_statement : RETURN expr SEMI | RETURN expr auto_semi """ p[0] = ast.Return(expr=p[2], lineno=p.lineno(2))
def p_return_statement_1(self, p): """return_statement : RETURN SEMI | RETURN auto_semi """ p[0] = ast.Return(lineno=p.lineno(0))