comparison python/c3/visitor.py @ 169:ee0d30533dae

Added more tests and improved the diagnostic update
author Windel Bouwman
date Sat, 23 Mar 2013 18:34:41 +0100
parents 0b5b2ee6b435
children 5fd02aa38b42
comparison
equal deleted inserted replaced
168:49f1ab80d040 169:ee0d30533dae
39 self.visit(node.value) 39 self.visit(node.value)
40 elif type(node) in [EmptyStatement, VariableUse, Variable, Literal, FunctionType]: 40 elif type(node) in [EmptyStatement, VariableUse, Variable, Literal, FunctionType]:
41 # Those nodes do not have child nodes. 41 # Those nodes do not have child nodes.
42 pass 42 pass
43 else: 43 else:
44 print('UNK visit', node) 44 print('UNK visit "{0}"'.format(node))
45 self.f2(node) 45 self.f2(node)
46 46
47 47