ML-like language used for scripting
let TokenType = enum {
String
Number
Identifier
Symbol
EOF
}
let Token = struct {
position: (int, str) # line number and actual line
slice: (int, int) # beginning and end of lexeme on line
type: TokenType
lexeme: str # content of token
}
let fibonacci = func(a: int) : int {
# implicit returns
if a > 2 {
fib(a - 1) + fib(a - 2)
} else {
a
}
}
- Bad perfomance Because of using Rc<RefCell> for ValueRef VM perfomance is slow
- Tail calls
- x86_64 JIT Compiler