Gramatron: Fix a typo in gnf_converter.py (#942)
This patch addresses the issue in #879, which fixes a typo in the `remove_left_recursion` method.
This commit is contained in:
parent
08be5f732e
commit
9e4a0513c6
@ -78,7 +78,7 @@ def remove_left_recursion(grammar):
|
||||
for rule in rules:
|
||||
tokens = gettokens(rule)
|
||||
if tokens[0] == lhs:
|
||||
left_recursion = False
|
||||
no_left_recursion = False
|
||||
break
|
||||
else:
|
||||
continue
|
||||
|
Loading…
x
Reference in New Issue
Block a user