Task: Add Support for Additional Operators and Keywords in the DirectX Backend
This task is focused on extending the functionality of the DirectX backend by adding support for several new tokens. These tokens must be added to the lexer.py, properly parsed in parser.py, and correctly translated in directxtocrossglcodegen.py to ensure full compatibility within the CrossTL ecosystem.
Update lexer.py:
Add new operators and keywords for each task as given .
Update parser.py:
Modify the parser to ensure that the new tokens are recognized and processed accurately.
Update directxtocrossglcodegen.py:
Ensure that these tokens are properly translated from HLSL to CrossGL. Extend the logic for code generation to handle these new operators and keywords in DirectX shader code.
Add Bitwise Operators:
Purpose: Handle bitwise operations.
Tokens to Add:
[ ] #178
[x] #179
[x] #180
[x] #181
[ ] #182
Add Logical Operators:
Purpose: Handle logical operations.
Tokens to Add:
[ ] #183
[ ] #184
Add Assignment Operators for Bitwise Operations:
Purpose: Handle bitwise assignment operations.
Tokens to Add:
[x] #185
[x] #186
[x] #187
Add Scalar Types (half, double):
Purpose: Support scalar types in HLSL.
Tokens to Add:
[ ] #188
[ ] #189
Add static Keyword:
Purpose: Handle the static keyword for defining static variables.
Token to Add:
[ ] #190
Add control flow statement Keyword:
Purpose: Handle the all control flow statements
[x] #191
[x] #192
[ ] #193
Add pre processor Keyword:
Purpose: Handle the pre processor in hlsl
[ ] #194
[ ] #195
[ ] #196
[ ] #197
This task is created for Hacktoberfest to welcome contributors to improve the project’s functionality by supporting these new tokens. Contributors should follow the contributing guidelines provided in the repository.
for and query feel free to ask on our discord server we will be happy to help you out 😄
We welcome contributions and encourage developers of all levels to participate!
Cheers! 🎉
Good luck with CrossTL and Hacktoberfest! If you need further assistance, feel free to ask anytime. Happy coding!
Task: Add Support for Additional Operators and Keywords in the DirectX Backend
This task is focused on extending the functionality of the
DirectX backend
by adding support for several new tokens. These tokens must be added to thelexer.py
, properly parsed inparser.py
, and correctly translated indirectxtocrossglcodegen.py
to ensure full compatibility within the CrossTL ecosystem.Update lexer.py:
Add new operators and keywords for each task as given .
Update parser.py:
Modify the parser to ensure that the new tokens are recognized and processed accurately.
Update directxtocrossglcodegen.py:
Ensure that these tokens are properly translated from HLSL to CrossGL. Extend the logic for code generation to handle these new operators and keywords in DirectX shader code.
Add Bitwise Operators:
Add Logical Operators:
Add Assignment Operators for Bitwise Operations:
Add Scalar Types (
half
,double
):Add
static
Keyword:Add
control flow statement
Keyword:Add
pre processor
Keyword:This task is created for
Hacktoberfest
to welcome contributors to improve the project’s functionality by supporting these new tokens. Contributors should follow the contributing guidelines provided in the repository.for and query feel free to ask on our discord server we will be happy to help you out 😄
We welcome contributions and encourage developers of all levels to participate!
Cheers! 🎉 Good luck with CrossTL and Hacktoberfest! If you need further assistance, feel free to ask anytime. Happy coding!