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: handle case where subscript/index appears in expression position #398

Merged
merged 3 commits into from
Nov 15, 2023

Conversation

chrispcampbell
Copy link
Contributor

Fixes #397

See issue for more details. I updated the existing "subscript" integration test and also added new unit tests so there is pretty good coverage for this fix.

Copy link
Collaborator

@ToddFincannonEI ToddFincannonEI left a comment

Choose a reason for hiding this comment

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

I would probably have told them to rewrite their equation in idiomatic Vensim, but I agree it's good to have this capability for other cases, since it was easy to fix.

@chrispcampbell chrispcampbell merged commit 7ff1380 into main Nov 15, 2023
@chrispcampbell chrispcampbell deleted the chris/397-index-in-expression branch November 15, 2023 21:40
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.

Handle case where index (subscript) appears in expression position
2 participants