[Haskell-cafe] Alex question

Mihai Maruseac mihai.maruseac at gmail.com
Tue Feb 15 20:19:56 CET 2011

On Tue, Feb 15, 2011 at 8:47 PM, Mihai Maruseac
<mihai.maruseac at gmail.com> wrote:
> Hi,
> I want to make Alex to parse a file using states. I wrote a simple
> basic wrapped .x file but it complaints that it doesn't know the
> "begin" symbol. As listed here[1], my code does something like this:
> <0> \/{2} { begin italic }
> Am I doing something wrong? Should I manage myself the states? Should
> I use another parser generator?
> [1]: http://www.haskell.org/alex/doc/html/alex-files.html#startcodes


Just found out that only the monadic wrapper handles state. However,
if I switch to it I receive the following error:

templates/wrappers.hs:133:15: Not in scope: `alexEOF'

Does anyone know what's going here? Thanks


More information about the Haskell-Cafe mailing list