Repository navigation
Documentation
Killa is a language based in Lua and JavaScript, unfortunately there is no documentation at this moment. However the language is simple and the samples alone could help to learn it.
Lua 5.2 users would find all the library functions they are used to (with some differences due to Killa using indexes base 0 for strings and tables).
For JavaScript users the language would look very familiar and some scripts could even run with minor changes in both languages, however there are semantical differences that need to be considered to use Killa correctly.
In general terms, Killa is more strict than JavaScript or Lua and would require a little more effort to create correct programs in Killa than in those languages, but this comes with the advantage of creating more robust programs.
2.1 – Values and Types
2.2 – Environments and the Global Environment
2.3 – Error Handling
2.4 – Metatables and Metamethods
2.5 – Garbage Collection
2.5.1 – Garbage-Collection Metamethods
2.5.2 – Weak Tables
2.6 – Coroutines
3.1 – Lexical Conventions
3.2 – Variables
3.3 – Statements
3.3.1 – Blocks
3.3.2 – Chunks
3.3.3 – Assignment
3.3.4 – Control Structures
3.3.5 – For Statement
3.3.6 – Function Calls as Statements
3.3.7 – Local Declarations
3.4 – Expressions
3.4.1 – Arithmetic Operators
3.4.2 – Coercion
3.4.3 – Relational Operators
3.4.4 – Logical Operators
3.4.5 – Concatenation
3.4.6 – The Length Operator
3.4.7 – Precedence
3.4.8 – Table Constructors
3.4.9 – Function Calls
3.4.10 – Function Definitions
3.5 – Visibility Rules
4.1 – Basic Functions
4.2 – Coroutine Manipulation
4.3 – Modules
4.4 – String manipulation
4.4.1 – Patterns
4.5 – Table Manipulation
4.6 – Mathematical Functions
4.7 – Bitwise Operations
4.8 – Input and Output Facilities
4.9 – Operating System Facilities
4.10 – The Debug Library