Skip to content

Conversation

Pratyushanand26
Copy link

This PR adds support for LiteralDate handling and its IR translation in the LLVM builder.
Implements new tests under tests/test_literal_date.py to validate both valid and invalid date formats.

Fixes/Implements:

Solve #108

Implements LiteralDate parsing

Adds related LLVM IR translation

Adds validation and error handling for invalid formats

Changed the initialize function as earlier one was deprecated and didn't work

How to test these changes

Activate the conda environment:

conda activate irx

Run the tests:

pytest tests/test_literal_date.py -v

Copy link

OSL ChatGPT Reviewer

NOTE: This is generated by an AI program, so some comments may not make sense.

src/irx/builders/llvmliteir.py

ChatGPT was not able to review the file. Error: Error code: 429 - {'error': {'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.', 'type': 'insufficient_quota', 'param': None, 'code': 'insufficient_quota'}}

tests/test_literal_date.py

ChatGPT was not able to review the file. Error: Error code: 429 - {'error': {'message': 'You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.', 'type': 'insufficient_quota', 'param': None, 'code': 'insufficient_quota'}}

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