Token filters are an experimental add-on to Lua 5. They've been  
discussed extensively on the list, and there are a couple  
alternative implementations currently.
In short, they will allow one to "cut in" the token stream,  
modifying syntactical things as long as the outcoming stream  
remains valid Lua tokens. In the exhibited case, one would simply  
add "nil" where two consequtive commas occur. In practise, it is  
not quite as simple as this.
Alternatives to experiment with include lhf's token filter patch,  
my fsyntax.lua/ftools.lua which builds upon it (adding syntax  
awareness), and MetaLua (which in my opinion has way too complex  
expressions, but I'm biased... ;)
-asko
http://lua-users.org/cgi-bin/namazu.cgi?query=token 
+filter&sort=score&idxname=lua-l&max=20 <http://lua-users.org/cgi- 
bin/namazu.cgi?query=token+filter&sort=score&idxname=lua-l&max=20>
RJP Computing kirjoitti 22.7.2007 kello 20:55:
On 7/22/07, *Asko Kauppi* <askok@dnainternet.net  
<mailto:askok@dnainternet.net>> wrote:
    That would naturally not be valid Lua.  However, the effect  
is easily
    achievable with token filters.
    -asko
I am interested in this and I am a bit new to Lua, so can you  
explain this a bit more?
Thanks.
--
Regards,
Ryan
RJP Computing
--------------------------------------------------------------------- 
---
No virus found in this incoming message.
Checked by AVG Free Edition. Version: 7.5.476 / Virus Database:  
269.10.12/910 - Release Date: 7/21/2007 3:52 PM