Skip to content

Conversation

StratusFearMe21
Copy link

@StratusFearMe21 StratusFearMe21 commented Feb 25, 2025

This PR overhauls the parser so that it supports returning a more detailed error when something goes wrong during parsing. The error contains what the parser expected, and the span of source code that the parser found the error to be in
20250225_14h45m25s_grim
I've added a cargo feature so that the miette crate can be used to display the error in a pretty way, but that feature is optional. Another dependency I've added is the thiserror procedural macro which allows the error type to implement std::error::Error

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