Skip to content

fix: handle case where subscript/index appears in expression position#398

Merged
chrispcampbell merged 3 commits into
mainfrom
chris/397-index-in-expression
Nov 15, 2023
Merged

fix: handle case where subscript/index appears in expression position#398
chrispcampbell merged 3 commits into
mainfrom
chris/397-index-in-expression

Conversation

@chrispcampbell
Copy link
Copy Markdown
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
Copy Markdown
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