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

- some cleanup

parent a8103ec5
......@@ -819,7 +819,6 @@ class Forward(Parser):
self.cycle_reached = False
def __deepcopy__(self, memo):
assert id(self) not in memo
duplicate = self.__class__()
memo[id(self)] = duplicate
parser = copy.deepcopy(self.parser, memo)
......
......@@ -80,7 +80,7 @@ class TestPopRetrieve:
assert not syntax_tree.collect_errors()
if WRITE_LOGS:
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):
teststr = """
......@@ -95,7 +95,7 @@ class TestPopRetrieve:
assert not syntax_tree.collect_errors()
if WRITE_LOGS:
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__":
......
......@@ -56,7 +56,7 @@ class TestLeftRecursion:
assert snippet == str(syntax_tree)
if WRITE_LOGS:
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):
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