[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Bug report: Concat operator parsing error.
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 2 Nov 2021 10:29:33 -0300
> (To go off on a tangent: [...]
As a somewhat similar example, but more common and still "problematic":
In C, a+++++b could be correctly parsed as a++ + ++b, but it's not.
Following the "longest" rule in the scanner, it's parsed as a++ ++ +b,
which raises an error, as one cannot increment 'a++'.
I believe the same problem happens in several languages with C-like
increments. (Java, JS, etc.)
-- Roberto