Writing SwaziLang Code.
In order to learn SwaziLang, you must be able to write and execute codes.
In this lesson you will learn how to write your first program with SwaziLang.
You do have two different ways to write and execute SwaziLang codes. that is the REPL and via a file. Since we already talked about the REPL earlier, here we are going to talk about writing and executing codes via a file.
- It is easy, you will just have to write SwaziLang codes in a text file and run
swaziinterpreter to execute it.
eg. of code, You will just write his simple code
swazi
x = 5That stores a number(5) to x, just like simple math