Skip to content

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

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

Closed
wants to merge 2 commits into from

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.

Generate a toString() method in the Java code when compiling in pobserve
mode; it uses the same format as for types
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 17:47
@lewisbru lewisbru marked this pull request as draft April 23, 2025 17:48
@lewisbru lewisbru closed this Apr 23, 2025
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