lua-users home
lua-l archive

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


> De : lua-bounces@bazar2.conectiva.com.br [mailto:lua-
> bounces@bazar2.conectiva.com.br] De la part de Dirk Feytons
> 
> I guess neither, since Lua doesn't have a unary plus operator :)
> See http://www.lua.org/manual/5.1/manual.html#8
> 
> 

But in that situation, isn't '-' part of the Number terminal? I don't think it is handled as an unary minus opcode applied on the absolute value described by the following digits. Therefore, couldn't '+' be supported in the Number terminal parsing in the same fashion?