Skip to content

Releases: willerf/nex-lang

v2.1-alpha

28 Nov 04:46
4dd4776

Choose a tag to compare

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

15 Nov 07:15

Choose a tag to compare

v2.0-alpha Pre-release
Pre-release

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

13 Nov 07:12

Choose a tag to compare

v1.1-alpha Pre-release
Pre-release

Bug Fixes

  • Compilation failures with gcc
  • Scoping variables for while loops
  • Argument evaluation

v1.0-alpha

10 Nov 08:19

Choose a tag to compare

v1.0-alpha Pre-release
Pre-release

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: & *