Home

Awesome

Urhay Interpreter

a small, educational AST interpreter that implements a dynamically-typed, C-like language.

Example Code:

main()
{
	var i = 5, x = 8;
	func1(ptr_test, &x);
	if i==5 {
		i+=2;
	}
	return i;
}

func1(f, x)
{
	f(x);
}

ptr_test(ref)
{
	@ref = 10;
}

fib(n)
{
	return n<2 ? n : fib(n-1) + fib(n-2);
}

Features: