Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ozansz/vlang-llvm-compiler
LLVM-based code generator for CENG444 term project experimental language VLang
https://github.com/ozansz/vlang-llvm-compiler
bison compiler compiler-design flex llvm llvm-ir metu-ceng
Last synced: 22 days ago
JSON representation
LLVM-based code generator for CENG444 term project experimental language VLang
- Host: GitHub
- URL: https://github.com/ozansz/vlang-llvm-compiler
- Owner: ozansz
- Created: 2020-01-13T01:07:39.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-15T20:19:51.000Z (almost 5 years ago)
- Last Synced: 2024-10-05T07:02:23.414Z (about 1 month ago)
- Topics: bison, compiler, compiler-design, flex, llvm, llvm-ir, metu-ceng
- Language: C++
- Homepage: https://sazak.io/projects/vlang-metu
- Size: 61.5 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sazak's VLang Compiler
This is a minimal code generator written using Flex, Bison and LLVM.
See [Cem Bozşahin's repo](https://github.com/bozsahin/ceng444/blob/master/project-material/vspecs-2019.pdf) for VLang specs.
## Usage
To compile the compiler, just run make:
```bash
make
```It will generate **parser**, **irgen** and **compiler** executables.
### Tools
```bash
cat source_code_file.v | ./parser
cat source_code_file.v | ./irgen
cat source_code_file.v | ./compiler
```The compiler generates a LLVM IR code to file **out.ll**