Reading — step 1 of 5
Learn
~1 min readFirst Steps
Lua is a small, embeddable scripting language designed in 1993 at PUC-Rio. It is famously lightweight (the interpreter is ~250KB), runs on virtually any platform, and is designed to be embedded inside larger applications.
print writes a value followed by a newline.
print("Hello, Lua!")
Lua is dynamically typed (variables don't have types, values do) and single-paradigm-flexible (you can write procedural, OO, or functional code with the same primitives).
No semicolons needed — newlines end statements. Comments use -- for single-line and --[[ ... ]] for blocks.
Discussion
Ask a question, share an insight, or help someone who’s stuck.
Sign in to post a comment or reply.
Loading…