Skip to content

Change p compiler to return a syntax error for lexical errors #846

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

Merged
merged 1 commit into from
Apr 23, 2025

Conversation

lewisbru
Copy link
Contributor

Previously, the p compiler was silently skipping over unexpected characters encountered during lexical analysis. Added a listener on the lexer to raise an error when lexical analysis encounters an error.

Added unit tests to verify this behavior.

Previously, the p compiler was silently skipping over unexpected
characters encountered during lexical analysis.  Added a
listener on the lexer to raise an error when lexical analysis
encounters an error.

Added unit tests to verify this behavior.
@lewisbru lewisbru requested a review from ankushdesai April 23, 2025 20:49
@ankushdesai ankushdesai merged commit acc5581 into master Apr 23, 2025
8 checks passed
@ankushdesai ankushdesai deleted the dev/lexer_fix branch April 23, 2025 21:20
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.

2 participants