[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: expression parser change
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 16 Dec 2010 13:51:50 -0200
> Here's a diff of the BNF as found in lparser.c:
>
> [...]
Many thanks.
> The changed syntax accepts strange stuff like
>
> nil.foo
>
> but also nifty constructs like
>
> "%d":format(42)
> { a, b, c }[i]
This creates more cases of ambiguous syntax:
a = b + c
"%d":foo(42)
But they are all similar to what we already have with parentheres.
-- Roberto