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))