Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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**