├── 01_源代码阅读 ├── README.txt └── 源代码阅读.doc ├── 02_文法解读文档 ├── README.txt ├── 文法解读.docx ├── 示例程序t.txt └── 示例程序运行结果.txt ├── 03_词法分析程序 ├── README.txt ├── test.txt ├── test.txt_result.txt ├── 词法分析程序源码 │ ├── GrammarAnalyzer.cpp │ ├── GrammarAnalyzer.h │ ├── LexicalAnalyzer.cpp │ ├── LexicalAnalyzer.h │ └── main.cpp └── 词法分析结果.docx ├── 04_设计文档 ├── README.txt ├── 四元式.xlsx └── 设计文档.docx ├── 05_语法分析程序 ├── README.txt ├── result.txt ├── test.txt └── 语法分析程序源码 │ ├── ErrorHandler.cpp │ ├── ErrorHandler.h │ ├── GrammarAnalyzer.cpp │ ├── GrammarAnalyzer.h │ ├── LexicalAnalyzer.cpp │ ├── LexicalAnalyzer.h │ ├── SymbolTableManager.cpp │ ├── SymbolTableManager.h │ ├── main.cpp │ ├── test.cpp │ └── type.h ├── 06_代码生成程序 ├── README.txt ├── test.txt ├── 代码生成程序源码 │ ├── ErrorHandler.cpp │ ├── ErrorHandler.h │ ├── GrammarAnalyzer.cpp │ ├── GrammarAnalyzer.h │ ├── LexicalAnalyzer.cpp │ ├── LexicalAnalyzer.h │ ├── Quadruples.cpp │ ├── Quadruples.h │ ├── SemanticAnalyzer.cpp │ ├── SemanticAnalyzer.h │ ├── SymbolTableManager.cpp │ ├── SymbolTableManager.h │ ├── TargetCodeGenerator.h │ ├── main.cpp │ ├── test.cpp │ └── type.h └── 测试结果说明.docx ├── 07_目标代码生成 ├── README.txt ├── assemble.asm ├── test.txt └── 目标代码生成程序源码 │ ├── ErrorHandler.cpp │ ├── ErrorHandler.h │ ├── GrammarAnalyzer.cpp │ ├── GrammarAnalyzer.h │ ├── LexicalAnalyzer.cpp │ ├── LexicalAnalyzer.h │ ├── Quadruples.cpp │ ├── Quadruples.h │ ├── RegisterPool.cpp │ ├── RegisterPool.h │ ├── SemanticAnalyzer.cpp │ ├── SemanticAnalyzer.h │ ├── StackManager.cpp │ ├── StackManager.h │ ├── SymbolTableManager.cpp │ ├── SymbolTableManager.h │ ├── TargetCodeGenerator.cpp │ ├── TargetCodeGenerator.h │ ├── main.cpp │ ├── type.h │ └── x86_instruction.h ├── 08_最终结果 ├── README.txt ├── 文档 │ ├── 编译课设文档.docx │ └── 编译课设申优文档.docx ├── 测试程序 │ ├── 测试程序.txt │ ├── 目标代码运行结果.txt │ └── 编译结果.asm └── 源代码 │ ├── ErrorHandler.cpp │ ├── ErrorHandler.h │ ├── GrammarAnalyzer.cpp │ ├── GrammarAnalyzer.h │ ├── LexicalAnalyzer.cpp │ ├── LexicalAnalyzer.h │ ├── Quadruples.cpp │ ├── Quadruples.h │ ├── RegisterPool.cpp │ ├── RegisterPool.h │ ├── SemanticAnalyzer.cpp │ ├── SemanticAnalyzer.h │ ├── StackManager.cpp │ ├── StackManager.h │ ├── SymbolTableManager.cpp │ ├── SymbolTableManager.h │ ├── TargetCodeGenerator.cpp │ ├── TargetCodeGenerator.h │ ├── main.cpp │ ├── type.h │ └── x86_instruction.h ├── LICENSE ├── README.md ├── 扩充PL_0文法.txt └── 测试程序.txt /01_源代码阅读/README.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/01_源代码阅读/README.txt -------------------------------------------------------------------------------- /01_源代码阅读/源代码阅读.doc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/01_源代码阅读/源代码阅读.doc -------------------------------------------------------------------------------- /02_文法解读文档/README.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/02_文法解读文档/README.txt -------------------------------------------------------------------------------- /02_文法解读文档/文法解读.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/02_文法解读文档/文法解读.docx -------------------------------------------------------------------------------- /02_文法解读文档/示例程序t.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/02_文法解读文档/示例程序t.txt -------------------------------------------------------------------------------- /02_文法解读文档/示例程序运行结果.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/02_文法解读文档/示例程序运行结果.txt -------------------------------------------------------------------------------- /03_词法分析程序/README.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/03_词法分析程序/README.txt -------------------------------------------------------------------------------- /03_词法分析程序/test.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/03_词法分析程序/test.txt -------------------------------------------------------------------------------- /03_词法分析程序/test.txt_result.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/03_词法分析程序/test.txt_result.txt -------------------------------------------------------------------------------- /03_词法分析程序/词法分析程序源码/GrammarAnalyzer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/03_词法分析程序/词法分析程序源码/GrammarAnalyzer.cpp -------------------------------------------------------------------------------- /03_词法分析程序/词法分析程序源码/GrammarAnalyzer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/03_词法分析程序/词法分析程序源码/GrammarAnalyzer.h -------------------------------------------------------------------------------- /03_词法分析程序/词法分析程序源码/LexicalAnalyzer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/03_词法分析程序/词法分析程序源码/LexicalAnalyzer.cpp -------------------------------------------------------------------------------- /03_词法分析程序/词法分析程序源码/LexicalAnalyzer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/03_词法分析程序/词法分析程序源码/LexicalAnalyzer.h -------------------------------------------------------------------------------- /03_词法分析程序/词法分析程序源码/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/03_词法分析程序/词法分析程序源码/main.cpp -------------------------------------------------------------------------------- /03_词法分析程序/词法分析结果.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/03_词法分析程序/词法分析结果.docx -------------------------------------------------------------------------------- /04_设计文档/README.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/04_设计文档/README.txt -------------------------------------------------------------------------------- /04_设计文档/四元式.xlsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/04_设计文档/四元式.xlsx -------------------------------------------------------------------------------- /04_设计文档/设计文档.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/04_设计文档/设计文档.docx -------------------------------------------------------------------------------- /05_语法分析程序/README.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/05_语法分析程序/README.txt -------------------------------------------------------------------------------- /05_语法分析程序/result.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/05_语法分析程序/result.txt -------------------------------------------------------------------------------- /05_语法分析程序/test.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/05_语法分析程序/test.txt -------------------------------------------------------------------------------- /05_语法分析程序/语法分析程序源码/ErrorHandler.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/05_语法分析程序/语法分析程序源码/ErrorHandler.cpp -------------------------------------------------------------------------------- /05_语法分析程序/语法分析程序源码/ErrorHandler.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/05_语法分析程序/语法分析程序源码/ErrorHandler.h -------------------------------------------------------------------------------- /05_语法分析程序/语法分析程序源码/GrammarAnalyzer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/05_语法分析程序/语法分析程序源码/GrammarAnalyzer.cpp -------------------------------------------------------------------------------- /05_语法分析程序/语法分析程序源码/GrammarAnalyzer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/05_语法分析程序/语法分析程序源码/GrammarAnalyzer.h -------------------------------------------------------------------------------- /05_语法分析程序/语法分析程序源码/LexicalAnalyzer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/05_语法分析程序/语法分析程序源码/LexicalAnalyzer.cpp -------------------------------------------------------------------------------- /05_语法分析程序/语法分析程序源码/LexicalAnalyzer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/05_语法分析程序/语法分析程序源码/LexicalAnalyzer.h -------------------------------------------------------------------------------- /05_语法分析程序/语法分析程序源码/SymbolTableManager.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/05_语法分析程序/语法分析程序源码/SymbolTableManager.cpp -------------------------------------------------------------------------------- /05_语法分析程序/语法分析程序源码/SymbolTableManager.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/05_语法分析程序/语法分析程序源码/SymbolTableManager.h -------------------------------------------------------------------------------- /05_语法分析程序/语法分析程序源码/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/05_语法分析程序/语法分析程序源码/main.cpp -------------------------------------------------------------------------------- /05_语法分析程序/语法分析程序源码/test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/05_语法分析程序/语法分析程序源码/test.cpp -------------------------------------------------------------------------------- /05_语法分析程序/语法分析程序源码/type.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/05_语法分析程序/语法分析程序源码/type.h -------------------------------------------------------------------------------- /06_代码生成程序/README.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/06_代码生成程序/README.txt -------------------------------------------------------------------------------- /06_代码生成程序/test.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/06_代码生成程序/test.txt -------------------------------------------------------------------------------- /06_代码生成程序/代码生成程序源码/ErrorHandler.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/06_代码生成程序/代码生成程序源码/ErrorHandler.cpp -------------------------------------------------------------------------------- /06_代码生成程序/代码生成程序源码/ErrorHandler.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/06_代码生成程序/代码生成程序源码/ErrorHandler.h -------------------------------------------------------------------------------- /06_代码生成程序/代码生成程序源码/GrammarAnalyzer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/06_代码生成程序/代码生成程序源码/GrammarAnalyzer.cpp -------------------------------------------------------------------------------- /06_代码生成程序/代码生成程序源码/GrammarAnalyzer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/06_代码生成程序/代码生成程序源码/GrammarAnalyzer.h -------------------------------------------------------------------------------- /06_代码生成程序/代码生成程序源码/LexicalAnalyzer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/06_代码生成程序/代码生成程序源码/LexicalAnalyzer.cpp -------------------------------------------------------------------------------- /06_代码生成程序/代码生成程序源码/LexicalAnalyzer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/06_代码生成程序/代码生成程序源码/LexicalAnalyzer.h -------------------------------------------------------------------------------- /06_代码生成程序/代码生成程序源码/Quadruples.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/06_代码生成程序/代码生成程序源码/Quadruples.cpp -------------------------------------------------------------------------------- /06_代码生成程序/代码生成程序源码/Quadruples.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/06_代码生成程序/代码生成程序源码/Quadruples.h -------------------------------------------------------------------------------- /06_代码生成程序/代码生成程序源码/SemanticAnalyzer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/06_代码生成程序/代码生成程序源码/SemanticAnalyzer.cpp -------------------------------------------------------------------------------- /06_代码生成程序/代码生成程序源码/SemanticAnalyzer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/06_代码生成程序/代码生成程序源码/SemanticAnalyzer.h -------------------------------------------------------------------------------- /06_代码生成程序/代码生成程序源码/SymbolTableManager.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/06_代码生成程序/代码生成程序源码/SymbolTableManager.cpp -------------------------------------------------------------------------------- /06_代码生成程序/代码生成程序源码/SymbolTableManager.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/06_代码生成程序/代码生成程序源码/SymbolTableManager.h -------------------------------------------------------------------------------- /06_代码生成程序/代码生成程序源码/TargetCodeGenerator.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/06_代码生成程序/代码生成程序源码/TargetCodeGenerator.h -------------------------------------------------------------------------------- /06_代码生成程序/代码生成程序源码/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/06_代码生成程序/代码生成程序源码/main.cpp -------------------------------------------------------------------------------- /06_代码生成程序/代码生成程序源码/test.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/06_代码生成程序/代码生成程序源码/test.cpp -------------------------------------------------------------------------------- /06_代码生成程序/代码生成程序源码/type.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/06_代码生成程序/代码生成程序源码/type.h -------------------------------------------------------------------------------- /06_代码生成程序/测试结果说明.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/06_代码生成程序/测试结果说明.docx -------------------------------------------------------------------------------- /07_目标代码生成/README.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/07_目标代码生成/README.txt -------------------------------------------------------------------------------- /07_目标代码生成/assemble.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/07_目标代码生成/assemble.asm -------------------------------------------------------------------------------- /07_目标代码生成/test.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/07_目标代码生成/test.txt -------------------------------------------------------------------------------- /07_目标代码生成/目标代码生成程序源码/ErrorHandler.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/07_目标代码生成/目标代码生成程序源码/ErrorHandler.cpp -------------------------------------------------------------------------------- /07_目标代码生成/目标代码生成程序源码/ErrorHandler.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/07_目标代码生成/目标代码生成程序源码/ErrorHandler.h -------------------------------------------------------------------------------- /07_目标代码生成/目标代码生成程序源码/GrammarAnalyzer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/07_目标代码生成/目标代码生成程序源码/GrammarAnalyzer.cpp -------------------------------------------------------------------------------- /07_目标代码生成/目标代码生成程序源码/GrammarAnalyzer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/07_目标代码生成/目标代码生成程序源码/GrammarAnalyzer.h -------------------------------------------------------------------------------- /07_目标代码生成/目标代码生成程序源码/LexicalAnalyzer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/07_目标代码生成/目标代码生成程序源码/LexicalAnalyzer.cpp -------------------------------------------------------------------------------- /07_目标代码生成/目标代码生成程序源码/LexicalAnalyzer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/07_目标代码生成/目标代码生成程序源码/LexicalAnalyzer.h -------------------------------------------------------------------------------- /07_目标代码生成/目标代码生成程序源码/Quadruples.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/07_目标代码生成/目标代码生成程序源码/Quadruples.cpp -------------------------------------------------------------------------------- /07_目标代码生成/目标代码生成程序源码/Quadruples.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/07_目标代码生成/目标代码生成程序源码/Quadruples.h -------------------------------------------------------------------------------- /07_目标代码生成/目标代码生成程序源码/RegisterPool.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/07_目标代码生成/目标代码生成程序源码/RegisterPool.cpp -------------------------------------------------------------------------------- /07_目标代码生成/目标代码生成程序源码/RegisterPool.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/07_目标代码生成/目标代码生成程序源码/RegisterPool.h -------------------------------------------------------------------------------- /07_目标代码生成/目标代码生成程序源码/SemanticAnalyzer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/07_目标代码生成/目标代码生成程序源码/SemanticAnalyzer.cpp -------------------------------------------------------------------------------- /07_目标代码生成/目标代码生成程序源码/SemanticAnalyzer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/07_目标代码生成/目标代码生成程序源码/SemanticAnalyzer.h -------------------------------------------------------------------------------- /07_目标代码生成/目标代码生成程序源码/StackManager.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/07_目标代码生成/目标代码生成程序源码/StackManager.cpp -------------------------------------------------------------------------------- /07_目标代码生成/目标代码生成程序源码/StackManager.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/07_目标代码生成/目标代码生成程序源码/StackManager.h -------------------------------------------------------------------------------- /07_目标代码生成/目标代码生成程序源码/SymbolTableManager.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/07_目标代码生成/目标代码生成程序源码/SymbolTableManager.cpp -------------------------------------------------------------------------------- /07_目标代码生成/目标代码生成程序源码/SymbolTableManager.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/07_目标代码生成/目标代码生成程序源码/SymbolTableManager.h -------------------------------------------------------------------------------- /07_目标代码生成/目标代码生成程序源码/TargetCodeGenerator.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/07_目标代码生成/目标代码生成程序源码/TargetCodeGenerator.cpp -------------------------------------------------------------------------------- /07_目标代码生成/目标代码生成程序源码/TargetCodeGenerator.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/07_目标代码生成/目标代码生成程序源码/TargetCodeGenerator.h -------------------------------------------------------------------------------- /07_目标代码生成/目标代码生成程序源码/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/07_目标代码生成/目标代码生成程序源码/main.cpp -------------------------------------------------------------------------------- /07_目标代码生成/目标代码生成程序源码/type.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/07_目标代码生成/目标代码生成程序源码/type.h -------------------------------------------------------------------------------- /07_目标代码生成/目标代码生成程序源码/x86_instruction.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/07_目标代码生成/目标代码生成程序源码/x86_instruction.h -------------------------------------------------------------------------------- /08_最终结果/README.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/08_最终结果/README.txt -------------------------------------------------------------------------------- /08_最终结果/文档/编译课设文档.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/08_最终结果/文档/编译课设文档.docx -------------------------------------------------------------------------------- /08_最终结果/文档/编译课设申优文档.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/08_最终结果/文档/编译课设申优文档.docx -------------------------------------------------------------------------------- /08_最终结果/测试程序/测试程序.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/08_最终结果/测试程序/测试程序.txt -------------------------------------------------------------------------------- /08_最终结果/测试程序/目标代码运行结果.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/08_最终结果/测试程序/目标代码运行结果.txt -------------------------------------------------------------------------------- /08_最终结果/测试程序/编译结果.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/08_最终结果/测试程序/编译结果.asm -------------------------------------------------------------------------------- /08_最终结果/源代码/ErrorHandler.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/08_最终结果/源代码/ErrorHandler.cpp -------------------------------------------------------------------------------- /08_最终结果/源代码/ErrorHandler.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/08_最终结果/源代码/ErrorHandler.h -------------------------------------------------------------------------------- /08_最终结果/源代码/GrammarAnalyzer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/08_最终结果/源代码/GrammarAnalyzer.cpp -------------------------------------------------------------------------------- /08_最终结果/源代码/GrammarAnalyzer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/08_最终结果/源代码/GrammarAnalyzer.h -------------------------------------------------------------------------------- /08_最终结果/源代码/LexicalAnalyzer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/08_最终结果/源代码/LexicalAnalyzer.cpp -------------------------------------------------------------------------------- /08_最终结果/源代码/LexicalAnalyzer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/08_最终结果/源代码/LexicalAnalyzer.h -------------------------------------------------------------------------------- /08_最终结果/源代码/Quadruples.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/08_最终结果/源代码/Quadruples.cpp -------------------------------------------------------------------------------- /08_最终结果/源代码/Quadruples.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/08_最终结果/源代码/Quadruples.h -------------------------------------------------------------------------------- /08_最终结果/源代码/RegisterPool.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/08_最终结果/源代码/RegisterPool.cpp -------------------------------------------------------------------------------- /08_最终结果/源代码/RegisterPool.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/08_最终结果/源代码/RegisterPool.h -------------------------------------------------------------------------------- /08_最终结果/源代码/SemanticAnalyzer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/08_最终结果/源代码/SemanticAnalyzer.cpp -------------------------------------------------------------------------------- /08_最终结果/源代码/SemanticAnalyzer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/08_最终结果/源代码/SemanticAnalyzer.h -------------------------------------------------------------------------------- /08_最终结果/源代码/StackManager.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/08_最终结果/源代码/StackManager.cpp -------------------------------------------------------------------------------- /08_最终结果/源代码/StackManager.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/08_最终结果/源代码/StackManager.h -------------------------------------------------------------------------------- /08_最终结果/源代码/SymbolTableManager.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/08_最终结果/源代码/SymbolTableManager.cpp -------------------------------------------------------------------------------- /08_最终结果/源代码/SymbolTableManager.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/08_最终结果/源代码/SymbolTableManager.h -------------------------------------------------------------------------------- /08_最终结果/源代码/TargetCodeGenerator.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/08_最终结果/源代码/TargetCodeGenerator.cpp -------------------------------------------------------------------------------- /08_最终结果/源代码/TargetCodeGenerator.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/08_最终结果/源代码/TargetCodeGenerator.h -------------------------------------------------------------------------------- /08_最终结果/源代码/main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/08_最终结果/源代码/main.cpp -------------------------------------------------------------------------------- /08_最终结果/源代码/type.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/08_最终结果/源代码/type.h -------------------------------------------------------------------------------- /08_最终结果/源代码/x86_instruction.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/08_最终结果/源代码/x86_instruction.h -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/README.md -------------------------------------------------------------------------------- /扩充PL_0文法.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/扩充PL_0文法.txt -------------------------------------------------------------------------------- /测试程序.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luice/BUAA-Compiler-Pascal-to-x86/HEAD/测试程序.txt --------------------------------------------------------------------------------