[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: How to implement this with LuaMacro?
- From: steve donovan <steve.j.donovan@...>
- Date: Fri, 22 Jan 2010 13:38:50 +0200
On Fri, Jan 22, 2010 at 1:29 PM, Pavel Shevaev <email@example.com> wrote:
> $ lua -lmacro test.lua
> lua: test.lua:6: '<name>' expected near '('
Sorry about the two-part post. It is important that the macro
definitions be read before the code is parsed. So I'm assuming that
test.lua has an __include mymac where mymac.lua contains definitions
for PARAL etc. In fact, this should work fine as well in test.lua:
__def 'PARAL(body) parallel(function(self) body end)'