Compiler is an applet that can interpret and run scripts.
Language Summary
Compiler understands a language similar to C and Java (though not object-oriented). It is probably most easily understood by reading the example code, but you can also read the language "specification" below.Operators
arithmetic operators: + - * / % & | ^ ~Flow control statements
parentheses: ( )
comparison operators: < > <= >= == !=
assignment operator: =
variable decraration: int boolean string
end of line: ;
boolean constants: true false
logical operators: && || !
commments: // /* */
functions: name(param1, param2)
Loop statements
if (bool1) {
;
} else if (bool2)
;
else
;
do {Functions
if (bool3)
break;
if (bool4)
continue;
} while (bool5);
while (bool6) {
;
}
Compiler will happily crash when fed infinite recursion, and will freeze in infinite loops.
void print(string)Operator precedence (same as Java)
string substring(string, int, int)
int random()
( )
! ~ + (unary) - (unary)
* / %
+ -
<= >= < >
== !=
&
^
|
&&
||
=
By Björn Carlin, 2002