igordejanovic / parglare

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

pglr parse command #118

Closed igordejanovic closed 3 years ago

igordejanovic commented 4 years ago

This command would be used to parse inputs from command line and print parse trees.

Examples:

pglr parse <grammar> <input_file>

Command would accept various switches:

Some examples:

pglr parse calc.pg -i "2+3*5/7+(2-1)"
pglr parse ambiguous.pg myinput.amb --glr --save-trees=20
igordejanovic commented 3 years ago

This is done in 0.14.0. See the docs.