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

fix: allow numeric ranges in subscript range definitions #375

Merged
merged 7 commits into from
Oct 18, 2023

Conversation

ToddFincannonEI
Copy link
Collaborator

@ToddFincannonEI ToddFincannonEI commented Oct 16, 2023

Fixes #318

This PR works with an update to the antlr4-vensim parser (todd/9-numeric-range) to support numeric ranges in subscript range definitions. See SDE issue #318 and climateinteractive/antlr4-vensim#9 for details. I added a test in subscript.mdl to illustrate the issue.

@ToddFincannonEI ToddFincannonEI changed the title Todd/318 numeric range bug: allow numeric ranges in subscript range definitions (#318) Oct 16, 2023
@chrispcampbell chrispcampbell changed the title bug: allow numeric ranges in subscript range definitions (#318) fix: allow numeric ranges in subscript range definitions Oct 17, 2023
@ToddFincannonEI
Copy link
Collaborator Author

I refactored visitSubscriptList to match antlr4-vensim branch todd/9-numeric-range. I tested this fix with EPS code generation.

Copy link
Contributor

@chrispcampbell chrispcampbell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, I'll merge it shortly.

@chrispcampbell chrispcampbell merged commit da13dc4 into main Oct 18, 2023
3 checks passed
@chrispcampbell chrispcampbell deleted the todd/318-numeric-range branch October 18, 2023 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Subscript numeric range fails inside an index list
2 participants