[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Syntax highlighting in / for Lua
- From: "Nick Trout" <nick@...>
- Date: Wed, 8 Aug 2001 14:40:37 +0100
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