[Haskell-cafe] monadic parser with Happy and Alex
manlio_perillo at libero.it
Sun Oct 5 10:48:55 EDT 2008
Duncan Coutts ha scritto:
>> Now I'm starting to write the parser with Happy, however for the final
>> product I would like to:
>> 1) Be able to do I/O in the lexer, for stylesheets inclusion
>> (@import rule)
>> 2) be able to keep state in the parser (or lexer?), for character
>> transcoding (@charset rule)
>> This should be possible with Happy (and there are some example), however
>> I don't find examples that make use of a lexer written with Alex.
> See c2hs or Language.C it uses a monadic lexer.
I'm also looking at HJS (unfortunately new versions use Parsec instead
of Alex + Happy).
More information about the Haskell-Cafe