https://github.com/hellerve/zepto-llvm
A non-compliant compiler from zepto to machine code
https://github.com/hellerve/zepto-llvm
Last synced: 8 months ago
JSON representation
A non-compliant compiler from zepto to machine code
- Host: GitHub
- URL: https://github.com/hellerve/zepto-llvm
- Owner: hellerve
- Created: 2016-05-04T15:13:35.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-07-12T18:45:20.000Z (over 8 years ago)
- Last Synced: 2025-02-12T05:11:59.874Z (about 1 year ago)
- Size: 2.93 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# llvm-zepto
This is a silly compiler that transforms a tiny subset of zepto
into LLVM IR and compiles it into machine code.
## Usage
For an example, look no further than into the `examples` directory.
```bash
zepto main.zp examples/add.zp add
./add
echo $? # should print 3
```
We just added 1 and 2 natively! Yay!
## Caveats
This compiler is far from zepto compliant. Specifically, it compiles a subset
of zepto that only works with integers, has no closures, lambdas or the like
and has only functions as top-level definitions. Oh yeah, also it requires a
main function.
What I want to say is: it's not useful.
Have fun!