arrow_back Back to Notebook
lua
lua
January 10, 2019

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.

Thanks for reading!

John Wiseman

Full-Stack Software Engineer building scalable digital solutions. specializing in modern web technologies and mission-critical systems.

© 2026 Wiseman Systems Pty. Ltd.

Navigation

Start a Conversation

Ready to discuss your next project? Let's build something extraordinary together.

Get in Touch