lua-users home
lua-l archive

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



> So, what about the semantics become a exprlist?
> exprlist ::= expr { ',' expr } |
>                  namelist 'in' expr
>
> this allows some syntax:
> local a, b, c = d, e, f in t
> dump(a, b, c in t)
> local t = {a, b, c in t}

That would be quite cute.  Of course, I'm not familiar enough with the grammar to know if it might cause other kinds of parser trouble :)  

If you could get it working, I'd certainly be a fan of such a patch. 

-Sven