Add copy of part 2 project for part 3

This commit is contained in:
2019-08-25 01:10:55 -07:00
parent b36d1949de
commit 5acd08dcce
6 changed files with 319 additions and 0 deletions

6
code/compiler/03/compile.sh Executable file
View File

@@ -0,0 +1,6 @@
bison -o parser.cpp -d parser.y
flex -o scanner.cpp scanner.l
g++ -c -o scanner.o scanner.cpp
g++ -c -o parser.o parser.cpp
g++ -c -o type.o type.cpp
g++ main.cpp parser.o scanner.o type.o