[ruby-talk:02400] Could missing 'end' be reported better?

From: Clemens Hintze <c.hintze@...>
Date: 2000-04-08 14:58:29 UTC
List: ruby-talk #2400
Hmmm, I guess the only we could do here, would be to issue a message
like: 

   sample.rb:9:parse error (missing end)

But if that is easy or not, I cannot say! I have not looked into the
parser very deeply ...

\cle


mrilu writes:
> I'm not sure one could easily parse, or moreover report, this error better.
> 
> class Foo
>   def bar
>     p "missing end at next line"
> #  end
> end
> 
> k = Foo.new()
> k.bar()
> # causes 'sample.rb:9: parse error' here, how informative, isn't it?
> 
> 

-- 
Clemens Hintze  mailto: c.hintze@gmx.net

In This Thread