Mercurial > lcfOS
diff 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 |
line wrap: on
line diff
--- a/python/ppci/c3/astnodes.py Wed Dec 18 20:22:20 2013 +0100 +++ b/python/ppci/c3/astnodes.py Sat Dec 21 10:03:01 2013 +0100 @@ -354,3 +354,15 @@ def __repr__(self): return 'WHILE-statement' + + +class For(Statement): + def __init__(self, init, condition, final, statement, loc): + super().__init__(loc) + self.init = init + self.condition = condition + self.final = final + self.statement = statement + + def __repr__(self): + return 'FOR-statement'