On Tue, Feb 15, 2011 at 9:19 PM, Mihai Maruseac <mihai.marus...@gmail.com> wrote: > On Tue, Feb 15, 2011 at 8:47 PM, Mihai Maruseac > <mihai.marus...@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 >> > > Hi, > > 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 >
Hi, Solved them after a night without sleep :) Thanks, -- Mihai _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe