Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/evanlin96069/ika

A simple programming language
https://github.com/evanlin96069/ika

compiler language

Last synced: 5 days ago
JSON representation

A simple programming language

Awesome Lists containing this project

README

        

# 🦑 ika

A simple programming language that compiles into x86 assembly.

## Build
```sh
make
```
Currently, Windows build is not supported yet.

## Usage
```
Usage: ikac [options] file
Options:
-E Preprocess only; do not compile, assemble or link.
-S Compile only; do not assemble or link.
-o Place the output into .
-? Display this information.
```

## Examples

### Hello world
```zig
"Hello world!\n";
```

### Fibonacci
```zig
// 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.

## Documentation

See the [ika Language Documentation](doc.md)