Moving .y and .l to .ypp and .lpp
This commit is contained in:
parent
3facc1c9d4
commit
97ec6b26f2
10
Makefile
10
Makefile
|
@ -1,11 +1,11 @@
|
||||||
compile:
|
compile:
|
||||||
bison --verbose -d Monicelli.y
|
bison --verbose -d Monicelli.ypp
|
||||||
flex -P mc Monicelli.ll
|
flex -P mc Monicelli.lpp
|
||||||
g++ -Wall -Wno-deprecated-register -std=c++11 -DYYDEBUG=0 Monicelli.tab.c lex.mc.c Nodes.cpp main.cpp -o mcc
|
g++ -Wall -Wno-deprecated-register -std=c++11 -DYYDEBUG=0 Monicelli.tab.cpp lex.mc.c Nodes.cpp main.cpp -o mcc
|
||||||
rm Monicelli.tab.* lex.mc.c
|
rm Monicelli.tab.* lex.*
|
||||||
|
|
||||||
graph:
|
graph:
|
||||||
bison --graph Monicelli.y
|
bison --graph Monicelli.y
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f Monicelli.dot Monicelli.tab.* lex.mc.c Monicelli.output
|
rm -f Monicelli.dot Monicelli.tab.* lex.* Monicelli.output location.hh position.hh stack.hh
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
%{
|
%{
|
||||||
#include "Monicelli.tab.h"
|
#include "Monicelli.tab.hpp"
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
Reference in New Issue
Block a user