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

https://github.com/cordx56/slip

Small LIsP (toy) language compiler project
https://github.com/cordx56/slip

compiler llvm rust

Last synced: 11 months ago
JSON representation

Small LIsP (toy) language compiler project

Awesome Lists containing this project

README

          

# slip
slip - Small LIsP compiler project

## Run
### Install LLVM 11 using llvmenv
- install cmake, make, ninja, g++/clang++
- `cargo install llvmenv`
- `llvmenv init`
- `llvmenv build-entry 11.0.0`
- `set -x LLVM_SYS_110_PREFIX (llvmenv prefix)`
### Run test code
```bash
$ cargo run test.slip
```
### Print test code LLVM IR
```bash
$ cargo run test.slip --llvmir
```

## Language specification
### BNF
```
::= (* *)*
::= |
::= "(" * (+ )* * ")" | "(" * ")"
::= |
::= |
```