A simple programming language that compiles into x86 assembly.
make
Currently, Windows build is not supported yet.
Usage: ikac [options] file
Options:
-E Preprocess only; do not compile, assemble or link.
-S Compile only; do not assemble or link.
-o <file> Place the output into <file>.
-? Display this information.
"Hello world!\n";
// Fibonacci sequence using recursion
fn fib(n) {
if (n <= 1) {
return n;
}
return fib(n - 1) + fib(n - 2);
}
fn main() {
var i = 0;
while (i < 10) : (i += 1) {
"%d\n", fib(i);
}
}
main();
See more examples in the examples
folder.
See the ika Language Documentation