diff python/c3/astnodes.py @ 176:5fd02aa38b42

Added while loop code generation
author Windel Bouwman
date Sat, 20 Apr 2013 12:00:51 +0200
parents 0b5b2ee6b435
children 46d62dadd61b
line wrap: on
line diff
--- a/python/c3/astnodes.py	Fri Apr 19 22:15:54 2013 +0200
+++ b/python/c3/astnodes.py	Sat Apr 20 12:00:51 2013 +0200
@@ -156,9 +156,9 @@
       return 'IF-statement'
 
 class WhileStatement(Node):
-   def __init__(self, condition, statements):
+   def __init__(self, condition, statement):
       self.condition = condition
-      self.dostatements = statements
+      self.dostatement = statement
    def __repr__(self):
       return 'WHILE-statement'