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 tasm parsing errors #239

Open
jan-ferdinand opened this issue Nov 17, 2023 · 0 comments
Open

improve tasm parsing errors #239

jan-ferdinand opened this issue Nov 17, 2023 · 0 comments
Labels
🧑‍💻 dx/ux Developer experience & user experience 💫 good first issue Good for newcomers 🧑‍🤝‍🧑 help wanted Need some help 🟡 prio: medium Not super urgent

Comments

@jan-ferdinand
Copy link
Member

Nom parser errors are never (?) shown to the user, since the label parser is wrapped in an alt. With a custom error type, it is possible to have alt return the error of the parser that went the farthest in the input data.

See also: https://github.com/rust-bakery/nom/blob/main/doc/error_management.md

@jan-ferdinand jan-ferdinand added 🧑‍🤝‍🧑 help wanted Need some help 💫 good first issue Good for newcomers 🟡 prio: medium Not super urgent 🧑‍💻 dx/ux Developer experience & user experience labels Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧑‍💻 dx/ux Developer experience & user experience 💫 good first issue Good for newcomers 🧑‍🤝‍🧑 help wanted Need some help 🟡 prio: medium Not super urgent
Projects
None yet
Development

No branches or pull requests

1 participant