Dmitry Telenkov há 15 horas atrás
pai
commit
c63eafcfe9
3 ficheiros alterados com 22 adições e 0 exclusões
  1. 10 0
      lua/hello.lua
  2. 12 0
      lua/main.c
  3. BIN
      lua/main.exe

+ 10 - 0
lua/hello.lua

@@ -0,0 +1,10 @@
+-- my first app: hello.lua
+
+print "hello world";
+print("goodby world")
+
+function add(a, b)
+    return a + b
+end
+
+print(add(3,5))

+ 12 - 0
lua/main.c

@@ -0,0 +1,12 @@
+#include <unistd.h>
+#include <lua5.4/lua.h>
+
+
+int main(int argc, char **argv)
+{
+    int status;
+    //lua_State *L = lua_newstate();
+    //luaL_openlibs(L);
+
+    return 0;
+}

BIN
lua/main.exe