2019-04-17 16:46:07 -07:00
|
|
|
all: scan
|
|
|
|
|
2019-05-11 22:34:26 -07:00
|
|
|
scan: main.cpp scanner.cpp parser.cpp
|
2019-05-12 23:02:48 -07:00
|
|
|
g++ -std=c++11 main.cpp scanner.cpp parser.cpp -o scan
|
2019-04-17 16:46:07 -07:00
|
|
|
|
|
|
|
scanner.cpp: scanner.l
|
|
|
|
flex -o scanner.cpp scanner.l
|
|
|
|
|
2019-05-11 22:34:26 -07:00
|
|
|
parser.cpp parser.hpp: parser.y
|
|
|
|
bison -d -o parser.cpp parser.y
|
2019-05-11 21:19:15 -07:00
|
|
|
|
2019-04-17 16:46:07 -07:00
|
|
|
clean:
|
|
|
|
rm -f scan scanner.cpp
|