[Haskell-cafe] Parsec - separating Parsing from Lexing

Jason Dusek jason.dusek at gmail.com
Tue Nov 10 15:21:04 EST 2009


  You have to bootstrap your parser with something that takes
  an `MJVal` and updates the parser state. Here is a simple
  example:

    http://github.com/jsnx/system-uuid/blob/master/Options.hs

  This is a parser for command line options. It parses a list
  of `String`s, not `Char`s (because `argv` is `char**` and not
  `char*`, right?) so we introduce `stringPrim` and then build
  up the primitives from that.

--
Jason Dusek


More information about the Haskell-Cafe mailing list