simple parsing (parsec) intro

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). Any feedback is appreciated. http://www.thenewsh.com/%7Enewsham/formal/parse/parser.lhs Tim Newsham http://www.thenewsh.com/~newsham/

On 9/9/07, Tim Newsham
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
participants (2)
-
Justin Bailey
-
Tim Newsham