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

Assignment tokens #90

Merged
merged 14 commits into from
Aug 24, 2024
Merged

Assignment tokens #90

merged 14 commits into from
Aug 24, 2024

Conversation

Proxihox
Copy link
Contributor

@Proxihox Proxihox commented Aug 22, 2024

PR Description

Added Assignment and, assignment or, assignment xor, xor , assignemnt modulus and modulus to the translator frontend.
Also wrote a test function for the lexer for most of the operators and assignment operators.

Related Issue

closes #48
closes #50
closes #51
closes #52
closes #53

shader Sample

"""
int a = 1;
a += 1;
a *= 2;
a /= a;
a -= -1;
a %= 2;
a &= 1;
a |= 1;
a ^= 1;
"""

Side note: I must have mistakenly included the changes in 'translator/lexer.py' in my previous pull request so its not showing up as a change here.

@NripeshN
Copy link
Member

Hi @Proxihox
Could you pease resolve the merge conflicts

Copy link
Contributor

@samthakur587 samthakur587 left a comment

Choose a reason for hiding this comment

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

hii @Proxihox you only added the tests where is actual changes for the translator laxer . can you please add those also.

@Proxihox
Copy link
Contributor Author

Hi @samthakur587 , I mentioned a sidenote at the end of my PR. Lines 48,49,50,55 and 56 of 'lexer.py' already have the code from my previous PR. I'll try to avoid such confusions from happening next time.

Copy link
Contributor

@samthakur587 samthakur587 left a comment

Choose a reason for hiding this comment

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

hii @Proxihox yeah only tests are needed the tokens are already there . your tests are generating correct tokens . thanks for adding the tests .

everything LGTM 🚀

@samthakur587 samthakur587 merged commit eed691c into CrossGL:main Aug 24, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants