> Could someone explain me why the following does not work?
> Any help is *greatly* appreciated. If I can't find out
> what causes this problem, I'll have to program in c and
> use yacc & lex for the next 2.5 years :-(

This is a threat, indeed :-)  To save you from this dreadful future: you
just use the wrong type of object in your `%newline' declaration. As
stated on page 10 of the Happy Manual, the object must have the type
specified in the `%tokentype' declaration, in your case, `Token', but
'\n' is of type `Char'---hence, the type error.

Cheers,

Manuel

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
       Manuel M.T. Chakravarty, Technical University of Berlin, Germany
               World-Wide Web: http://www.cs.tu-berlin.de/~chak/
                       [EMAIL PROTECTED], IRC: Chilli



Reply via email to