[#1026] Is this a bug? — Dave Thomas <Dave@...>

18 messages 2000/01/03

[#1084] Infinite loop — Dave Thomas <Dave@...>

17 messages 2000/01/11

[#1104] The value of while... — Dave Thomas <Dave@...>

24 messages 2000/01/11

[ruby-talk:01165] Re: Is this expected behavior?

From: matz@... (Yukihiro Matsumoto)
Date: 2000-01-23 15:10:12 UTC
List: ruby-talk #1165
Hi,

In message "[ruby-talk:01161] Re: Is this expected behavior?"
    on 00/01/21, Dave Thomas <Dave@thomases.com> writes:

|In general, I get nervous when whitespace makes that big a difference, 
|but I know we're already got many situations like this. I suppose
|throwing some kind of 'ambiguous parse' error is out of the question?

The parser works very short sightedly.  It is easy to throw warning on

  p [a]  => p[a] or p([a]) ?

because it is processed by single rule, and it does already.  But

  p (a).foo

is processed by multiple rules, and I don't to how to detect this as
ambiguous.  Any good idea?

							matz.

In This Thread