lua-users home
lua-l archive

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



On Mar 12, 2016, at 9:14 AM, Rena <hyperhacker@gmail.com> wrote:

Using whitespace wouldn't work anyway, since it would be ambiguous:

.a = x
.b = y

Is that ".a=x;.b=y" or ".a=x.b=y"? Of course the latter is invalid, but the parser would have to look ahead an arbitrary number of tokens to discover that.


Another example would be:

    .a = x
    .b.some_function()

Is that “.a=x; .b.some_function();” or is it “.a = x.b.some_function()”?