feat: add support for LiteralDate in LLVM IR builder #114
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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