From 9e4a0513c62ce2c767644400af3bcd9da8d88100 Mon Sep 17 00:00:00 2001 From: Ao Li <5557706+aoli-al@users.noreply.github.com> Date: Tue, 13 Dec 2022 11:27:16 -0500 Subject: [PATCH] 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. --- utils/gramatron/gnf_converter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/gramatron/gnf_converter.py b/utils/gramatron/gnf_converter.py index d942b91c00..0bc70d1555 100755 --- a/utils/gramatron/gnf_converter.py +++ b/utils/gramatron/gnf_converter.py @@ -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