Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Indicate where a parsing error occurred #312

Closed
Mouradif opened this issue Apr 10, 2024 · 0 comments · Fixed by #313
Closed

Indicate where a parsing error occurred #312

Mouradif opened this issue Apr 10, 2024 · 0 comments · Fixed by #313

Comments

@Mouradif
Copy link
Contributor

Hi!

When a parsing error happens during compilation, the parser doesn't give any hint as to where the error was found. It just says what token was found and what kind of token was expected.

Ideally, it would be great to have the line number but if the parser would at least output where was the cursor when the parsing error happened, it would help debugging.

Mouradif added a commit to Mouradif/huff-rs that referenced this issue Apr 10, 2024
Maddiaa0 added a commit that referenced this issue Apr 21, 2024
* feat: show cursor on parser error

fix #312

* fix: merge

* chore: fmt

---------

Co-authored-by: Maddiaa0 <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant