instaparse

Ahmad 2024-07-21T11:40:28.640069Z

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?