Re: [Haskell-cafe] Alex question

2011-02-16 Thread Mihai Maruseac
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

[Haskell-cafe] Alex question

2011-02-15 Thread Mihai Maruseac
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?

Re: [Haskell-cafe] Alex question

2011-02-15 Thread Mihai Maruseac
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}