comparison python/c3/visitor.py @ 220:3f6c30a5d234

Major change in expression parsing to enable pointers and structs
author Windel Bouwman
date Sat, 06 Jul 2013 21:32:20 +0200
parents c1ccb1cb4cef
children c3f1ce8b638f
comparison
equal deleted inserted replaced
219:1fa3e0050b49 220:3f6c30a5d234
39 elif type(node) is ReturnStatement: 39 elif type(node) is ReturnStatement:
40 self.do(node.expr) 40 self.do(node.expr)
41 elif type(node) is Binop: 41 elif type(node) is Binop:
42 self.do(node.a) 42 self.do(node.a)
43 self.do(node.b) 43 self.do(node.b)
44 elif type(node) is Unop:
45 self.do(node.a)
44 elif type(node) is Constant: 46 elif type(node) is Constant:
45 self.do(node.value) 47 self.do(node.value)
46 elif type(node) in [EmptyStatement, VariableUse, Variable, Literal, FunctionType]: 48 elif type(node) in [EmptyStatement, VariableUse, Variable, Literal, FunctionType]:
47 # Those nodes do not have child nodes. 49 # Those nodes do not have child nodes.
48 pass 50 pass