diff python/c3/visitor.py @ 222:c3f1ce8b638f

Fixup of parser
author Windel Bouwman
date Tue, 09 Jul 2013 17:36:31 +0200
parents 3f6c30a5d234
children 1c7364bd74c7
line wrap: on
line diff
--- a/python/c3/visitor.py	Mon Jul 08 22:21:44 2013 +0200
+++ b/python/c3/visitor.py	Tue Jul 09 17:36:31 2013 +0200
@@ -43,6 +43,10 @@
          self.do(node.b)
       elif type(node) is Unop:
             self.do(node.a)
+      elif type(node) is ExpressionStatement:
+            self.do(node.ex)
+      elif type(node) is TypeCast:
+            self.do(node.a)
       elif type(node) is Constant:
          self.do(node.value)
       elif type(node) in [EmptyStatement, VariableUse, Variable, Literal, FunctionType]: