[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Numerical constants
- From: Thomas Lauer <thomas.lauer@...>
- Date: Thu, 24 May 2007 14:39:42 +0100
Luiz Henrique de Figueiredo <email@example.com> 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.
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.
web : http://thomaslauer.com/start