comparison python/test_burm.py @ 319:8d07a4254f04

Work on burg
author Windel Bouwman
date Sat, 18 Jan 2014 18:58:43 +0100
parents
children
comparison
equal deleted inserted replaced
318:e84047f29c78 319:8d07a4254f04
1 from tree import Tree
2 from arm_burm import Matcher
3
4
5 def main():
6 t = Tree('ASGNI',
7 Tree('ADDRLP'),
8 Tree('ADDI',
9 Tree('CVCI', Tree('INDIRC', Tree('ADDRLP'))),
10 Tree('CNSTI')
11 )
12 )
13 print(t)
14 Matcher().gen(t)
15
16 if __name__ == '__main__':
17 main()