From 68d493c5f261a99b40d90e2cc4f08b24d1975234 Mon Sep 17 00:00:00 2001 From: Steven Date: Sat, 17 Jan 2026 21:22:52 +0000 Subject: chore(examples): New example for LUA bindings --- examples/scripting/lua/script.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 examples/scripting/lua/script.lua (limited to 'examples/scripting/lua/script.lua') diff --git a/examples/scripting/lua/script.lua b/examples/scripting/lua/script.lua new file mode 100644 index 0000000..09ff16d --- /dev/null +++ b/examples/scripting/lua/script.lua @@ -0,0 +1,17 @@ +print('hello from lua (script file)') + +zenc_hello('test2') + +local tbl = { + ["something"] = "good", + [2] = 3 +} + +for k,v in pairs(tbl) do + print("Key: "..k.." | Val: "..v) +end + +local str = "4" +print(tonumber(str)) + +print(os.date("today is %A, in %B")) -- cgit v1.2.3