Skip to content
Snippets Groups Projects
Verified Commit 1947e6de authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Use different filenames for Bison-generated location files

parent 0dd5e586
No related branches found
No related tags found
No related merge requests found
...@@ -27,13 +27,13 @@ TAGS ...@@ -27,13 +27,13 @@ TAGS
/src/dynare-preprocessor.exe /src/dynare-preprocessor.exe
/src/DynareBison.cc /src/DynareBison.cc
/src/DynareBison.hh /src/DynareBison.hh
/src/DynareBisonLocation.hh
/src/FlexLexer.h /src/FlexLexer.h
/src/DynareFlex.cc /src/DynareFlex.cc
/src/location.hh
/src/macro/Parser.cc /src/macro/Parser.cc
/src/macro/Parser.hh /src/macro/Parser.hh
/src/macro/ParserLocation.hh
/src/macro/Tokenizer.cc /src/macro/Tokenizer.cc
/src/macro/location.hh
/src/doc/ /src/doc/
# Symlinks created by Dynare/MATLAB’s main Makefile.am # Symlinks created by Dynare/MATLAB’s main Makefile.am
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
%defines %defines
%define api.value.type variant %define api.value.type variant
%define api.namespace {Dynare} %define api.namespace {Dynare}
%define api.location.file "DynareBisonLocation.hh"
%define parse.assert %define parse.assert
%define parse.error verbose %define parse.error verbose
%define parse.trace %define parse.trace
......
SUBDIRS = macro SUBDIRS = macro
BUILT_SOURCES = DynareBison.hh location.hh DynareBison.cc DynareFlex.cc FlexLexer.h BUILT_SOURCES = DynareBison.hh DynareBisonLocation.hh DynareBison.cc DynareFlex.cc FlexLexer.h
bin_PROGRAMS = dynare-preprocessor bin_PROGRAMS = dynare-preprocessor
...@@ -87,7 +87,7 @@ dynare_preprocessor-DynareFlex.$(OBJEXT): CXXFLAGS += -Wno-old-style-cast ...@@ -87,7 +87,7 @@ dynare_preprocessor-DynareFlex.$(OBJEXT): CXXFLAGS += -Wno-old-style-cast
DynareBison.cc: DynareBison.yy DynareBison.cc: DynareBison.yy
$(YACC) -W -o $@ $< $(YACC) -W -o $@ $<
DynareBison.hh location.hh: DynareBison.cc DynareBison.hh DynareBisonLocation.hh: DynareBison.cc
all-local: $(PROGRAMS) all-local: $(PROGRAMS)
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include <sstream> #include <sstream>
#include <string> #include <string>
#include "location.hh" #include "DynareBisonLocation.hh"
using namespace std; using namespace std;
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include "ForwardDeclarationsAndEnums.hh" #include "ForwardDeclarationsAndEnums.hh"
#include "Environment.hh" #include "Environment.hh"
#include "location.hh" #include "ParserLocation.hh"
#include <cmath> #include <cmath>
#include <vector> #include <vector>
......
noinst_LIBRARIES = libmacro.a noinst_LIBRARIES = libmacro.a
BUILT_SOURCES = Parser.hh location.hh Parser.cc Tokenizer.cc BUILT_SOURCES = Parser.hh ParserLocation.hh Parser.cc Tokenizer.cc
# We don't put BUILT_SOURCES in libmacro_a_SOURCES, otherwise Parser.o and Tokenizer.o will be linked two times (Automake translates Tokenizer.ll and Parser.yy into their respective .o); so BUILT_SOURCES is in EXTRA_DIST # We don't put BUILT_SOURCES in libmacro_a_SOURCES, otherwise Parser.o and Tokenizer.o will be linked two times (Automake translates Tokenizer.ll and Parser.yy into their respective .o); so BUILT_SOURCES is in EXTRA_DIST
libmacro_a_SOURCES = \ libmacro_a_SOURCES = \
...@@ -31,4 +31,4 @@ libmacro_a-Tokenizer.$(OBJEXT): CXXFLAGS += -Wno-old-style-cast ...@@ -31,4 +31,4 @@ libmacro_a-Tokenizer.$(OBJEXT): CXXFLAGS += -Wno-old-style-cast
Parser.cc: Parser.yy Parser.cc: Parser.yy
$(YACC) -W -o $@ $< $(YACC) -W -o $@ $<
Parser.hh location.hh: Parser.cc Parser.hh ParserLocation.hh: Parser.cc
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
%defines %defines
%define api.value.type variant %define api.value.type variant
%define api.namespace {Tokenizer} %define api.namespace {Tokenizer}
%define api.location.file "ParserLocation.hh"
%define parse.assert %define parse.assert
%define parse.error verbose %define parse.error verbose
%define parse.trace %define parse.trace
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment