From: Nobuyoshi Nakada Date: 2002-04-10T21:12:26+09:00 Subject: Re: Ruby interpreter error reporting Hi, At Wed, 10 Apr 2002 20:57:18 +0900, Thomas Hurst wrote: > > I tried using this expression: > > > > number++ > > > > ....which isn't allowed in Ruby, I came to realize...but before I did, > > I got an error that pointed to syntax in the middle of the next line > > of code about 2 actual lines down. > > It's an effect of how parsing works, especially how automatically > generated parsers work. The expression is parsed as number + + so the operand of the unary + is expected in following line. -- Nobu Nakada