AluminumLua icon indicating copy to clipboard operation
AluminumLua copied to clipboard

for-loops not working??

Open leosh64 opened this issue 11 years ago • 2 comments

Or am I just stupid? My lua code:

for i=1,10 do
    print(i)
end

return 'I\'m done!'

My C# code (worked perfectly for other Lua scripts, e.g. the helloworld one)

        static void Main(string[] args)
        {
            var context = new LuaContext();
            context.AddBasicLibrary();
            context.AddIoLibrary();

            var parser = new LuaParser(context, "helloworld.lua");
            parser.Parse();

            Console.ReadLine();
        }

Throws this exception:

"Error in helloworld.lua(1,5): syntax error"

Why??

leosh64 avatar Apr 04 '13 19:04 leosh64

Loops are not yet implemented. Not hard to do, maybe someone can do it, or else I will probably add it later when I'll need it.

nyashes avatar Apr 08 '13 11:04 nyashes

Okay, thank you, can you keep me updated?

On Mon, Apr 8, 2013 at 1:58 PM, nem-e5i5 [email protected] wrote:

Loops are not yet implemented. Not hard to do, maybe someone can do it, or else I will probably add it later when I'll need it.

— Reply to this email directly or view it on GitHubhttps://github.com/chkn/AluminumLua/issues/5#issuecomment-16046305 .

Lennart Moltrecht, Aachen, Germany. Tel: 0163 7041611

leosh64 avatar Apr 08 '13 13:04 leosh64