Stuck with $EOF$ token

3 views
Skip to first unread message

Mike Hearn

unread,
Mar 8, 2006, 12:32:17 PM3/8/06
to pyggy
Hi,

I'm a bit new to parsers and Pyggy, and I have a (very rough, ambiguous
and incomplete) grammar that dies at the very end of the parsing with
this error:

[32] $EOF$ <<EOF>>
reduce 7
reduce 2
reduce 3
parse error: "<<EOF>>": line 296:


That is, when it reaches the end it's not an accepting parser I guess.
Does this mean there's a fault in the grammar?

Tim Newsham

unread,
Mar 9, 2006, 12:30:06 PM3/9/06
to pyggy
> [32] $EOF$ <<EOF>>
> reduce 7
> reduce 2
> reduce 3
> parse error: "<<EOF>>": line 296:
>
> That is, when it reaches the end it's not an accepting parser I guess.
> Does this mean there's a fault in the grammar?

That or an error in the input file. This is the typical
"unexpected end of file" type of error you typically see from
a parser when its still waiting for something (like a closing
parenthesis, for example) to complete the parse.

Tim Newsham
http://www.lava.net/~newsham/

Reply all
Reply to author
Forward
0 new messages