lua-users home
lua-l archive

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


> (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