-
Notifications
You must be signed in to change notification settings - Fork 89
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
Adding new tokens #244
base: main
Are you sure you want to change the base?
Adding new tokens #244
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add the tests for this too? You can add them here: tests/test_translator/test_lexer.py
|
This pull request has been marked as stale because it has been inactive for more than 14 days. Please update this pull request or it will be automatically closed in 7 days. |
Summary
Adds support and verifying for various tokens in the lexer.py, including bitwise operators (
BITWISE_AND
,BITWISE_OR
,BITWISE_XOR
,BITWISE_NOT
), assignment operators (ASSIGN_AND
,ASSIGN_OR
,ASSIGN_XOR
,ASSIGN_MOD
,ASSIGN_SHIFT_LEFT
,ASSIGN_SHIFT_RIGHT
), logical operators (LOGICAL_AND
,LOGICAL_OR
), and data types (DOUBLE
,UNSIGNED_INT
). These updates expand the lexers.py capabilities to identify and process these tokens accurately.Related Issue
closes #61
fixes #61
resolves #61
Changes
DOUBLE
andUNSIGNED_INT
to theTOKENS
dictionary.Shader Sample (Optional)
N/A
Testing
Checklist