lua-users home
lua-l archive

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


> Somehow I've managed to overlook token filters but they are clearly
> the way to go, especially given the performance concerns I have.

On the other hand, writting token filters in C unfortunately requires you
to know some of the internals of Lua, as the ugly line below shows:
	seminfo->ts=rawtsvalue(&L->top[-1]);
(If seminfo contained an arbitrary Lua value things would be simpler...)

But if you're only dealing with numerical constants, then this won't be needed
(and the code I sent you can be made much simpler).
--lhf