Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 535 Bytes

GRAMMAR_TRACING.md

File metadata and controls

24 lines (17 loc) · 535 Bytes

Grammar tracing

WARNING: This is currently broken.

Run tests with tracing enabled:

cargo test --features trace
cargo install pegviz --git=https://github.com/fasterthanlime/pegviz.git
pegviz -o trace.html

Now take all the test output between these two lines, inclusive:

[PEG_INPUT_START]
...
[PEG_TRACE_STOP]

...and paste it into the standard input of pegviz. Then hit control-D. You should then be able to open trace.html in your browser and see a nice visualization of the grammar.