rust-peg icon indicating copy to clipboard operation
rust-peg copied to clipboard

option to dump trace in structured format

Open rustyrazorblade opened this issue 9 years ago • 1 comments

I love having --features peg/trace, but I found it was difficult to read through, so i've wrapped the output with a little script that handles indenting to make it easier to understand.

Then i started thinking, it would be event better if I visualized the parser output in one of a couple ways - either a collapsable tree or simply through something like graphviz.

To make this process somewhat straightforward, I'd like to add support for dumping the peg trace as structured JSON to a file. Thoughts?

rustyrazorblade avatar Oct 29 '16 18:10 rustyrazorblade

Related: @fasterthanlime's pegviz is simply parsing the existing messages to generate a nice HTML visualization.

kevinmehall avatar Apr 29 '20 16:04 kevinmehall