Skip to content

Commit 2e70dc1

Browse files
committed
Rename Grammar Files
1 parent 959c623 commit 2e70dc1

13 files changed

+50650
-192
lines changed

Makefile

+10-11
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,9 @@ OBJS = src/backend/postgraph.o \
4747
src/backend/parser/cypher_clause.o \
4848
src/backend/executor/cypher_delete.o \
4949
src/backend/parser/cypher_expr.o \
50-
src/backend/parser/gram.o \
51-
src/backend/parser/parser.o \
50+
src/backend/parser/postgraph_gram.o \
51+
src/backend/parser/postgraph_parser.o \
5252
src/backend/parser/cypher_item.o \
53-
src/backend/parser/cypher_keywords.o \
5453
src/backend/parser/cypher_parse_agg.o \
5554
src/backend/parser/cypher_parse_node.o \
5655
src/backend/parser/cypher_transform_entity.o \
@@ -105,7 +104,7 @@ ag_regress_dir = $(srcdir)/regress
105104
REGRESS_OPTS = --load-extension=postgis --load-extension=ltree --load-extension=postgraph --inputdir=$(ag_regress_dir) --outputdir=$(ag_regress_dir) --temp-instance=$(ag_regress_dir)/instance --port=61958 --encoding=UTF-8
106105

107106
ag_regress_out = instance/ log/ results/ regression.*
108-
EXTRA_CLEAN = $(addprefix $(ag_regress_dir)/, $(ag_regress_out)) src/backend/parser/cypher_gram.c src/backend/parser/ag_scanner.c src/include/parser/cypher_gram_def.h src/include/parser/cypher_kwlist_d.h
107+
EXTRA_CLEAN = $(addprefix $(ag_regress_dir)/, $(ag_regress_out)) src/backend/parser/postgraph_gram.c src/backend/parser/postgraph_scan.c src/include/parser/kwlist_d.h src/include/parser/gram_def.h
109108

110109
GEN_KEYWORDLIST = $(PERL) -I ./tools/ ./tools/gen_keywordlist.pl
111110
GEN_KEYWORDLIST_DEPS = ./tools/gen_keywordlist.pl tools/PerfectHash.pm
@@ -119,19 +118,19 @@ PG_CONFIG ?= pg_config
119118
PGXS := $(shell $(PG_CONFIG) --pgxs)
120119
include $(PGXS)
121120

122-
src/backend/parser/keywords.o: src/include/parser/kwlist_d.h
121+
src/backend/parser/postgraph_keywords.o: src/include/parser/kwlist_d.h
123122

124-
src/include/parser/kwlist_d.h: src/include/parser/kwlist.h $(GEN_KEYWORDLIST_DEPS)
123+
src/include/parser/kwlist_d.h: src/include/parser/postgraph_kwlist.h $(GEN_KEYWORDLIST_DEPS)
125124
$(GEN_KEYWORDLIST) --extern --varname PG_KEYWORD --output src/include/parser $<
126125

127126

128-
src/include/parser/gram_def.h: src/backend/parser/gram.c
127+
src/include/parser/gram_def.h: src/backend/parser/postgraph_gram.c
129128

130-
src/backend/parser/gram.c: BISONFLAGS += --defines=src/include/parser/gram_def.h
129+
src/backend/parser/postgraph_gram.c: BISONFLAGS += --defines=src/include/parser/gram_def.h
131130

132-
src/backend/parser/parser.o: src/backend/parser/gram.c
133-
src/backend/parser/keywords.o: src/backend/parser/gram.c
131+
src/backend/parser/postgraph_parser.o: src/backend/parser/postgraph_gram.c
132+
src/backend/parser/postgraph_keywords.o: src/backend/parser/postgraph_gram.c
134133

135-
src/backend/parser/scan.c: FLEX_NO_BACKUP=yes
134+
src/backend/parser/postgraph_scan.c: FLEX_NO_BACKUP=yes
136135

137136
installcheck: export LC_COLLATE=C

0 commit comments

Comments
 (0)