Mercurial > lcfOS
comparison 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 |
comparison
equal
deleted
inserted
replaced
314:38f5f298ce0e | 315:084cccaa5deb |
---|---|
32 self.do(node.condition) | 32 self.do(node.condition) |
33 self.do(node.truestatement) | 33 self.do(node.truestatement) |
34 self.do(node.falsestatement) | 34 self.do(node.falsestatement) |
35 elif type(node) is While: | 35 elif type(node) is While: |
36 self.do(node.condition) | 36 self.do(node.condition) |
37 self.do(node.statement) | |
38 elif type(node) is For: | |
39 self.do(node.init) | |
40 self.do(node.condition) | |
41 self.do(node.final) | |
37 self.do(node.statement) | 42 self.do(node.statement) |
38 elif type(node) is Assignment: | 43 elif type(node) is Assignment: |
39 self.do(node.lval) | 44 self.do(node.lval) |
40 self.do(node.rval) | 45 self.do(node.rval) |
41 elif type(node) is FunctionCall: | 46 elif type(node) is FunctionCall: |