You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
597 B
Plaintext

# lua
# A powerful, light-weight embeddable programming language.
# Start an interactive Lua shell:
lua
# Execute a Lua script:
lua script_name.lua --optional-argument
# Execute a Lua expression:
lua -e 'print( "Hello World" )'
# All options are handled in order, except -i. For instance, an invocation like
# first set a to 1, then print the value of a (1), and finally run the file script.lua
lua -e'a=1' -e 'print(a)' script.lua
# See also:
# Lua language cheat sheets at /lua/
# list of pages: /lua/:list
# learn lua: /lua/:learn
# search in pages: /lua/~keyword