Mercurial > lcfOS
comparison python/c3/visitor.py @ 186:46d62dadd61b
Improved testsuite
author | Windel Bouwman |
---|---|
date | Sat, 25 May 2013 14:26:25 +0200 |
parents | 5fd02aa38b42 |
children | c1ccb1cb4cef |
comparison
equal
deleted
inserted
replaced
185:51a6440d6398 | 186:46d62dadd61b |
---|---|
42 pass | 42 pass |
43 elif type(node) is WhileStatement: | 43 elif type(node) is WhileStatement: |
44 self.visit(node.condition) | 44 self.visit(node.condition) |
45 self.visit(node.dostatement) | 45 self.visit(node.dostatement) |
46 else: | 46 else: |
47 print('UNK visit "{0}"'.format(node)) | 47 raise Exception('UNK visit "{0}"'.format(node)) |
48 self.f2(node) | 48 self.f2(node) |
49 | 49 |
50 |