-- a macro definition file is an ordinary Lua file, except it requires the macro preprocessor to support -- _token literals_. It must be loaded after the macro module and before any application code. require 'macro.common' require 'macro.case' require 'macro.try' local define = macro.define define('def',nil,@ local function @) define('K',nil,@ A @) define('F',nil,@ fred @) define('B',nil,@ K @) define('L',nil,@ B @) define('S',nil,@ (L+C) @) define('NULL',nil,{}) define('TEST',{'x'},@ x @,function() return {'',99} end) define('PLUS',{'L','C'},@ (L+C) @)