changed .c files to .cpp files
This commit is contained in:
parent
3c520b7aa4
commit
4415273e2e
|
@ -4,7 +4,7 @@
|
||||||
PARSER = bison
|
PARSER = bison
|
||||||
|
|
||||||
|
|
||||||
LIB_FILES = $(PARSER)/$(PARSER)_parser.c $(PARSER)/flex_lexer.c $(PARSER)/SQLParser.cpp lib/Statement.cpp lib/Expr.cpp
|
LIB_FILES = $(PARSER)/$(PARSER)_parser.cpp $(PARSER)/flex_lexer.cpp $(PARSER)/SQLParser.cpp lib/Statement.cpp lib/Expr.cpp
|
||||||
|
|
||||||
TESTS_MAIN = sql_tests.cpp
|
TESTS_MAIN = sql_tests.cpp
|
||||||
TESTS_BIN = bin/tests
|
TESTS_BIN = bin/tests
|
||||||
|
@ -24,10 +24,10 @@ execution: $(LIB_FILES) $(EXECUTION_MAIN)
|
||||||
$(CC) $(CFLAGS) $(LIB_FILES) $(EXECUTION_MAIN) -o $(EXECUTION_BIN)
|
$(CC) $(CFLAGS) $(LIB_FILES) $(EXECUTION_MAIN) -o $(EXECUTION_BIN)
|
||||||
|
|
||||||
|
|
||||||
bison/bison_parser.c:
|
bison/bison_parser.cpp:
|
||||||
make -C bison/
|
make -C bison/
|
||||||
|
|
||||||
lemon/lemon_parser.c:
|
lemon/lemon_parser.cpp:
|
||||||
make -C lemon/
|
make -C lemon/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
|
|
||||||
all: bison_parser.c flex_lexer.c
|
all: bison_parser.cpp flex_lexer.cpp
|
||||||
|
|
||||||
bison_parser.c: bison_parser.y
|
bison_parser.cpp: bison_parser.y
|
||||||
bison bison_parser.y
|
bison bison_parser.y
|
||||||
|
|
||||||
flex_lexer.c: flex_lexer.l
|
flex_lexer.cpp: flex_lexer.l
|
||||||
flex flex_lexer.l
|
flex flex_lexer.l
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f bison_parser.c flex_lexer.c bison_parser.h flex_lexer.h
|
rm -f bison_parser.cpp flex_lexer.cpp bison_parser.h flex_lexer.h
|
File diff suppressed because it is too large
Load Diff
|
@ -30,7 +30,7 @@ int yyerror(Statement **expression, yyscan_t scanner, const char *msg) {
|
||||||
|
|
||||||
|
|
||||||
// Define the names of the created files
|
// Define the names of the created files
|
||||||
%output "bison_parser.c"
|
%output "bison_parser.cpp"
|
||||||
%defines "bison_parser.h"
|
%defines "bison_parser.h"
|
||||||
|
|
||||||
// Tell bison to create a reentrant parser
|
// Tell bison to create a reentrant parser
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
/* Define the output files */
|
/* Define the output files */
|
||||||
%option header-file="flex_lexer.h"
|
%option header-file="flex_lexer.h"
|
||||||
%option outfile="flex_lexer.c"
|
%option outfile="flex_lexer.cpp"
|
||||||
|
|
||||||
/* Make reentrant */
|
/* Make reentrant */
|
||||||
%option reentrant bison-bridge
|
%option reentrant bison-bridge
|
||||||
|
|
Loading…
Reference in New Issue