Closed ToddFincannonEI closed 1 year ago
I moved the subscriptSequence
rule to the Expr.g4
grammar, so it could be used in the subscriptList
rule. This change works with a corresponding change in the 318-numeric-range
branch of SDEverywhere that handles the new grammar. This requires bumping the antlr4-vensim
version number to 0.6.2.
Subscript ranges can include a numeric range that abbreviates a sequence of subscript indices as in the ref sample model.
The ANTLR4 grammar only handles this when the numeric range is the entire subscript definition as shown above. It fails when the numeric range occurs inside a subscript index list like this: