|
@@ -510,8 +510,7 @@ class Grammar: |
|
|
|
|
|
|
|
|
empty_indices = [x==_EMPTY for i, x in enumerate(expansion)] |
|
|
empty_indices = [x==_EMPTY for i, x in enumerate(expansion)] |
|
|
if any(empty_indices): |
|
|
if any(empty_indices): |
|
|
assert options |
|
|
|
|
|
exp_options = copy(options) |
|
|
|
|
|
|
|
|
exp_options = copy(options) or RuleOptions() |
|
|
exp_options.empty_indices = empty_indices |
|
|
exp_options.empty_indices = empty_indices |
|
|
expansion = [x for x in expansion if x!=_EMPTY] |
|
|
expansion = [x for x in expansion if x!=_EMPTY] |
|
|
else: |
|
|
else: |
|
|