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
// the export example we are loading checks for a global flag and returns a
// value if it is set else it returns null
value = import("./src/runtime/tests/test_programs/exporting.nl");

print(value);

@flag = true;

// export value is cached so flipping the flag does not mean file is rerun
// and value is returned
value = import("./src/runtime/tests/test_programs/exporting.nl");

print(value);