[Haskell-cafe] simple parsing (parsec) intro
Justin Bailey
jgbailey at gmail.com
Mon Sep 10 13:34:51 EDT 2007
On 9/9/07, Tim Newsham <newsham at lava.net> wrote:
> I wrote a small intro about how to write a parser in haskell. Its
> basically about parsec and how it works, but its written without directly
> referencing parsec and aimed towards beginners (basically wrote it for
> some friends).
Nice development of combinators, and pretty readable. Not sure the
level of Haskell knowledge expected, but you might want to explain
pattern guards. Also, I believe your parser will fail if whitespace
appears at the front of the input - you might want to introduce a
"token" like combinator that drops whitespace as needed.
Justin
More information about the Haskell-Cafe
mailing list