From: "Iñaki Baz Castillo" Date: 2011-08-22T08:58:41+09:00 Subject: Re: Possble bug in Ruby parser (Fixnum#times within "case" statement) 2011/8/22 Michael Edgar : > "while" cannot take braces, only do-end. Your entire `case` expression is the clause of the while loop, so the "do" is begin confused for the "do" that optionally comes between the "while"'s condition and its body. Since a brace never comes between a while condition and a while body, there's no ambiguity. > > Ruby's grammar is expressive, but when you do things like put many-line case statements in a while condition, you're going to get weird corner cases in the grammar. Thanks a lot. I understand it now. My code was just wrong from the beginning (but worked in some specific case just by chance). Thanks. -- Iñaki Baz Castillo