[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: #line specifier in Lua
- From: steve donovan <steve.j.donovan@...>
- Date: Mon, 14 Jul 2014 18:26:21 +0200
On Mon, Jul 14, 2014 at 5:24 PM, Xavier Wang <weasley.wx@gmail.com> 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.