Moving .y and .l to .ypp and .lpp

This commit is contained in:
Stefano Sanfilippo 2014-11-28 17:19:09 +01:00
parent 3facc1c9d4
commit 97ec6b26f2
4 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -1,5 +1,5 @@
%{ %{
#include "Monicelli.tab.h" #include "Monicelli.tab.hpp"
#include <string> #include <string>
#include <cstdlib> #include <cstdlib>

View File

@ -1,4 +1,4 @@
#include "Monicelli.tab.h" #include "Monicelli.tab.hpp"
#include <iostream> #include <iostream>
#include <fstream> #include <fstream>