[Haskell-cafe] Designing a Parser

Ryan Ingram ryani.spam at gmail.com
Sun Feb 17 13:59:00 EST 2008


Writing a parsing library like this is a great learning experience;
Graham Hutton wrote a paper you can follow along with entitled
"Monadic Parsing in Haskell" at
http://www.cs.nott.ac.uk/~gmh/bib.html#pearl

But if you're just interested in writing a parser, and not in writing
a parser generator, I recommend Parsec; it's included with GHC as
Text.ParserCombinators.Parsec, and there is a tutorial in the second
part of this page:
http://legacy.cs.uu.nl/daan/download/parsec/parsec.html

  -- ryan


More information about the Haskell-Cafe mailing list