lua-users home
lua-l archive

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


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>