[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: Wed, 30 Jan 2008 23:20:00 -0200
> I just posted a small patch to the wiki that allows C-style string lexing,
> where string literals separated by whitespace are collected as a single
> string.
This will break expressions like f "A" "B", which is interpreted as
f("A")("B"). The program below prints "A<TAB>and<TAB>B". Try it in your
patched version...
function f(x)
return function (y)
print(x,"and",y)
end
end
f"A" "B"