ottparse-pretty

Pretty-printer for Ott parse trees

Latest on Hackage:0.1.2.6@rev:3

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD-3-Clause licensed by Brent Yorgey
Maintained by [email protected]

Ott (http://www.cl.cam.ac.uk/~pes20/ott/) is a tool for writing formal definitions of programming languages and calculi. Often the Ott grammars one defines end up being ambiguous, and Ott signals its displeasure by spewing forth several massive parse trees in a format requiring formidable patience to read. Finding the slight differences between two such parse trees is an exercise in seizure-inducing tedium.

To the rescue comes ottparse-pretty! Simply paste in each parse and it is shown to you in a nicely formatted tree form with all the extra meaningless cruft removed.