chkn / AluminumLua

NOTE: THIS WAS A TOY PROJECT AND IS NOT MAINTAINED
100 stars 13 forks source link

for-loops not working?? #5

Open leosh64 opened 11 years ago

leosh64 commented 11 years ago

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??

nyashes commented 11 years ago

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.

leosh64 commented 11 years ago

Okay, thank you, can you keep me updated?

On Mon, Apr 8, 2013 at 1:58 PM, nem-e5i5 notifications@github.com 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