├── .classpath ├── .gitignore ├── .project ├── .settings └── org.eclipse.jdt.core.prefs ├── README.md ├── compile document.docx ├── src ├── AllPcode.java ├── AllSymbol.java ├── GSAnalysis.java ├── Interpreter.java ├── LexAnalysis.java ├── MyCompiler.java ├── Operator.java ├── PerPcode.java ├── PerSymbol.java ├── SymType.java └── Token.java └── testPL0 ├── demo1.txt ├── demo2.txt ├── demo3.txt ├── demo4.txt └── demo5.txt /.classpath: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiyi001/PL0Compiler/HEAD/.classpath -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.class -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiyi001/PL0Compiler/HEAD/.project -------------------------------------------------------------------------------- /.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiyi001/PL0Compiler/HEAD/.settings/org.eclipse.jdt.core.prefs -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiyi001/PL0Compiler/HEAD/README.md -------------------------------------------------------------------------------- /compile document.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiyi001/PL0Compiler/HEAD/compile document.docx -------------------------------------------------------------------------------- /src/AllPcode.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiyi001/PL0Compiler/HEAD/src/AllPcode.java -------------------------------------------------------------------------------- /src/AllSymbol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiyi001/PL0Compiler/HEAD/src/AllSymbol.java -------------------------------------------------------------------------------- /src/GSAnalysis.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiyi001/PL0Compiler/HEAD/src/GSAnalysis.java -------------------------------------------------------------------------------- /src/Interpreter.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiyi001/PL0Compiler/HEAD/src/Interpreter.java -------------------------------------------------------------------------------- /src/LexAnalysis.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiyi001/PL0Compiler/HEAD/src/LexAnalysis.java -------------------------------------------------------------------------------- /src/MyCompiler.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiyi001/PL0Compiler/HEAD/src/MyCompiler.java -------------------------------------------------------------------------------- /src/Operator.java: -------------------------------------------------------------------------------- 1 | /** 2 | *created by shiyi in 2016/12/13 3 | *这是Pcode的伪操作符集合 4 | */ 5 | public enum Operator { 6 | INT, CAL, LIT, LOD, STO, JMP, JPC, OPR; 7 | } 8 | -------------------------------------------------------------------------------- /src/PerPcode.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiyi001/PL0Compiler/HEAD/src/PerPcode.java -------------------------------------------------------------------------------- /src/PerSymbol.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiyi001/PL0Compiler/HEAD/src/PerSymbol.java -------------------------------------------------------------------------------- /src/SymType.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiyi001/PL0Compiler/HEAD/src/SymType.java -------------------------------------------------------------------------------- /src/Token.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiyi001/PL0Compiler/HEAD/src/Token.java -------------------------------------------------------------------------------- /testPL0/demo1.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiyi001/PL0Compiler/HEAD/testPL0/demo1.txt -------------------------------------------------------------------------------- /testPL0/demo2.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiyi001/PL0Compiler/HEAD/testPL0/demo2.txt -------------------------------------------------------------------------------- /testPL0/demo3.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiyi001/PL0Compiler/HEAD/testPL0/demo3.txt -------------------------------------------------------------------------------- /testPL0/demo4.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiyi001/PL0Compiler/HEAD/testPL0/demo4.txt -------------------------------------------------------------------------------- /testPL0/demo5.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/shiyi001/PL0Compiler/HEAD/testPL0/demo5.txt --------------------------------------------------------------------------------