Ejemplo n.º 1
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)
Ejemplo n.º 2
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)
Ejemplo 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)
Ejemplo n.º 4
0
	def resolve(self, list):
		if len(list) == 2 and 'funcdef' in list and 'assign' in list:
			return 'funcdef'
		#sys.stderr.writelines( ['resolve ', str(list), '\n'] )
		return GenericASTBuilder.resolve(self, list)
Ejemplo n.º 5
0
	def resolve(self, list):
		if len(list) == 2 and 'funcdef' in list and 'assign' in list:
			return 'funcdef'
		return GenericASTBuilder.resolve(self, list)