Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sid911/shawarma_llvm
Shawarma AOT compiler
https://github.com/sid911/shawarma_llvm
Last synced: 28 days ago
JSON representation
Shawarma AOT compiler
- Host: GitHub
- URL: https://github.com/sid911/shawarma_llvm
- Owner: Sid911
- Created: 2024-07-21T19:30:24.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2024-12-07T23:15:45.000Z (about 1 month ago)
- Last Synced: 2024-12-08T00:18:42.792Z (about 1 month ago)
- Language: C++
- Size: 66.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Shawarma AOT compiler
This projects explores basic AOT compiler using LLVM for Shawarma toy language. Sample hello world for shawarma looks something like this.
> hello.shw
```kt
# Hello world
recipe add(x: i32, y: i32): i32{
bill x + y;
}recipe main() : i32 {
ing s : i32;
s = add(10, 20);
serveLn("Hello, World!, %d, %d", s, 20);
bill 0;
}
```# Building Compiler