[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] Lua 5.2.0 (alpha) now available
- From: David Manura <dm.lua@...>
- Date: Fri, 3 Dec 2010 15:16:51 -0500
On Fri, Dec 3, 2010 at 12:09 PM, KHMan <firstname.lastname@example.org> wrote:
> On 12/4/2010 12:50 AM, Roberto Ierusalimschy wrote:
>>>The manual seems to have missed mentioning
>>> hex floating-point literals in Section 3.1.
>>... So, hex floating-point literals is a kind of "bonus" feature that
>> you get when using a C99 compiler.
>...IMHO if it's enabled in the lexer, it deserves to be mentioned.
Should the lexer be allowed to accept tokens that aren't specified in
the reference manual? Should the lexer be allowed to reject tokens
that are specified in the reference manual (e.g. name too long)?
One example where not well specifying the lexer could be a concern is
an eval built from untrusted user input . Reliably of lexer
reimplementations could also suffer.
I thought the direction in 5.2 was to make the lexer invariant to the
system, e.g. the locale , and certainly more portable than
BTW, a related question is the specified treatment of unrecognized
string escape sequences .