🚀 Labs of Compiler Principles, including 4 parts:
- Lexical Analysis
- LL(1)
- LR(1)
- Semantic Analysis
🚀 LL(1) Parser Generator.pdf
and SLR Parser Generator.pdf
are generated from Online LL / SLR / LR Generator, which is strongly recommended.
- Symbol Table is defined in
LexAnalysis/c_keys.txt
- Source Code is in
LexAnalysis/LexAnalysis.h
- Transition Diagram:
The analysis table is computed manually. However, I stronglly recommend using the online generator mentioned above.
The analysis table is in SLR Parser Generator.pdf
.
The analysis table is in LL(1) Parser Generator.pdf
. I did the translation schema during LL(1) procedure.