lua-users home
lua-l archive

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


> > My vote would be for "label foo" or "foo::". The symmetry looks a bit
> > ugly to me IMO and looks like it should be some kind of expression
> > (e.g. |foo| is commonly written in text to mean math.abs(foo)), and !
> > and & just seem confusing when they mean different things in other
> > languages.
> 
> This would be my preference too. Out of interest, would the grammar
> unambiguously support "stat ::= (label | goto) Name" without having to
> make label and goto into keywords?

Probably (because there are no other meanings for "name name" and Lua's
parser has full computational power), but it would be messy.

-- Roberto