Sign up
Forgot password?
FAQ: Login

Zizo Rizk. Lua Programming Beginners: Learn Lua Programming Step by Step very easy

  • pdf file
  • size 2,39 MB
Zizo Rizk. Lua Programming Beginners: Learn Lua Programming Step by Step very easy
Independently published, 2021. — 732 p. — ISBN B09P6T2CTF.
Learn Lua Programming Step by Step for beginners.
Continuing the tradition, our first Lua program simply printed em “Hello World”: print (“Hello World”) If you are using a separate Lua interpreter, then all you need is you need to run your first program - this is to run the interpreter - usually called Lua or Lua 5.2 - with the name of the text file containing your program.
Every piece of code that Lua executes, such as a file or from- a smart string in interactive mode is called a chunk. A block is simply a sequence of commands (or statements). Lua does not need a separator between consecutive operators, but you can use semicolons if you like. I use a semicolon only to separate statements written in one line. Line splitting does not play any role in the syntax system Lua.
A block can consist of just one statement, as in the example "Hello World", or consist of a set of operators and definitions functions (which are just assignments, as we will see later), as in the factorial example. Block can be as great as you want. Since Lua is also used as the language for describing data, blocks of several megabytes are not a rarity. The Lua interpreter does not have any problems with bots with large blocks.
  • Sign up or login using form at top of the page to download this file.
  • Sign up
Up