[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple Question



Check the first production.
If the first production doesn't match the input,
you will get this error.
(Check so that your toplevel production is first.)

If this doesn't help, you have to give more information.

/Fredrik


On Tue, 13 Feb 2001, Tyrone Grandison wrote:

> 
> I am developing a simple language using SableCC. I have generated all the
> Node, Lexer and Parser files from my specification file.
> 
> Upon trying to test it, both from keyboard input and text files, I get a
> "EOF expected." error at the very first line.
> 
> I have made sure that the files are trminated correctly and I know for
> certain that the creation of the Lexer and Parser objects goes smoothly. It
> is when the parse() method is called that the error appears.
> 
> Does anyone know what the problem could be?
> 
> 
>