Open pwochner opened 3 months ago
# grammar.jl Color = |(0:9) Pos = |(1:30)
When expanded, the grammar has a rule for each value for Color (from 0 to 9), but for Pos, the grammar only covers values 10 to 30.
Color
Pos
We could use a tuple for Pos, but that would make the grammar very big. Can we think of a elegant solution for this?
As discussed previously, I see multiple solutions:
Color = Int(1) | ...
As the expression differs, this should work.
When expanded, the grammar has a rule for each value for
Color
(from 0 to 9), but forPos
, the grammar only covers values 10 to 30.We could use a tuple for
Pos
, but that would make the grammar very big. Can we think of a elegant solution for this?