[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: number parsing question
- From: Benoit Germain <bgermain@...>
- Date: Fri, 30 Apr 2010 15:41:41 +0200
> 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?