comparison python/ppci/c3/astnodes.py @ 315:084cccaa5deb

Added console and screen
author Windel Bouwman
date Sat, 21 Dec 2013 10:03:01 +0100
parents 2e7f55319858
children 56e6ff84f646
comparison
equal deleted inserted replaced
314:38f5f298ce0e 315:084cccaa5deb
352 self.condition = condition 352 self.condition = condition
353 self.statement = statement 353 self.statement = statement
354 354
355 def __repr__(self): 355 def __repr__(self):
356 return 'WHILE-statement' 356 return 'WHILE-statement'
357
358
359 class For(Statement):
360 def __init__(self, init, condition, final, statement, loc):
361 super().__init__(loc)
362 self.init = init
363 self.condition = condition
364 self.final = final
365 self.statement = statement
366
367 def __repr__(self):
368 return 'FOR-statement'