diff python/ppci/c3/visitor.py @ 315:084cccaa5deb

Added console and screen
author Windel Bouwman
date Sat, 21 Dec 2013 10:03:01 +0100
parents 04cf4d26a3bc
children 5477e499b039
line wrap: on
line diff
--- a/python/ppci/c3/visitor.py	Wed Dec 18 20:22:20 2013 +0100
+++ b/python/ppci/c3/visitor.py	Sat Dec 21 10:03:01 2013 +0100
@@ -35,6 +35,11 @@
         elif type(node) is While:
             self.do(node.condition)
             self.do(node.statement)
+        elif type(node) is For:
+            self.do(node.init)
+            self.do(node.condition)
+            self.do(node.final)
+            self.do(node.statement)
         elif type(node) is Assignment:
             self.do(node.lval)
             self.do(node.rval)