Small programming language.
- Install prerequisites.
- Install
l0
package withnpm install https://github.com/hopeless-programmer-online/l0.git#refactoring3
. - Interpret the desired
.l0
file withnpx l0 file.l0
.
; hello world
print("Hello, World!")
x : not(true) print(x)
x : and(true, false) print(x)
x : or(true, false) print(x)
then() { print("then") }
if (true, then)
x : type(true) print(x)
x : +(5,2) print(x)
x : -(5,2) print(x)
x : *(5,2) print(x)
x : /(5,2) print(x)
x : >(5,2) print(x)
x : >=(5,2) print(x)
x : <(5,2) print(x)
x : <=(5,2) print(x)
x : type(5) print(x)
x : length("text") print(x)
x : +("a", "b") print(x)
x : type("text") print(x)
v : var(5) print(v)
=(v, 10) print(v)
x : type(v) print(x)
l : List() print(l)
push_front(l, 1) print(l)
push_back(l, 2) print(l)
pop_front(l) print(l)
pop_back(l) print(l)
x : type(l) print(x)