Exemplo n.º 1
0
 def single_expr_list(s):
     """parse list values, handle expr list in the end"""
     return AST.Expr_List([s[0]])
Exemplo n.º 2
0
 def mutiple_expr_list(s):
     """parse list values, handle expr list in the beginning or the middle"""
     # return AST.List_Val(s[0].get_expr_list, None, s[0].gettokentype())
     return AST.Expr_List(s[0].get_expr_list() + [s[2]])