nilang 0.4.1

A scripting language interpreter for Advent of Code
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// these instructions are all dead
a = 12345;
a = "foo";
a = 1 + 1;
a = @my_global;
a = a[0];
a = x.y;
a = a * a;

// can't remove these instructions due to side effects
b = fn() {};
b = b();
b = [0];
b[0] = 0;
print(b);