[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Static metaprogramming with Lua 5.2.
- From: steve donovan <steve.j.donovan@...>
- Date: Fri, 11 Apr 2014 13:41:57 +0200
On Fri, Apr 11, 2014 at 12:00 PM, Fabien <fleutot+lua@gmail.com> wrote:
> Notice that depending on how complex your metaprogramming needs are, you
> might be better-off with a dumb text-based preprocessor.
It would be useful (and interesting) if you could give us examples of
the transformations you need to apply to source.
If they're simple, then a lexical macro preprocessor like LuaMacro
could do the job (macros may execute arbitrary Lua code and can
temporarily take over stream processing - "reader macros").
Deep syntactical macros remain MetaLua's claim to fame....