Do you really need the notation extension?
martinthomson opened this issue · comments
x(A..B) y(C..B-len(x))
indicates thatx
can be of any length betweenA
andB
, andy
can be of any length betweenC
andB
provided that(len(x) + len(y))
does not exceedB
.
This might be achieved as follows:
Outer {
Inner (α..B), <-- α = A + C
}
Inner {
x(A..B),
y(C..B),
}
I'll should also point out that α
there is optional and you can also do:
Outer {
Inner (..β),
}
Inner {
x(A..B),
y(C..D),
}
For any value of β
, though presumably β
is at least max(B, D)
, it could reasonably be any value up to B+D
.
closed by #207