lua-users home
lua-l archive

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

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... ;)


RJP Computing kirjoitti 22.7.2007 kello 20:55:

On 7/22/07, Asko Kauppi <> wrote:

That would naturally not be valid Lua.  However, the effect is easily
achievable with token filters.


I am interested in this and I am a bit new to Lua, so can you explain this a bit more?
RJP Computing