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

Postfix Operators #17

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

Conversation

Tschipp
Copy link
Contributor

@Tschipp Tschipp commented Sep 23, 2022

Adds postfix operatorts ++ and --,
which are compiled to (v.x=v.x+1;0)+v.x-1 and (v.x=v.x-1;0)+v.x+1 respectively.
Test 'v.x = 1 + v.y++ + 2;': 'v.x=1+(v.y=v.y+1;0)+v.y-1+2;' still fails, because the parse order is incorrect.

@Tschipp
Copy link
Contributor Author

Tschipp commented Sep 23, 2022

Not sure why the previous two commits are also included here

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.

1 participant