Copyright (C) 2017 J. Férard https://github.com/jferard
This is an experimental project, and a work in progress.
Do not rely on it.
I will try to make a tiny self hosted compiler, one part after another. The goal is to create in Python a compiler based on LLVM. This compiler should be able to compile itself.
The only requirements will be:
- LLVM
- a python 3 interpreteter
- python llvmlite module
There are two main steps : the bootstrap in Python, and the self hosted compiler.
- Create a tiny regex library in Python
- Create a lexer on tiny regexes
- Create a parser on BNF & lexer
- Use the previous steps to output an executable build on LLVM
- Translate Python sources to self hosted syntax.
- Tie this to LLVM