lua-users home
lua-l archive

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

On Mon, Jul 14, 2014 at 5:24 PM, Xavier Wang <> wrote:
> But in Lua-spec, pre-processor needn't include file. metalua,
> LuaMacro, luapp all do not support include other file

I think I did implement a simple @include in LuaMacro.  It turned out
that we didn't need #line, just a mapping between input lines and
output lines.  If the resulting script is run using LuaMacro itself,
then the mapping can identify where the compile/run time error
occurred. This is pretty much the same technique used by MoonScript.