Fork me on GitHub
#instaparse
<
2024-07-21
>
Ahmad11:07:28

Question about human readable error messages: Consider this:

string := char+
char   := #"[a-z]"
If I try to parse a non-character, I get an error message that includes the terminal i.e. #[a-z] , which is not human readable. I prefer to show the non-terminal instead i.e. char . Has anyone tried to solve this / or can point to a relevant resource?