fix: uncorrect reference to Sequence
This commit is contained in:
parent
a4e5c8c3f4
commit
7e3aaa1bef
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue