summaryrefslogtreecommitdiff
path: root/examples/scripting/lua/script.lua
diff options
context:
space:
mode:
authorSteven <burnett@posteo.de>2026-01-17 21:22:52 +0000
committerSteven <burnett@posteo.de>2026-01-17 21:22:52 +0000
commit68d493c5f261a99b40d90e2cc4f08b24d1975234 (patch)
treee9a0e4438d1b7c8e5bb5e26ec2585918e85f8e80 /examples/scripting/lua/script.lua
parent7ac5be7ba8f700f69009c5e980ee7b12b0653586 (diff)
chore(examples): New example for LUA bindings
Diffstat (limited to 'examples/scripting/lua/script.lua')
-rw-r--r--examples/scripting/lua/script.lua17
1 files changed, 17 insertions, 0 deletions
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"))