Assignment of Compiler-Principle 2021 fall Taishan College.
Simple PL/0 compiler and simulator with LR1 parser.
LR1 parser used is a variation of slr-parser.
Grammar comes from https://github.com/Furyton/PL0-Compiler.
Compiler
python3 ./src/main.py
Simulator
python3 ./src/simulator.py
You can switch debug mode in correspondent source file.