diff --git a/python_arborist.py b/python_arborist.py index b79f33ee58b238f22434d6b56a01e9862f0c6dab..00ccc6ff71e5705f1e59db49749b8c83432f5666 100644 --- a/python_arborist.py +++ b/python_arborist.py @@ -265,7 +265,7 @@ class TreeNode: return str(self.language_element) + str(self.subnodes) -def walk_the_tree(tree, level = 0): +def walk_the_tree(tree, level = 1): if tree == None: return @@ -298,7 +298,7 @@ if __name__ == '__main__': init_data = [OPENPAREN, 0xE101, ADDOP, OPENPAREN, OPENPAREN, 0XE102,CLOSEPAREN, CLOSEPAREN, ADDOP, 0XE103, CLOSEPAREN, MULTOP, 0XE104, ENDOFPARSE] - + with m.Switch(nine.input_memory_addr): for addr,data in enumerate(init_data): with m.Case(addr):