-
Notifications
You must be signed in to change notification settings - Fork 65
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
Implement tokens for unsigned int and double data types #68
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.
change unsigned int
to uint
crosstl/src/translator/lexer.py
Outdated
@@ -17,6 +17,8 @@ | |||
("FLOAT_NUMBER", r"\d*\.\d+|\d+\.\d*"), | |||
("FLOAT", r"\bfloat\b"), | |||
("INT", r"\bint\b"), | |||
("UINT", r"\bunsigned\s+int\b"), |
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.
hii @rigved-desai for the UINT token we are defining uint
not unsigned int
can you please change it to uint
only .
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.
Updated in latest commit 👍
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.
great work @rigved-desai everything LGTM 🚀
* feat: Implement tokens for unsigned int and double data types. * chore: Add test for data type tokenization * feat: Refactor unsigned int to uint after review and edit tests for same
* Added else if to translator * Removed comment(s) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * added else if support to Directx backend * added Assignment and, assignment or, assignment xor, xor , assignemnt modulus and modulus to the translator frontend. closes #48,#50,#51,#52,#53 * tests for else_if added * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Implement tokens for unsigned int and double data types (#68) * feat: Implement tokens for unsigned int and double data types. * chore: Add test for data type tokenization * feat: Refactor unsigned int to uint after review and edit tests for same * fix for multiple else if conditionals * more fixes for multiple else if conditionals * More fixes * Missing newline * fix CI error * fix CI error * Removed name=main * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Added tests for multiple if statements --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Nripesh Niketan <nripesh14@gmail.com> Co-authored-by: Prithvi-Rao <ee22b024@smail.iitm.ac.in> Co-authored-by: rigved-desai <109571041+rigved-desai@users.noreply.github.com>
PR Description
This PR introduces the following changes:
uint
(UINT
) anddouble
(DOUBLE
) have been implemented inlexer.py
.test_lexer.py
,Related Issue
This PR attempts to solve the following issues:
Closes #58
Closes #59
Checklist