nilang 0.4.1

A scripting language interpreter for Advent of Code
Documentation
1
2
3
4
5
6
7
8
9
10
// Basic patch test - adding a method to str type
patch($str, $exclaim, fn(self) {
  result = self;
  result << "!";
  return result;
});

message = "Hello";
result = message.exclaim();
print(result);