diff python/test_burm.py @ 319:8d07a4254f04

Work on burg
author Windel Bouwman
date Sat, 18 Jan 2014 18:58:43 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/python/test_burm.py	Sat Jan 18 18:58:43 2014 +0100
@@ -0,0 +1,17 @@
+from tree import Tree
+from arm_burm import Matcher
+
+
+def main():
+    t = Tree('ASGNI',
+             Tree('ADDRLP'),
+             Tree('ADDI',
+                  Tree('CVCI', Tree('INDIRC', Tree('ADDRLP'))),
+                  Tree('CNSTI')
+                 )
+            )
+    print(t)
+    Matcher().gen(t)
+
+if __name__ == '__main__':
+    main()