fix: uncorrect reference to Sequence

This commit is contained in:
Laurent Peuch 2020-06-12 15:19:54 +02:00
parent a4e5c8c3f4
commit 7e3aaa1bef

View file

@ -22,7 +22,7 @@ from yapps import parsetree
###################################################################### ######################################################################
def cleanup_choice(rule, lst): 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] if len(lst) == 1: return lst[0]
return parsetree.Choice(rule, *tuple(lst)) return parsetree.Choice(rule, *tuple(lst))