lua-users home
lua-l archive

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


On Sat, Jul 12, 2014 at 4:47 AM, Xavier Wang <weasley.wx@gmail.com> wrote:
Hi,

I have found this archine:
http://lua-users.org/lists/lua-l/2006-09/msg00478.html

But, now, goto is a keyword for Lua, So the goto =goto is not work. Is
there other ways to make a Lua source file both a valid batch file?

--
regards,
Xavier Wang.


Probably you could change the label to be one that's valid in both, and then put the Lua label immediately afterward:

goto myLabel
::myLabel::

print("Hello world")

--[[
:myLabel
@echo "Hello shell!"
::]]

--
Sent from my Game Boy.