[Haskell-cafe] Haskell source AST zipper with state

Niklas Broberg niklas.broberg at gmail.com
Thu May 3 08:22:29 CEST 2012


On Thu, May 3, 2012 at 2:52 AM, Andrew Seniuk <rasfar at gmail.com> wrote:

> Note that the "Annotated" version of the HSE parser/AST will probably
> not provide enough
>  generality for the sorts of attributes you want to store (it's for
> source locations, unless something changed in the most recent
> release).
>

I do hope you're wrong on that! The annotations are fully general (and have
been all along), so you can store whatever you like there(*). They are
*used* for source locations by the parser, but that's just one possibility.

Cheers,

/Niklas

(*) The only requirement is that you need to store values of the same type
throughout the syntax tree - but Either or Maybe should do the trick there.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20120503/44b171c9/attachment.htm>


More information about the Haskell-Cafe mailing list