You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to get more precise errors when parsing fails? Currently, when it fails to parse an input string the error seems to just bubble up to the entry expression telling me it failed e.g.:
parsimonious.exceptions.IncompleteParseError: Rule 'program' matched in its entirety, but it didn't consume all the text. The non-matching por
tion of the text begins with '#define macro CONSTR' (line 15, column 1).
Would be great to be able to enable a mode where the error tells you the furthest point that the parser got to in terms of the grammar and also in the input string. I would like my program to be able to give a more helpful error message than just "parsing failed somewhere, dunno what exactly tho".
Thanks a lot! 🙏
The text was updated successfully, but these errors were encountered:
Is there a way to get more precise errors when parsing fails? Currently, when it fails to parse an input string the error seems to just bubble up to the entry expression telling me it failed e.g.:
Would be great to be able to enable a mode where the error tells you the furthest point that the parser got to in terms of the grammar and also in the input string. I would like my program to be able to give a more helpful error message than just "parsing failed somewhere, dunno what exactly tho".
Thanks a lot! 🙏
The text was updated successfully, but these errors were encountered: