Commit 84e7061a authored by Eckhart Arnold's avatar Eckhart Arnold
Browse files

- some cleanup

parent a8103ec5
...@@ -819,7 +819,6 @@ class Forward(Parser): ...@@ -819,7 +819,6 @@ class Forward(Parser):
self.cycle_reached = False self.cycle_reached = False
def __deepcopy__(self, memo): def __deepcopy__(self, memo):
assert id(self) not in memo
duplicate = self.__class__() duplicate = self.__class__()
memo[id(self)] = duplicate memo[id(self)] = duplicate
parser = copy.deepcopy(self.parser, memo) parser = copy.deepcopy(self.parser, memo)
......
...@@ -80,7 +80,7 @@ class TestPopRetrieve: ...@@ -80,7 +80,7 @@ class TestPopRetrieve:
assert not syntax_tree.collect_errors() assert not syntax_tree.collect_errors()
if WRITE_LOGS: if WRITE_LOGS:
syntax_tree.log("test_PopRetrieve_single_line", '.cst') syntax_tree.log("test_PopRetrieve_single_line", '.cst')
self.minilang_parser.log_parsing_history("test_PopRetrieve_single_line") # self.minilang_parser.log_parsing_history("test_PopRetrieve_single_line")
def test_multi_line(self): def test_multi_line(self):
teststr = """ teststr = """
...@@ -95,7 +95,7 @@ class TestPopRetrieve: ...@@ -95,7 +95,7 @@ class TestPopRetrieve:
assert not syntax_tree.collect_errors() assert not syntax_tree.collect_errors()
if WRITE_LOGS: if WRITE_LOGS:
syntax_tree.log("test_PopRetrieve_multi_line", '.cst') syntax_tree.log("test_PopRetrieve_multi_line", '.cst')
self.minilang_parser.log_parsing_history("test_PopRetrieve_multi_line") # self.minilang_parser.log_parsing_history("test_PopRetrieve_multi_line")
if __name__ == "__main__": if __name__ == "__main__":
......
...@@ -56,7 +56,7 @@ class TestLeftRecursion: ...@@ -56,7 +56,7 @@ class TestLeftRecursion:
assert snippet == str(syntax_tree) assert snippet == str(syntax_tree)
if WRITE_LOGS: if WRITE_LOGS:
syntax_tree.log("test_LeftRecursion_direct", '.cst') syntax_tree.log("test_LeftRecursion_direct", '.cst')
self.minilang_parser1.log_parsing_history("test_LeftRecursion_direct") # self.minilang_parser1.log_parsing_history("test_LeftRecursion_direct")
def test_indirect_left_recursion(self): def test_indirect_left_recursion(self):
pass pass
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment