From 7e3aaa1befa7129b9ee10cc11bf608ad8eaf0cbd Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Fri, 12 Jun 2020 15:19:54 +0200 Subject: [PATCH] fix: uncorrect reference to Sequence --- yapps/grammar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yapps/grammar.py b/yapps/grammar.py index 34f307c..7c2457c 100644 --- a/yapps/grammar.py +++ b/yapps/grammar.py @@ -22,7 +22,7 @@ from yapps import parsetree ###################################################################### def cleanup_choice(rule, lst): - if len(lst) == 0: return Sequence(rule, []) + if len(lst) == 0: return parsetree.Sequence(rule, []) if len(lst) == 1: return lst[0] return parsetree.Choice(rule, *tuple(lst))