Skip to content
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

improve checking for syntax errors #37

Merged
merged 1 commit into from
Feb 8, 2023
Merged

improve checking for syntax errors #37

merged 1 commit into from
Feb 8, 2023

Conversation

elrayle
Copy link
Collaborator

@elrayle elrayle commented Feb 8, 2023

fixes #4

The issue suggested fixing this at the scan level, but scan is just a tokenizer. Parse knows what is expected syntactically. Tests were added for various malformed expressions. The fix was made at the parse level in multiple places and included if possible better error messages for what went wrong.

@elrayle elrayle requested a review from ajhenry as a code owner February 8, 2023 22:12
fixes #4

The issue suggested fixing this at the scan level, but scan is just a tokenizer.  Parse knows what is expected syntactically.  The fix was made at the parse level and tests for malformed expressions were added.
@elrayle elrayle merged commit abc0b15 into main Feb 8, 2023
@elrayle elrayle deleted the elr/paren-bug branch February 8, 2023 22:21
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.

BUG: operator error - parenthetical without match fails silently
1 participant