alex / rply

An attempt to port David Beazley's PLY to RPython, and give it a cooler API.
BSD 3-Clause "New" or "Revised" License
381 stars 60 forks source link

Is it possible to get the full list of generated gramar / on the debugging #72

Closed Bystroushaak closed 6 years ago

Bystroushaak commented 6 years ago

Is there any way how to get the full grammar specification from the parser? I am getting "ParsingError" messages and I have no idea why. Also - how do you debug the parser when you are getting errors like this?

FrankC01 commented 6 years ago

This is what I found, don't know if it helps or you've already figured it out.

pprint.pprint(parser.lr_table.grammar.__dict__)

Bystroushaak commented 6 years ago

Thanks for the info.