$/kEND parse error nightmare

K

Kurt V. Hindenburg

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]
 
L

Logan Capaldo

--Apple-Mail-14-184274963
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
delsp=yes;
format=flowed


parse error, unexpected $, expecting kEND

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


--Apple-Mail-14-184274963--
 
G

gabriele renzi

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 :)
 
R

Robin Stocker

gabriele said:
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-core/7653

Regards,
Robin Stocker
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,262
Messages
2,571,052
Members
48,769
Latest member
Clifft

Latest Threads

Top