├── 1 词法分析器.cpp ├── 1 词法分析器.exe ├── 2 LL(1)文法.cpp ├── 3 LR(0).cpp ├── 3 LR(1)文法.cpp ├── 4 中间代码生成.cpp ├── 4 中间代码生成.exe ├── LL(1)input.txt ├── LR(0)input.txt ├── LR(1)input.txt ├── README.md ├── input.txt └── input2.txt /1 词法分析器.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17683995446/compiler-/HEAD/1 词法分析器.cpp -------------------------------------------------------------------------------- /1 词法分析器.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17683995446/compiler-/HEAD/1 词法分析器.exe -------------------------------------------------------------------------------- /2 LL(1)文法.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17683995446/compiler-/HEAD/2 LL(1)文法.cpp -------------------------------------------------------------------------------- /3 LR(0).cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17683995446/compiler-/HEAD/3 LR(0).cpp -------------------------------------------------------------------------------- /3 LR(1)文法.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17683995446/compiler-/HEAD/3 LR(1)文法.cpp -------------------------------------------------------------------------------- /4 中间代码生成.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17683995446/compiler-/HEAD/4 中间代码生成.cpp -------------------------------------------------------------------------------- /4 中间代码生成.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17683995446/compiler-/HEAD/4 中间代码生成.exe -------------------------------------------------------------------------------- /LL(1)input.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17683995446/compiler-/HEAD/LL(1)input.txt -------------------------------------------------------------------------------- /LR(0)input.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17683995446/compiler-/HEAD/LR(0)input.txt -------------------------------------------------------------------------------- /LR(1)input.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17683995446/compiler-/HEAD/LR(1)input.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17683995446/compiler-/HEAD/README.md -------------------------------------------------------------------------------- /input.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/17683995446/compiler-/HEAD/input.txt -------------------------------------------------------------------------------- /input2.txt: -------------------------------------------------------------------------------- 1 | A=B+C 2 | B=D*E 3 | E=F+4 4 | if E