예제 #1
0
 def choice(self, ast, *args):
     if len(ast) == 1:
         return simplify_list(ast[0])
     return ast
예제 #2
0
 def element(self, ast, *args):
     return simplify_list(ast)
예제 #3
0
 def sequence(self, ast, *args):
     return simplify_list(ast)
예제 #4
0
 def group(self, ast, *args):
     return simplify_list(ast)
예제 #5
0
 def choice(self, ast, *args):
     if len(ast) == 1:
         return simplify_list(ast[0])
     return ast
예제 #6
0
 def sequence(self, ast, *args):
     return simplify_list(ast)
예제 #7
0
 def element(self, ast, *args):
     return simplify_list(ast)
예제 #8
0
 def group(self, ast, *args):
     return simplify_list(ast)