Esempio n. 1
0
 def choice(self, ast, *args):
     if len(ast) == 1:
         return simplify_list(ast[0])
     return ast
Esempio n. 2
0
 def element(self, ast, *args):
     return simplify_list(ast)
Esempio n. 3
0
 def sequence(self, ast, *args):
     return simplify_list(ast)
Esempio n. 4
0
 def group(self, ast, *args):
     return simplify_list(ast)
 def choice(self, ast, *args):
     if len(ast) == 1:
         return simplify_list(ast[0])
     return ast
 def sequence(self, ast, *args):
     return simplify_list(ast)
 def element(self, ast, *args):
     return simplify_list(ast)
 def group(self, ast, *args):
     return simplify_list(ast)