paivett / gone

Toy compiler for a fictional go-like language called Gone.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gone compiler

This is a compiler for a tiny programming language called Gone, implemented using Python 3.6, SLY and llvmlite. Gone is a very small language based on Go.

This compiler was developed as part of the January 2018 Write a compiler course, under the supervision of David Beazly.

Requisites

The gone project requires the following dependencies

  • SLY
  • llvmlite
  • clang compiler

In order to install Python requirements, just run

pip install -r requirements.txt

clang installation depends on your OS

Compilation

To compile a gone program, run

python -m gone.compile examples/mandel.g

The examples directory has some example programs in gone

After compilation, an executable a.out will be generated.

About

Toy compiler for a fictional go-like language called Gone.


Languages

Language:Python 98.7%Language:C 0.8%Language:Makefile 0.5%