├── .gitignore ├── README.md ├── Spec ├── .DS_Store ├── arm.md ├── ir.md └── teapl.md ├── doc ├── Compiler_Assignment2.md ├── Compiler_Assignment2.pptx └── Lex&Yacc_More.md └── src ├── .gitignore ├── Makefile ├── PrintTeaplaAst.cpp ├── PrintTeaplaAst.h ├── TeaplAst.cpp ├── TeaplAst.h ├── TeaplaAst.cpp ├── TeaplaAst.h ├── compiler.cpp ├── lexer.lex ├── parser.yacc └── tests ├── test01.refast ├── test01.tea ├── test02.refast ├── test02.tea ├── test03.refast └── test03.tea /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hxuhack/compiler_project/HEAD/README.md -------------------------------------------------------------------------------- /Spec/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hxuhack/compiler_project/HEAD/Spec/.DS_Store -------------------------------------------------------------------------------- /Spec/arm.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hxuhack/compiler_project/HEAD/Spec/arm.md -------------------------------------------------------------------------------- /Spec/ir.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hxuhack/compiler_project/HEAD/Spec/ir.md -------------------------------------------------------------------------------- /Spec/teapl.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hxuhack/compiler_project/HEAD/Spec/teapl.md -------------------------------------------------------------------------------- /doc/Compiler_Assignment2.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hxuhack/compiler_project/HEAD/doc/Compiler_Assignment2.md -------------------------------------------------------------------------------- /doc/Compiler_Assignment2.pptx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hxuhack/compiler_project/HEAD/doc/Compiler_Assignment2.pptx -------------------------------------------------------------------------------- /doc/Lex&Yacc_More.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hxuhack/compiler_project/HEAD/doc/Lex&Yacc_More.md -------------------------------------------------------------------------------- /src/.gitignore: -------------------------------------------------------------------------------- 1 | *.o 2 | *.output 3 | tests/*.ast -------------------------------------------------------------------------------- /src/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hxuhack/compiler_project/HEAD/src/Makefile -------------------------------------------------------------------------------- /src/PrintTeaplaAst.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hxuhack/compiler_project/HEAD/src/PrintTeaplaAst.cpp -------------------------------------------------------------------------------- /src/PrintTeaplaAst.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hxuhack/compiler_project/HEAD/src/PrintTeaplaAst.h -------------------------------------------------------------------------------- /src/TeaplAst.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hxuhack/compiler_project/HEAD/src/TeaplAst.cpp -------------------------------------------------------------------------------- /src/TeaplAst.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hxuhack/compiler_project/HEAD/src/TeaplAst.h -------------------------------------------------------------------------------- /src/TeaplaAst.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hxuhack/compiler_project/HEAD/src/TeaplaAst.cpp -------------------------------------------------------------------------------- /src/TeaplaAst.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hxuhack/compiler_project/HEAD/src/TeaplaAst.h -------------------------------------------------------------------------------- /src/compiler.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hxuhack/compiler_project/HEAD/src/compiler.cpp -------------------------------------------------------------------------------- /src/lexer.lex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hxuhack/compiler_project/HEAD/src/lexer.lex -------------------------------------------------------------------------------- /src/parser.yacc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hxuhack/compiler_project/HEAD/src/parser.yacc -------------------------------------------------------------------------------- /src/tests/test01.refast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hxuhack/compiler_project/HEAD/src/tests/test01.refast -------------------------------------------------------------------------------- /src/tests/test01.tea: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hxuhack/compiler_project/HEAD/src/tests/test01.tea -------------------------------------------------------------------------------- /src/tests/test02.refast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hxuhack/compiler_project/HEAD/src/tests/test02.refast -------------------------------------------------------------------------------- /src/tests/test02.tea: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hxuhack/compiler_project/HEAD/src/tests/test02.tea -------------------------------------------------------------------------------- /src/tests/test03.refast: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hxuhack/compiler_project/HEAD/src/tests/test03.refast -------------------------------------------------------------------------------- /src/tests/test03.tea: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hxuhack/compiler_project/HEAD/src/tests/test03.tea --------------------------------------------------------------------------------