lua-users home
lua-l archive

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


From: "Philippe Lhoste" <PhiLho@gmx.net>
> function makeDict(t)
>   local d={}
>   for i=1,getn(t) do d[ t[i] ]=1 end
>   return d
> end
> 
> tokens = makeDict {
>   "~=", "<=", ">=", "<", ">",
>   "==", "=", "+", "-", "*",
>   etc
> }
>>Great, that's exactly the kind of feed-back I expect when posting code here!

Ah, just reading the draft book and realised I have duplicated page 75! :-)


Slightly off topic, but quite amusing (and mildy disturbing), for Josh :-)
http://www.detonate.net/media/dancemonkeyboy.mpg

N