Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subscript numeric range fails inside an index list #318

Closed
ToddFincannonEI opened this issue Apr 27, 2023 · 0 comments · Fixed by #375 or #380
Closed

Subscript numeric range fails inside an index list #318

ToddFincannonEI opened this issue Apr 27, 2023 · 0 comments · Fixed by #375 or #380
Assignees

Comments

@ToddFincannonEI
Copy link
Collaborator

Subscript ranges can include a numeric range that abbreviates a sequence of subscript indices as in the ref sample model.

Target: (t1-t3)

The code generator 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:

DimC: C1, (C2-C4), C5
t[DimC] = 1

Fixing this will require an antlr4-vensim grammar change and corresponding support in the code generator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant