Releases: willerf/nex-lang
Releases · willerf/nex-lang
v2.1-alpha
New Features
- Dynamic memory allocation via the heap (new/delete keywords)
struct MyStruct {
a: i32;
b: char;
}
let my_struct = new MyStruct;
let arr = new i32[10];See additional documentation on features in the NexLang Reference.
- Also initial standard library setup with math, print, string and list modules.
v2.0-alpha
New Features
New support for modules and imports!
- All source files must start by declaring its module name
mod main;
- After declaring the module, other modules can be imported via the import keyword
import print;
- All modules imported must be compiled into the binary by including it in the compilation command
./cnl main.nl print.nl
v1.1-alpha
Bug Fixes
- Compilation failures with gcc
- Scoping variables for while loops
- Argument evaluation
v1.0-alpha
Current Features
- Functions
- Pointers
- Branching
- Loops
- Recursion
- Strict Type Checking
- Char Literals
- String Literals
Supported Types
- Integer: i32
- Boolean: bool
- Character: char
- Pointer: *
Supported Operations
- Boolean: || && !
- Comparison: == != < > <= >=
- Arithmetic: + - * / %
- Address-of and Dereference: & *