Exemplo n.º 1
0
 def resolve(self, list):
     if len(list) == 2 and 'function_def' in list and 'assign' in list:
         return 'function_def'
     if 'grammar' in list and 'expr' in list:
         return 'expr'
     # print >> sys.stderr, 'resolve', str(list)
     return GenericASTBuilder.resolve(self, list)
Exemplo n.º 2
0
 def resolve(self, list):
     if len(list) == 2 and "function_def" in list and "assign" in list:
         return "function_def"
     if "grammar" in list and "expr" in list:
         return "expr"
     # print >> sys.stderr, 'resolve', str(list)
     return GenericASTBuilder.resolve(self, list)
Exemplo n.º 3
0
 def resolve(self, list):
     if len(list) == 2 and 'funcdef' in list and 'assign' in list:
         return 'funcdef'
     if 'grammar' in list and 'expr' in list:
         return 'expr'
     # print >> sys.stderr, 'resolve', str(list)
     return GenericASTBuilder.resolve(self, list)