Command-line Parsing Combinators

Half-baked talk, February 11, 2005 by Thomas Hallgren


The Programatica Haskell front-end (PFE) has a command line interface that provides a lot of functionality and I have been looking for a nice way to program it. By nice, I mean that

Being a functional programmer, my choice is to use parsing combinators, since they satisfy most of the above goals. The only goal not satisfied by available parsing combinators is the ability to extract documentation as well as a parser from the same source, so in the talk, I describe my own parsing combinators that solve this problem (under some simplifying assumptions). They are currently used in the implementation of PFE.

Thomas Hallgren