コード例 #1
0
ファイル: semantics.py プロジェクト: vdavid4472/TatSu
 def choice(self, ast, *args):
     if len(ast) == 1:
         return simplify_list(ast[0])
     return ast
コード例 #2
0
ファイル: semantics.py プロジェクト: vdavid4472/TatSu
 def element(self, ast, *args):
     return simplify_list(ast)
コード例 #3
0
ファイル: semantics.py プロジェクト: vdavid4472/TatSu
 def sequence(self, ast, *args):
     return simplify_list(ast)
コード例 #4
0
ファイル: semantics.py プロジェクト: vdavid4472/TatSu
 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)