igordejanovic / parglare

A pure Python LR/GLR parser - http://www.igordejanovic.net/parglare/
MIT License
135 stars 32 forks source link

Save intermediate trees #121

Closed igordejanovic closed 3 years ago

igordejanovic commented 4 years ago

For ambiguity analysis it would be a nice feature to instruct the parser to save current trees to files. Afterwards trees can be compared by diff tools to investigate the ambiguity.

igordejanovic commented 3 years ago

Starting with 0.14.0 forest returned by GLR have to_str and to_dot. It shows ambiguous points. There is also pglr parse which produces these outputs.