Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aermoss/simplecompiler
A simple programming language frontend written in Python using LLVM.
https://github.com/aermoss/simplecompiler
compiler lexer llvm llvm-ir llvmlite parser python simple-compiler
Last synced: about 1 month ago
JSON representation
A simple programming language frontend written in Python using LLVM.
- Host: GitHub
- URL: https://github.com/aermoss/simplecompiler
- Owner: Aermoss
- License: mit
- Created: 2022-07-04T22:28:37.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-23T14:41:24.000Z (10 months ago)
- Last Synced: 2024-02-23T15:47:17.455Z (10 months ago)
- Topics: compiler, lexer, llvm, llvm-ir, llvmlite, parser, python, simple-compiler
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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!"
```c++
#includeint main() {
print(120);
return 0;
}
```