lua-users home
lua-l archive

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


Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br> wrote:
> Here is a token filter written in C that expands constants from a table.
> For simplicity, I've used a global table named _CONSTANTS.
> --lhf

Luiz, thanks for a heck of a great idea... if we ever meet I owe you a
beer or two! Somehow I've managed to overlook token filters but they are
clearly the way to go, especially given the performance concerns I have.

I will certainly have to fine tune the details, but TFs look like a
perfect solution for this problem. Hopefully I can generalise whatever I
do in the end, so that this can be used in other projects as well.

-- 
cheers  thomasl

web : http://thomaslauer.com/start