Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/evanlin96069/ika
- Owner: evanlin96069
- License: mit
- Created: 2023-10-19T17:45:53.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-09T01:12:53.000Z (3 months ago)
- Last Synced: 2024-08-09T02:35:47.186Z (3 months ago)
- Topics: compiler, language
- Language: C
- Homepage:
- Size: 236 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 recursionfn 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)