[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: patch: C-style string lexing
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Fri, 1 Feb 2008 08:34:52 -0200
> 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]