Article
home/blog/Loading

Incrementation in LUA

There is no such thing as Advanced Operators ++ or -- in Lua

-- comment

Therefore to increment a integer in LUA you have to do something like the following

a = a + 1

Why does Lua not support advanced operators

Lua's compiler is a single-pass recursive descent parser that instantanously converts to bytecode. This inherintly foreces some limitations on the grammar and semantics of Lua.