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