@lbdudc/gp-gis-dsl 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +2 -0
- package/.gitattributes +4 -0
- package/.prettierignore +2 -0
- package/LICENSE +22 -0
- package/README.md +37 -0
- package/grammar/GISGrammar.g4 +230 -0
- package/package.json +50 -0
- package/src/GISVisitor.js +318 -0
- package/src/GISVisitorHelper.js +162 -0
- package/src/cli.js +34 -0
- package/src/error/ErrorListener.js +26 -0
- package/src/error/SyntaxGenericError.js +18 -0
- package/src/index.js +26 -0
- package/src/lib/GISGrammar.interp +140 -0
- package/src/lib/GISGrammar.tokens +60 -0
- package/src/lib/GISGrammarLexer.interp +201 -0
- package/src/lib/GISGrammarLexer.js +354 -0
- package/src/lib/GISGrammarLexer.tokens +60 -0
- package/src/lib/GISGrammarListener.js +270 -0
- package/src/lib/GISGrammarParser.js +3173 -0
- package/src/lib/GISGrammarVisitor.js +184 -0
- package/src/spl/GIS.js +234 -0
- package/src/spl/GeoJSONLayer.js +21 -0
- package/src/spl/GeoJSONLayerStyle.js +14 -0
- package/src/spl/Map.js +44 -0
- package/src/spl/TileLayer.js +16 -0
- package/src/spl/WMSLayer.js +30 -0
- package/src/spl/WMSStyle.js +13 -0
- package/src/store.js +74 -0
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
// Generated from grammar/GISGrammar.g4 by ANTLR 4.13.0
|
|
2
|
+
// jshint ignore: start
|
|
3
|
+
import antlr4 from 'antlr4';
|
|
4
|
+
|
|
5
|
+
// This class defines a complete listener for a parse tree produced by GISGrammarParser.
|
|
6
|
+
export default class GISGrammarListener extends antlr4.tree.ParseTreeListener {
|
|
7
|
+
|
|
8
|
+
// Enter a parse tree produced by GISGrammarParser#parse.
|
|
9
|
+
enterParse(ctx) {
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// Exit a parse tree produced by GISGrammarParser#parse.
|
|
13
|
+
exitParse(ctx) {
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
// Enter a parse tree produced by GISGrammarParser#sentence.
|
|
18
|
+
enterSentence(ctx) {
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// Exit a parse tree produced by GISGrammarParser#sentence.
|
|
22
|
+
exitSentence(ctx) {
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
// Enter a parse tree produced by GISGrammarParser#createStatement.
|
|
27
|
+
enterCreateStatement(ctx) {
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// Exit a parse tree produced by GISGrammarParser#createStatement.
|
|
31
|
+
exitCreateStatement(ctx) {
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
// Enter a parse tree produced by GISGrammarParser#createGIS.
|
|
36
|
+
enterCreateGIS(ctx) {
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Exit a parse tree produced by GISGrammarParser#createGIS.
|
|
40
|
+
exitCreateGIS(ctx) {
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
// Enter a parse tree produced by GISGrammarParser#createEntity.
|
|
45
|
+
enterCreateEntity(ctx) {
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// Exit a parse tree produced by GISGrammarParser#createEntity.
|
|
49
|
+
exitCreateEntity(ctx) {
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
// Enter a parse tree produced by GISGrammarParser#createLayer.
|
|
54
|
+
enterCreateLayer(ctx) {
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// Exit a parse tree produced by GISGrammarParser#createLayer.
|
|
58
|
+
exitCreateLayer(ctx) {
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
// Enter a parse tree produced by GISGrammarParser#createTileLayer.
|
|
63
|
+
enterCreateTileLayer(ctx) {
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// Exit a parse tree produced by GISGrammarParser#createTileLayer.
|
|
67
|
+
exitCreateTileLayer(ctx) {
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
// Enter a parse tree produced by GISGrammarParser#createGeoJSONLayer.
|
|
72
|
+
enterCreateGeoJSONLayer(ctx) {
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// Exit a parse tree produced by GISGrammarParser#createGeoJSONLayer.
|
|
76
|
+
exitCreateGeoJSONLayer(ctx) {
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
// Enter a parse tree produced by GISGrammarParser#createWmsStyle.
|
|
81
|
+
enterCreateWmsStyle(ctx) {
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// Exit a parse tree produced by GISGrammarParser#createWmsStyle.
|
|
85
|
+
exitCreateWmsStyle(ctx) {
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
// Enter a parse tree produced by GISGrammarParser#createWmsLayer.
|
|
90
|
+
enterCreateWmsLayer(ctx) {
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// Exit a parse tree produced by GISGrammarParser#createWmsLayer.
|
|
94
|
+
exitCreateWmsLayer(ctx) {
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
// Enter a parse tree produced by GISGrammarParser#wmsSubLayer.
|
|
99
|
+
enterWmsSubLayer(ctx) {
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
// Exit a parse tree produced by GISGrammarParser#wmsSubLayer.
|
|
103
|
+
exitWmsSubLayer(ctx) {
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
// Enter a parse tree produced by GISGrammarParser#createSortableMap.
|
|
108
|
+
enterCreateSortableMap(ctx) {
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// Exit a parse tree produced by GISGrammarParser#createSortableMap.
|
|
112
|
+
exitCreateSortableMap(ctx) {
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
// Enter a parse tree produced by GISGrammarParser#createMap.
|
|
117
|
+
enterCreateMap(ctx) {
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// Exit a parse tree produced by GISGrammarParser#createMap.
|
|
121
|
+
exitCreateMap(ctx) {
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
// Enter a parse tree produced by GISGrammarParser#mapLayer.
|
|
126
|
+
enterMapLayer(ctx) {
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// Exit a parse tree produced by GISGrammarParser#mapLayer.
|
|
130
|
+
exitMapLayer(ctx) {
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
// Enter a parse tree produced by GISGrammarParser#useGIS.
|
|
135
|
+
enterUseGIS(ctx) {
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
// Exit a parse tree produced by GISGrammarParser#useGIS.
|
|
139
|
+
exitUseGIS(ctx) {
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
// Enter a parse tree produced by GISGrammarParser#generateGIS.
|
|
144
|
+
enterGenerateGIS(ctx) {
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
// Exit a parse tree produced by GISGrammarParser#generateGIS.
|
|
148
|
+
exitGenerateGIS(ctx) {
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
// Enter a parse tree produced by GISGrammarParser#setDeployment.
|
|
153
|
+
enterSetDeployment(ctx) {
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
// Exit a parse tree produced by GISGrammarParser#setDeployment.
|
|
157
|
+
exitSetDeployment(ctx) {
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
// Enter a parse tree produced by GISGrammarParser#deploymentProperty.
|
|
162
|
+
enterDeploymentProperty(ctx) {
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
// Exit a parse tree produced by GISGrammarParser#deploymentProperty.
|
|
166
|
+
exitDeploymentProperty(ctx) {
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
// Enter a parse tree produced by GISGrammarParser#property.
|
|
171
|
+
enterProperty(ctx) {
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
// Exit a parse tree produced by GISGrammarParser#property.
|
|
175
|
+
exitProperty(ctx) {
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
// Enter a parse tree produced by GISGrammarParser#propertyDefinition.
|
|
180
|
+
enterPropertyDefinition(ctx) {
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
// Exit a parse tree produced by GISGrammarParser#propertyDefinition.
|
|
184
|
+
exitPropertyDefinition(ctx) {
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
// Enter a parse tree produced by GISGrammarParser#relationshipDefinition.
|
|
189
|
+
enterRelationshipDefinition(ctx) {
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
// Exit a parse tree produced by GISGrammarParser#relationshipDefinition.
|
|
193
|
+
exitRelationshipDefinition(ctx) {
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
// Enter a parse tree produced by GISGrammarParser#mappedRelationshipDefinition.
|
|
198
|
+
enterMappedRelationshipDefinition(ctx) {
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
// Exit a parse tree produced by GISGrammarParser#mappedRelationshipDefinition.
|
|
202
|
+
exitMappedRelationshipDefinition(ctx) {
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
// Enter a parse tree produced by GISGrammarParser#ownedRelationshipDefinition.
|
|
207
|
+
enterOwnedRelationshipDefinition(ctx) {
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
// Exit a parse tree produced by GISGrammarParser#ownedRelationshipDefinition.
|
|
211
|
+
exitOwnedRelationshipDefinition(ctx) {
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
// Enter a parse tree produced by GISGrammarParser#cardinality.
|
|
216
|
+
enterCardinality(ctx) {
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
// Exit a parse tree produced by GISGrammarParser#cardinality.
|
|
220
|
+
exitCardinality(ctx) {
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
// Enter a parse tree produced by GISGrammarParser#srid.
|
|
225
|
+
enterSrid(ctx) {
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
// Exit a parse tree produced by GISGrammarParser#srid.
|
|
229
|
+
exitSrid(ctx) {
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
// Enter a parse tree produced by GISGrammarParser#identifier.
|
|
234
|
+
enterIdentifier(ctx) {
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
// Exit a parse tree produced by GISGrammarParser#identifier.
|
|
238
|
+
exitIdentifier(ctx) {
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
// Enter a parse tree produced by GISGrammarParser#text.
|
|
243
|
+
enterText(ctx) {
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
// Exit a parse tree produced by GISGrammarParser#text.
|
|
247
|
+
exitText(ctx) {
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
// Enter a parse tree produced by GISGrammarParser#hexColor.
|
|
252
|
+
enterHexColor(ctx) {
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
// Exit a parse tree produced by GISGrammarParser#hexColor.
|
|
256
|
+
exitHexColor(ctx) {
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
// Enter a parse tree produced by GISGrammarParser#floatNumber.
|
|
261
|
+
enterFloatNumber(ctx) {
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
// Exit a parse tree produced by GISGrammarParser#floatNumber.
|
|
265
|
+
exitFloatNumber(ctx) {
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
}
|