It's not quite finished yet, but I've created a demo here so that anyone can help test for bugs. Right now, the demo's only built in function is print. (Edit 1/30/11: Run the demo from the library instead.)
Here's an example of the language, which can also be found on the demo's hub page:
a=10;
if(a>0) {
i=0;
while(i<a) {
i+=1;
print(OddOrEven(i));
}
}
def OddOrEven(x) {
if(x%2) {
return "Odd";
} else {
return "Even";
}
}
Also note that the language is unique (or quirky?) in that functions, like variables, can be defined anywhere and are local to the block they're in, so for example you could have a function inside of an if statement.
Update:
-Else fixed for Tiberath ;)
-Also, I forgot to mention that unlike in DM, the ^ operator is used for exponents and the grave accent (`) is the binary xor operator.
{
print(1);
blah();
}
blah();
Who needs while(1)?
edit: Aww, no dm tags in comments.
Nice job so far.