[Haskell-beginners] Writing a Parser with attoparsec that reads from a list of tokens

Norbert Melzer timmelzer at gmail.com
Fri Mar 27 12:31:03 UTC 2015


Hi there!

I want to write some small toy language using attoparsec.

So I thought, first step tokenize. Let attoparsec consume the input stream
and produce a list of tokens.
Second step, parse tokens and produce the AST.

Using parsec this would be possible easily and is documented. But I want to
use attoparsec for this task, because I am interested in attoparsecs
capability to have the input in chunks.

TIA
Norbert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20150327/032053f4/attachment.html>


More information about the Beginners mailing list