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

User-friendly unmatched token errors #25

Merged
merged 7 commits into from
Oct 7, 2023
Merged

User-friendly unmatched token errors #25

merged 7 commits into from
Oct 7, 2023

Conversation

alllex
Copy link
Owner

@alllex alllex commented Oct 7, 2023

The unmatched token errors provide immediate context within the input string for faster trouble shooting.

Unmatched token at offset=2, when expected: LiteralToken('cd')
  Expected token: LiteralToken('cd')
  | offset=2 (or after ignored tokens)
abab
^^ Previous token: LiteralToken('ab') at offset=0

@alllex alllex merged commit bc6ead1 into main Oct 7, 2023
2 of 3 checks passed
@alllex alllex deleted the error-descriptions branch October 7, 2023 21:08
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.

None yet

1 participant