Forum: Ruby $/kEND parse error nightmare

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
B56ee52ea0626a8d88b7262f4efa6fd7?d=identicon&s=25 Kurt V. Hindenburg (Guest)
on 2006-04-01 00:48
(Received via mailing list)
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]
E34b5cae57e0dd170114dba444e37852?d=identicon&s=25 Logan Capaldo (Guest)
on 2006-04-01 01:31
(Received via mailing list)
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"
5dfb03e2e567dcbe857efa96f998d499?d=identicon&s=25 gabriele renzi (Guest)
on 2006-04-01 11:01
(Received via mailing list)
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 :)
Cd49db0b676767ea4358b1047c4cddd2?d=identicon&s=25 Robin Stocker (Guest)
on 2006-04-02 03:09
(Received via mailing list)
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-core/7653

Regards,
   Robin Stocker
5dfb03e2e567dcbe857efa96f998d499?d=identicon&s=25 gabriele renzi (Guest)
on 2006-04-02 13:21
(Received via mailing list)
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-core/7653

well, great, I was hoping for something like this :)
This topic is locked and can not be replied to.