blog-static/code/compiler/02/compile.sh

6 lines
156 B
Bash
Raw Permalink Normal View History

2019-08-06 13:53:46 -07:00
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++ main.cpp parser.o scanner.o