Commit fe9da1b0 authored by Igor Dejanovic's avatar Igor Dejanovic

Small change. Removed unused code.

parent e76e6c8c
...@@ -189,7 +189,6 @@ class ParsingExpression(object): ...@@ -189,7 +189,6 @@ class ParsingExpression(object):
if parser.debug: if parser.debug:
print("** Cache hit for [{}, {}] = '{}'" print("** Cache hit for [{}, {}] = '{}'"
.format(self.name, c_pos, str(result))) .format(self.name, c_pos, str(result)))
if parser.debug:
print("<< Leaving rule {}".format(self.name)) print("<< Leaving rule {}".format(self.name))
return result return result
...@@ -259,7 +258,6 @@ class Sequence(ParsingExpression): ...@@ -259,7 +258,6 @@ class Sequence(ParsingExpression):
if result: if result:
results.append(result) results.append(result)
except NoMatch as m: except NoMatch as m:
# parser.position = self.c_pos # Backtracking
self._nm_change_rule(m, parser) self._nm_change_rule(m, parser)
raise raise
......
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