Skip to content

fliingelephant/ToyCompiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ToyCompiler

A toy compiler translating Python source code into LLVM IRs, based on Python-builtin module ast and llvmlite,

 by tht(CyrilKZ@GitHub) and zhh(fliingelephant@GitHub)

  • To run this toy compiler, you may install the following package:

    pip3 install llvmlite
  • Then compile the given source.py

    python3 ToyCompiler.py

As a course project, only few features are supported, not including type inference of function arguments, returning call result of another function in a function, etc.

About

Course project for Principles of Assembly and Compilation, 2019 Fall, THUSE

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages