Compare commits
No commits in common. "3eadf63db3f447234274dd86e5dbd48875ea0698" and "dfb980e36699c6cea86f19a0581a3ed9e90b9668" have entirely different histories.
3eadf63db3
...
dfb980e366
@ -46,6 +46,7 @@
|
|||||||
while i < elmts.len() {
|
while i < elmts.len() {
|
||||||
let elmt = elmts.at(i)
|
let elmt = elmts.at(i)
|
||||||
if elmt.type == "grp" {
|
if elmt.type == "grp" {
|
||||||
|
let grp-elmts = elmt.elmts
|
||||||
elmt.elmts = elmt.elmts.map(e => {
|
elmt.elmts = elmt.elmts.map(e => {
|
||||||
if e.type == "seq" {
|
if e.type == "seq" {
|
||||||
if e.p1 == "?" {
|
if e.p1 == "?" {
|
||||||
@ -59,17 +60,12 @@
|
|||||||
elmts.at(i) = elmt
|
elmts.at(i) = elmt
|
||||||
elmts = (
|
elmts = (
|
||||||
elmts.slice(0, i + 1) +
|
elmts.slice(0, i + 1) +
|
||||||
elmt.elmts +
|
grp-elmts +
|
||||||
((
|
((
|
||||||
type: "grp-end",
|
type: "grp-end"
|
||||||
start-i: i
|
|
||||||
),) +
|
),) +
|
||||||
elmts.slice(i+1)
|
elmts.slice(i+1)
|
||||||
)
|
)
|
||||||
} else if elmt.type == "grp-end" {
|
|
||||||
// Put back elements in group because they might have changed
|
|
||||||
elmts.at(elmt.start-i).elmts = elmts.slice(elmt.start-i + 1, i)
|
|
||||||
|
|
||||||
} else if elmt.type == "seq" {
|
} else if elmt.type == "seq" {
|
||||||
if elmt.enable-dst {
|
if elmt.enable-dst {
|
||||||
activation-history.push(elmt)
|
activation-history.push(elmt)
|
||||||
|
@ -36,9 +36,6 @@
|
|||||||
max-i = calc.max(max-i, i1)
|
max-i = calc.max(max-i, i1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if max-i < min-i {
|
|
||||||
(min-i, max-i) = (max-i, min-i)
|
|
||||||
}
|
|
||||||
return (min-i, max-i)
|
return (min-i, max-i)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user