Re: How to implement this with LuaMacro?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: How to implement this with LuaMacro?
- From: steve donovan <steve.j.donovan@...>
- Date: 2010年1月22日 13:38:50 +0200
On Fri, Jan 22, 2010 at 1:29 PM, Pavel Shevaev <pacha.shevaev@gmail.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)'
...
<use PARAL>