lua-users home
lua-l archive

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


> Actually, can you do the folding of the string concatenation in the lexer?
> Instead of eliminating "< whitespace >" one would patch the lexer to
> eliminate "< optional whitespace >..< optional whitespace >".

I don't think so. That's exactly the original problem: you cannot translate
f"A".."B" into f"AB":

> function f(x) return "["..x.."]" end
> =f"A".."B"
[A]B
> =f"AB"
[AB]