diff 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
line wrap: on
line diff
--- a/python/c3/visitor.py	Sat Jul 06 12:38:09 2013 +0200
+++ b/python/c3/visitor.py	Sat Jul 06 21:32:20 2013 +0200
@@ -41,6 +41,8 @@
       elif type(node) is Binop:
          self.do(node.a)
          self.do(node.b)
+      elif type(node) is Unop:
+            self.do(node.a)
       elif type(node) is Constant:
          self.do(node.value)
       elif type(node) in [EmptyStatement, VariableUse, Variable, Literal, FunctionType]: