diff python/c3/visitor.py @ 167:0b5b2ee6b435

Added 2 unit tests
author Windel Bouwman
date Fri, 22 Mar 2013 17:40:13 +0100
parents da0087b82fbe
children ee0d30533dae
line wrap: on
line diff
--- a/python/c3/visitor.py	Fri Mar 22 16:15:31 2013 +0100
+++ b/python/c3/visitor.py	Fri Mar 22 17:40:13 2013 +0100
@@ -24,9 +24,9 @@
          self.visit(node.condition)
          self.visit(node.truestatement)
          self.visit(node.falsestatement)
-      elif type(node) is ProcedureCall:
-         pass
-         # TODO
+      elif type(node) is FunctionCall:
+         for arg in node.args:
+            self.visit(arg)
       elif type(node) is Assignment:
          self.visit(node.lval)
          self.visit(node.rval)