lua-users home
lua-l archive

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

2011/5/1 steve donovan <>:
> Hi all,
> The LuaMacro project has been around for a while [1] and up to now has
> depended on the token filter patch. So it needed a modified Lua
> executable. Recently when thinking about using macros for emitting
> optimal code for LuaJIT I realized that here was _another executable
> to patch_. Fortunately, I wandered away from this abyss and this new,
> rewritten version[2] uses Peter Odding's LPeg Lua lexer.  It now acts
> more like a traditional preprocessor, although the driver program luam
> will load and execute the code by default. It is certainly now a good
> deal easier to debug macros, since one can see exactly what the
> preprocessor has generated (luam has a -d for 'dump' option)

Thank you very much for this work, I've given a look to the README in
github and it seems that you have made a great work. I will need just
some time to dive into this package and grasp every aspect and all its
possible applications.

I particular I will need to figure out if it can allow multiple
indexing like in m[i,j], this would be for me the killer feature for
matrix-oriented applications ;)

In any case I will consider this package to replace the home-made
macro generator that we used of the ODE integrator and LuaJIT.
Actually I'm quite happy with what we've done, my only concern is my
feeling that I cannot propose it to the final user because its usage
is too much awkward so I've relegated it only to a technical use for
the implementation of some specific modules.