Recur to sub-rules in a deterministic order in expand_repeats
This commit is contained in:
parent
7587353ab6
commit
5f40adb70c
1 changed files with 3 additions and 4 deletions
|
|
@ -36,10 +36,9 @@ class ExpandRepeats {
|
|||
},
|
||||
|
||||
[&](const rules::Seq &sequence) {
|
||||
return rules::Seq{
|
||||
apply(*sequence.left),
|
||||
apply(*sequence.right)
|
||||
};
|
||||
auto left = apply(*sequence.left);
|
||||
auto right = apply(*sequence.right);
|
||||
return rules::Seq{left, right};
|
||||
},
|
||||
|
||||
[&](const rules::Repeat &repeat) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue