[Haskell-cafe] Partial parsers in Happy

Juan Carlos Arevalo Baeza jcab.lists at jcabs-rumblings.com
Fri Apr 13 18:23:14 EDT 2007

    Hi! I'm trying to use a partial monadic parser with Happy (using  
%partial %monad and %lexer). The problem is that the parser function  
always seems to eat up one token beyond the matched sequence regardless of  
what I do. So I can't, for instance, call the parser multiple times to  
parse a series of blocks, because after the first block is done, it misses  
the first token of the second block.

    I'm sure this has to have come up for someone before, but I've been  
unable to find any references.


More information about the Haskell-Cafe mailing list