Exemplo n.º 1
0
 def single_line_stmt(s):
     """parse single-line statements"""
     return AST.Stmt_List([s[0]])
Exemplo n.º 2
0
        def multi_line_stmt(s):
            """parse multi-line statements"""

            # append the statement to the statements list
            return AST.Stmt_List(s[0].get_stmt_list() + [s[1]])