Skip to content

A simple programming language frontend written in Python using LLVM.

License

Notifications You must be signed in to change notification settings

Aermoss/SimpleCompiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Simple Compiler

A simple programming language frontend written in Python using LLVM.

Getting Started

Building a program

python main.py build test.txt

Running a program (JIT Compilation)

python main.py run test.txt

Writing a simple program

There are only void's and int's in this language so we can't print out "Hello, World!"

#include <iostream>

int main() {
    print(120);
    return 0;
}