-
-
Notifications
You must be signed in to change notification settings - Fork 2
More resilient parser for better error messages #103
Copy link
Copy link
Open
Labels
C-chirprelates to the cuicui_chirp file format crate specificallyrelates to the cuicui_chirp file format crate specificallyT-error handlingHas to do with how we handle errorsHas to do with how we handle errors
Description
Activity
Metadata
Metadata
Assignees
Labels
C-chirprelates to the cuicui_chirp file format crate specificallyrelates to the cuicui_chirp file format crate specificallyT-error handlingHas to do with how we handle errorsHas to do with how we handle errors
For example, we could use it to show more error messages.
An option is also to have a secondary parser that accepts a broader syntax and logs error on encountering syntax that diverges with the main parser. We would call the secondary parser when finding syntax errors in the file. This way, we keep the "happy path" fast, while making the "sad path" more informative if a bit slower.