[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

$/kEND parse error nightmare

Kurt V. Hindenburg

3/31/2006 10:45:00 PM

Hello,
In all the time I've used Ruby, I've never come across such an aggravating,
uninformative error message... argh!

parse error, unexpected $, expecting kEND

wtf?

Regards,
Kurt

% ruby --version
ruby 1.8.4 (2005-12-24) [sparc-linux]


4 Answers

Logan Capaldo

3/31/2006 11:29:00 PM

0


On Mar 31, 2006, at 5:45 PM, Kurt V. Hindenburg wrote:

> parse error, unexpected $, expecting kEND

This means, unexpected end of line, (or possibly end of file) I was
expecting to see the keyword "end"

gabriele renzi

4/1/2006 8:56:00 AM

0

Kurt V. Hindenburg ha scritto:
> Hello,
> In all the time I've used Ruby, I've never come across such an aggravating,
> uninformative error message... argh!
>
> parse error, unexpected $, expecting kEND
>
> wtf?

notice that before bison 2.0 you did not had neither this messages :)

I reported the strange messages around ruby-talk:179793 and matz said he
did not know of a way to get better error messages.

In ruby-talk:182173 I reported that there is a siple solution, at least
for some things, but I don't know if someone in ruby-core/dev ever read
or considered that, I guess providing a patch to parse.y would be
helpful :)

Robin Stocker

4/2/2006 1:06:00 AM

0

gabriele renzi wrote:
> In ruby-talk:182173 I reported that there is a siple solution, at least
> for some things, but I don't know if someone in ruby-core/dev ever read
> or considered that, I guess providing a patch to parse.y would be
> helpful :)

Hi,

With the help of your mail about how to add descriptive names to tokens
I wrote a patch and sent it to ruby-core :)
http://ruby-talk.org/cgi-bin/scat.rb/ruby/ruby...

Regards,
Robin Stocker


gabriele renzi

4/2/2006 11:16:00 AM

0

Robin Stocker ha scritto:

> Hi,
>
> With the help of your mail about how to add descriptive names to tokens
> I wrote a patch and sent it to ruby-core :)
> http://ruby-talk.org/cgi-bin/scat.rb/ruby/ruby...

well, great, I was hoping for something like this :)