[Haskell-beginners] Baffled by Parsec

Magnus Therning magnus at therning.org
Sat Feb 21 16:07:53 EST 2009

Colin Paul Adams wrote:
> The tutorials I've found don't tell me what I want to know :-(
> I have lines that begin with an integer, then white-space, and then
> further structure to the end-of-line.
> So for a starter, could you show me how to write a parser for the
> integer (returning an Int), and how to combine it with a parser for
> the rest of the line (take that as written - it isn't, but I'll try to
> do that myself given such a kick-start).

Maybe one of my old blog posts can help?



Magnus Therning                        (OpenPGP: 0xAB4DFBA4)
magnus@therning.org          Jabber: magnus@therning.org
http://therning.org/magnus         identi.ca|twitter: magthe

Haskell is an even 'redder' pill than Lisp or Scheme.
     -- PaulPotts

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: OpenPGP digital signature
Url : http://www.haskell.org/pipermail/beginners/attachments/20090221/1ab208fc/signature.bin

More information about the Beginners mailing list