Skip to content

paivett/gone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages