Lua is a small but powerful programming language used in ToME to customize the engine. For example, you may add spells, racial powers, quests, etc. coded in Lua.
Lua means moon in Portuguese and is pronounced LOO-ah.
A Lua tutorial for ToME can be found in Documentation/Lua scripting help menu.
External links:
ToME Wiki