lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 21 Sep 2010, at 08:48, "Juris Kalnins" <juris@mt.lv> wrote:
> 
> If there was a simple rule to the effect that "if sequence of statements
> can be interpreted as a single statement, then it is a single statement",
> there would be no ambiguity.
> 
> In a recent discussion it was mentioned about change in 5.2work3 that parses
> f(x)
> (y)(z)
> as a single statement, instead of raising parse error. Is there any other
> case left where Lua doesn't follow such rule?

No, 5.2 always follows the maximum munch rule. I like your way of describing it - very clear and brief.

Tony.
--
f.anthony.n.finch  <dot@dotat.at>  http://dotat.at/