Command Line Parsing Combinators

This is the source from my half-baked talk on command-line parsing combinators. There are two implementations of the combinators: CmdLineParser3 and CmdLineParser4.

Parts common to both solutions are: a type for Grammars with a pretty printer (module Grammar), traditional monadic parsing combinators (module PM) and some utilities (module MUtils).

A simple example can be found in silly.hs, which works with both implementations of the parsing combinators.

Directory .

  1. CmdLineParser3
  2. CmdLineParser4
  3. Grammar
  4. PM
  5. Main{-silly.hs-}