This repository contains the following code examples:
- comments/comments.lua: how to comment in a Lua script
- functions/basic-function.lua: how to write functions
- hello-world/hello-world.lua: Hello, world! in Lua (basic version)
- hello-world/hello-world-with-version.lua: Hello, world! in Lua (with Lua version number)
- variables/arrays.lua: examples using arrays
- variables/variables.lua: examples using variables
In order to validate Lua code I have added a Bash script below. It calls Lua-check if installed:
- validation/validate-lua-file.sh Bash script that is based on lua-check