Which Python tool can you recommend to parse programming languages? It should allow for a readable representation of the language grammar inside the source, and it should be abl
pyPEG (a tool I authored) has a tracing facility for error reporting.
Just set pyPEG.print_trace = True and pyPEG will give you a full trace of what's happening inside.
pyPEG.print_trace = True