Categories: parsing



I have been interested in various aspects of parsing since 2009. My research is particularly focused on parsing general context-free grammars, using combinator parsers. I have published several papers, formalized various proofs about parsers in the HOL4 theorem prover, and produced quite a few OCaml implementations to try out various ideas.

Verified parsing

This work produced a verified, sound and complete approach to combinator parsing. This introduced the idea of “good parse trees”. The problem with this approach is that it is too inefficient with left-recursive grammars. There is a post describing verified parsing here.


These are projects which I have largely abandoned:

Older links are:

The best documentation for P3 internals is the extended version of the following paper: Tom Ridge. Simple, efficient, sound and complete combinator parsing for all context-free grammars, using an oracle. In Proceedings of SLE 2014. ridge14sle.pdf extended version.

Related posts: