From: David Flanagan Date: 2007-10-27T04:07:38+09:00 Subject: Re: Improving 'syntax error, unexpected $end, expecting kEND'? Nobuyoshi Nakada wrote: > Hi, > > At Wed, 24 Oct 2007 04:15:05 +0900, > David Flanagan wrote in [ruby-core:12886]: >> syntax error, unexpected "end-of-file", expecting "end" >> >> It doesn't tell you where the outermost open block begins, but at least >> the message isn't so cryptic. I don't know any way to get rid of the >> quotes around "end-of-file". > > Which version of bison do you use? Bison 2.3 seems to strip > the quotes. > I've got bison 2.0 by default on my Fedora Core 4 system. See my most recent post on this thread for a yyerror hack that strips the quotes for older systems like mine. David