A interpreter of PL/0'
More detail of PL/0' is available on コンパイラ 作りながら学ぶ.
- C++14
- Clang is recommended
- CMake
- LLVM ^6.0.1
- When use LLVM backend
Use CMake.
mkdir build
cd build
cmake ..
make
pl0
: Build evaluator on own virtual machinellvmpl0
: Build compiler to LLVM IR
build/pl0 sample.plz
sh pl0.sh sample.plz
lli out.ll