by Stijn Sanders
Attempt at a programming language without any reserved words.

It started as both a personal project to get the hands dirty on parsers and compilers, and a proof of concept to show that a programming language without reserved words could work. Along the way other niceties turned up like 'selection by boolean juxtaposition' and a fixed-size-node AST, while remaining relatively readable and strict enough to prevent one from shooting in one's foot.

euler.problem2
// https://projecteuler.net/problem=2
// Even Fibonacci numbers
{
	:a:=1;
	:b:=2;
	:c:=0;
	:sum:=2;//first even term is the 2 to start with!
	&(c<4000000){
		c:=a+b;
		a:=b;
		b:=c;
		(c%2==0) sum+=c;;
	}
	__writeln(sum:string);
}
Information updated 04/04/16
View Comments