ebnf 1.2.0 → 2.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +223 -199
- data/UNLICENSE +1 -1
- data/VERSION +1 -1
- data/bin/ebnf +38 -19
- data/etc/abnf-core.ebnf +52 -0
- data/etc/abnf.abnf +121 -0
- data/etc/abnf.ebnf +124 -0
- data/etc/abnf.sxp +45 -0
- data/etc/doap.ttl +23 -18
- data/etc/ebnf.ebnf +21 -33
- data/etc/ebnf.html +76 -160
- data/etc/{ebnf.rb → ebnf.ll1.rb} +30 -107
- data/etc/ebnf.ll1.sxp +182 -183
- data/etc/ebnf.peg.rb +90 -0
- data/etc/ebnf.peg.sxp +84 -0
- data/etc/ebnf.sxp +40 -41
- data/etc/iso-ebnf.ebnf +140 -0
- data/etc/iso-ebnf.isoebnf +138 -0
- data/etc/iso-ebnf.sxp +65 -0
- data/etc/sparql.ebnf +4 -4
- data/etc/sparql.html +1603 -1751
- data/etc/sparql.ll1.sxp +7372 -7372
- data/etc/sparql.peg.rb +532 -0
- data/etc/sparql.peg.sxp +597 -0
- data/etc/sparql.sxp +363 -362
- data/etc/turtle.ebnf +3 -3
- data/etc/turtle.html +465 -517
- data/etc/{turtle.rb → turtle.ll1.rb} +3 -4
- data/etc/turtle.ll1.sxp +425 -425
- data/etc/turtle.peg.rb +182 -0
- data/etc/turtle.peg.sxp +199 -0
- data/etc/turtle.sxp +103 -101
- data/lib/ebnf.rb +6 -1
- data/lib/ebnf/abnf.rb +301 -0
- data/lib/ebnf/abnf/core.rb +23 -0
- data/lib/ebnf/abnf/meta.rb +111 -0
- data/lib/ebnf/base.rb +114 -69
- data/lib/ebnf/bnf.rb +1 -26
- data/lib/ebnf/ebnf/meta.rb +90 -0
- data/lib/ebnf/isoebnf.rb +229 -0
- data/lib/ebnf/isoebnf/meta.rb +75 -0
- data/lib/ebnf/ll1.rb +131 -3
- data/lib/ebnf/ll1/lexer.rb +20 -22
- data/lib/ebnf/ll1/parser.rb +97 -64
- data/lib/ebnf/ll1/scanner.rb +82 -50
- data/lib/ebnf/native.rb +320 -0
- data/lib/ebnf/parser.rb +285 -302
- data/lib/ebnf/peg.rb +39 -0
- data/lib/ebnf/peg/parser.rb +561 -0
- data/lib/ebnf/peg/rule.rb +250 -0
- data/lib/ebnf/rule.rb +442 -148
- data/lib/ebnf/terminals.rb +21 -0
- data/lib/ebnf/writer.rb +587 -82
- metadata +125 -18
- data/etc/sparql.rb +0 -45773
@@ -1,8 +1,7 @@
|
|
1
|
-
# This file is automatically generated by
|
2
|
-
#
|
3
|
-
module
|
1
|
+
# This file is automatically generated by ebnf version 2.0.0
|
2
|
+
# Derived from etc/turtle.ebnf
|
3
|
+
module Meta
|
4
4
|
START = :turtleDoc
|
5
|
-
|
6
5
|
BRANCH = {
|
7
6
|
:BlankNode => {
|
8
7
|
:ANON => [:ANON],
|
data/etc/turtle.ll1.sxp
CHANGED
@@ -1,425 +1,425 @@
|
|
1
|
-
(
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
1
|
+
(
|
2
|
+
(rule _empty "0" (first _eps) (seq))
|
3
|
+
(rule turtleDoc "1"
|
4
|
+
(start #t)
|
5
|
+
(first "(" "@base" "@prefix" ANON BLANK_NODE_LABEL IRIREF PNAME_LN PNAME_NS
|
6
|
+
SPARQL_BASE SPARQL_PREFIX "[" _eps )
|
7
|
+
(follow _eof)
|
8
|
+
(cleanup star)
|
9
|
+
(alt _empty _turtleDoc_1))
|
10
|
+
(rule _turtleDoc_1 "1.1"
|
11
|
+
(first "(" "@base" "@prefix" ANON BLANK_NODE_LABEL IRIREF PNAME_LN PNAME_NS
|
12
|
+
SPARQL_BASE SPARQL_PREFIX "[" )
|
13
|
+
(follow _eof)
|
14
|
+
(cleanup merge)
|
15
|
+
(seq statement turtleDoc))
|
16
|
+
(rule _turtleDoc_2 "1.2"
|
17
|
+
(first "(" "@base" "@prefix" ANON BLANK_NODE_LABEL IRIREF PNAME_LN PNAME_NS
|
18
|
+
SPARQL_BASE SPARQL_PREFIX "[" _eps )
|
19
|
+
(follow _eof)
|
20
|
+
(seq turtleDoc))
|
21
|
+
(rule statement "2"
|
22
|
+
(first "(" "@base" "@prefix" ANON BLANK_NODE_LABEL IRIREF PNAME_LN PNAME_NS
|
23
|
+
SPARQL_BASE SPARQL_PREFIX "[" )
|
24
|
+
(follow "(" "@base" "@prefix" ANON BLANK_NODE_LABEL IRIREF PNAME_LN PNAME_NS
|
25
|
+
SPARQL_BASE SPARQL_PREFIX "[" _eof )
|
26
|
+
(alt directive _statement_1))
|
27
|
+
(rule _statement_1 "2.1"
|
28
|
+
(first "(" ANON BLANK_NODE_LABEL IRIREF PNAME_LN PNAME_NS "[")
|
29
|
+
(follow "(" "@base" "@prefix" ANON BLANK_NODE_LABEL IRIREF PNAME_LN PNAME_NS
|
30
|
+
SPARQL_BASE SPARQL_PREFIX "[" _eof )
|
31
|
+
(seq triples "."))
|
32
|
+
(rule _statement_2 "2.2"
|
33
|
+
(first ".")
|
34
|
+
(follow "(" "@base" "@prefix" ANON BLANK_NODE_LABEL IRIREF PNAME_LN PNAME_NS
|
35
|
+
SPARQL_BASE SPARQL_PREFIX "[" _eof )
|
36
|
+
(seq "."))
|
37
|
+
(rule directive "3"
|
38
|
+
(first "@base" "@prefix" SPARQL_BASE SPARQL_PREFIX)
|
39
|
+
(follow "(" "@base" "@prefix" ANON BLANK_NODE_LABEL IRIREF PNAME_LN PNAME_NS
|
40
|
+
SPARQL_BASE SPARQL_PREFIX "[" _eof )
|
41
|
+
(alt prefixID base sparqlPrefix sparqlBase))
|
42
|
+
(rule prefixID "4"
|
43
|
+
(first "@prefix")
|
44
|
+
(follow "(" "@base" "@prefix" ANON BLANK_NODE_LABEL IRIREF PNAME_LN PNAME_NS
|
45
|
+
SPARQL_BASE SPARQL_PREFIX "[" _eof )
|
46
|
+
(seq "@prefix" PNAME_NS IRIREF "."))
|
47
|
+
(rule _prefixID_1 "4.1"
|
48
|
+
(first PNAME_NS)
|
49
|
+
(follow "(" "@base" "@prefix" ANON BLANK_NODE_LABEL IRIREF PNAME_LN PNAME_NS
|
50
|
+
SPARQL_BASE SPARQL_PREFIX "[" _eof )
|
51
|
+
(seq PNAME_NS IRIREF "."))
|
52
|
+
(rule base "5"
|
53
|
+
(first "@base")
|
54
|
+
(follow "(" "@base" "@prefix" ANON BLANK_NODE_LABEL IRIREF PNAME_LN PNAME_NS
|
55
|
+
SPARQL_BASE SPARQL_PREFIX "[" _eof )
|
56
|
+
(seq "@base" IRIREF "."))
|
57
|
+
(rule _base_1 "5.1"
|
58
|
+
(first IRIREF)
|
59
|
+
(follow "(" "@base" "@prefix" ANON BLANK_NODE_LABEL IRIREF PNAME_LN PNAME_NS
|
60
|
+
SPARQL_BASE SPARQL_PREFIX "[" _eof )
|
61
|
+
(seq IRIREF "."))
|
62
|
+
(rule triples "6"
|
63
|
+
(first "(" ANON BLANK_NODE_LABEL IRIREF PNAME_LN PNAME_NS "[")
|
64
|
+
(follow ".")
|
65
|
+
(alt _triples_1 _triples_2))
|
66
|
+
(rule _triples_1 "6.1"
|
67
|
+
(first "(" ANON BLANK_NODE_LABEL IRIREF PNAME_LN PNAME_NS)
|
68
|
+
(follow ".")
|
69
|
+
(seq subject predicateObjectList))
|
70
|
+
(rule _triples_2 "6.2" (first "[") (follow ".") (seq blankNodePropertyList _triples_3))
|
71
|
+
(rule _triples_3 "6.3"
|
72
|
+
(first IRIREF PNAME_LN PNAME_NS _eps "a")
|
73
|
+
(follow ".")
|
74
|
+
(cleanup opt)
|
75
|
+
(alt _empty predicateObjectList))
|
76
|
+
(rule _triples_4 "6.4"
|
77
|
+
(first IRIREF PNAME_LN PNAME_NS "a")
|
78
|
+
(follow ".")
|
79
|
+
(seq predicateObjectList))
|
80
|
+
(rule _triples_5 "6.5"
|
81
|
+
(first IRIREF PNAME_LN PNAME_NS _eps "a")
|
82
|
+
(follow ".")
|
83
|
+
(seq _triples_3))
|
84
|
+
(rule predicateObjectList "7"
|
85
|
+
(first IRIREF PNAME_LN PNAME_NS "a")
|
86
|
+
(follow "." "]")
|
87
|
+
(seq verb objectList _predicateObjectList_1))
|
88
|
+
(rule _predicateObjectList_1 "7.1"
|
89
|
+
(first ";" _eps)
|
90
|
+
(follow "." "]")
|
91
|
+
(cleanup star)
|
92
|
+
(alt _empty _predicateObjectList_3))
|
93
|
+
(rule _predicateObjectList_2 "7.2"
|
94
|
+
(first ";")
|
95
|
+
(follow "." ";" "]")
|
96
|
+
(seq ";" _predicateObjectList_4))
|
97
|
+
(rule _predicateObjectList_3 "7.3"
|
98
|
+
(first ";")
|
99
|
+
(follow "." "]")
|
100
|
+
(cleanup merge)
|
101
|
+
(seq _predicateObjectList_2 _predicateObjectList_1))
|
102
|
+
(rule _predicateObjectList_4 "7.4"
|
103
|
+
(first IRIREF PNAME_LN PNAME_NS _eps "a")
|
104
|
+
(follow "." ";" "]")
|
105
|
+
(cleanup opt)
|
106
|
+
(alt _empty _predicateObjectList_5))
|
107
|
+
(rule _predicateObjectList_5 "7.5"
|
108
|
+
(first IRIREF PNAME_LN PNAME_NS "a")
|
109
|
+
(follow "." ";" "]")
|
110
|
+
(seq verb objectList))
|
111
|
+
(rule _predicateObjectList_6 "7.6"
|
112
|
+
(first "(" ANON BLANK_NODE_LABEL DECIMAL DOUBLE INTEGER IRIREF PNAME_LN
|
113
|
+
PNAME_NS STRING_LITERAL_LONG_QUOTE STRING_LITERAL_LONG_SINGLE_QUOTE
|
114
|
+
STRING_LITERAL_QUOTE STRING_LITERAL_SINGLE_QUOTE "[" "false" "true" )
|
115
|
+
(follow "." "]")
|
116
|
+
(seq objectList _predicateObjectList_1))
|
117
|
+
(rule _predicateObjectList_7 "7.7"
|
118
|
+
(first ";" _eps)
|
119
|
+
(follow "." "]")
|
120
|
+
(seq _predicateObjectList_1))
|
121
|
+
(rule _predicateObjectList_8 "7.8"
|
122
|
+
(first IRIREF PNAME_LN PNAME_NS _eps "a")
|
123
|
+
(follow "." ";" "]")
|
124
|
+
(seq _predicateObjectList_4))
|
125
|
+
(rule _predicateObjectList_9 "7.9"
|
126
|
+
(first "(" ANON BLANK_NODE_LABEL DECIMAL DOUBLE INTEGER IRIREF PNAME_LN
|
127
|
+
PNAME_NS STRING_LITERAL_LONG_QUOTE STRING_LITERAL_LONG_SINGLE_QUOTE
|
128
|
+
STRING_LITERAL_QUOTE STRING_LITERAL_SINGLE_QUOTE "[" "false" "true" )
|
129
|
+
(follow "." ";" "]")
|
130
|
+
(seq objectList))
|
131
|
+
(rule objectList "8"
|
132
|
+
(first "(" ANON BLANK_NODE_LABEL DECIMAL DOUBLE INTEGER IRIREF PNAME_LN
|
133
|
+
PNAME_NS STRING_LITERAL_LONG_QUOTE STRING_LITERAL_LONG_SINGLE_QUOTE
|
134
|
+
STRING_LITERAL_QUOTE STRING_LITERAL_SINGLE_QUOTE "[" "false" "true" )
|
135
|
+
(follow "." ";" "]")
|
136
|
+
(seq object _objectList_1))
|
137
|
+
(rule _objectList_1 "8.1"
|
138
|
+
(first "," _eps)
|
139
|
+
(follow "." ";" "]")
|
140
|
+
(cleanup star)
|
141
|
+
(alt _empty _objectList_3))
|
142
|
+
(rule _objectList_2 "8.2" (first ",") (follow "," "." ";" "]") (seq "," object))
|
143
|
+
(rule _objectList_3 "8.3"
|
144
|
+
(first ",")
|
145
|
+
(follow "." ";" "]")
|
146
|
+
(cleanup merge)
|
147
|
+
(seq _objectList_2 _objectList_1))
|
148
|
+
(rule _objectList_4 "8.4" (first "," _eps) (follow "." ";" "]") (seq _objectList_1))
|
149
|
+
(rule _objectList_5 "8.5" (first "," _eps) (follow "." ";" "]") (seq _objectList_1))
|
150
|
+
(rule _objectList_6 "8.6"
|
151
|
+
(first "(" ANON BLANK_NODE_LABEL DECIMAL DOUBLE INTEGER IRIREF PNAME_LN
|
152
|
+
PNAME_NS STRING_LITERAL_LONG_QUOTE STRING_LITERAL_LONG_SINGLE_QUOTE
|
153
|
+
STRING_LITERAL_QUOTE STRING_LITERAL_SINGLE_QUOTE "[" "false" "true" )
|
154
|
+
(follow "," "." ";" "]")
|
155
|
+
(seq object))
|
156
|
+
(rule verb "9"
|
157
|
+
(first IRIREF PNAME_LN PNAME_NS "a")
|
158
|
+
(follow "(" ANON BLANK_NODE_LABEL DECIMAL DOUBLE INTEGER IRIREF PNAME_LN
|
159
|
+
PNAME_NS STRING_LITERAL_LONG_QUOTE STRING_LITERAL_LONG_SINGLE_QUOTE
|
160
|
+
STRING_LITERAL_QUOTE STRING_LITERAL_SINGLE_QUOTE "[" "false" "true" )
|
161
|
+
(alt predicate "a"))
|
162
|
+
(rule subject "10"
|
163
|
+
(first "(" ANON BLANK_NODE_LABEL IRIREF PNAME_LN PNAME_NS)
|
164
|
+
(follow IRIREF PNAME_LN PNAME_NS "a")
|
165
|
+
(alt iri BlankNode collection))
|
166
|
+
(rule predicate "11"
|
167
|
+
(first IRIREF PNAME_LN PNAME_NS)
|
168
|
+
(follow "(" ")" "," "." ";" ANON BLANK_NODE_LABEL DECIMAL DOUBLE INTEGER
|
169
|
+
IRIREF PNAME_LN PNAME_NS STRING_LITERAL_LONG_QUOTE
|
170
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE STRING_LITERAL_QUOTE
|
171
|
+
STRING_LITERAL_SINGLE_QUOTE "[" "]" "false" "true" )
|
172
|
+
(seq iri))
|
173
|
+
(rule object "12"
|
174
|
+
(first "(" ANON BLANK_NODE_LABEL DECIMAL DOUBLE INTEGER IRIREF PNAME_LN
|
175
|
+
PNAME_NS STRING_LITERAL_LONG_QUOTE STRING_LITERAL_LONG_SINGLE_QUOTE
|
176
|
+
STRING_LITERAL_QUOTE STRING_LITERAL_SINGLE_QUOTE "[" "false" "true" )
|
177
|
+
(follow "(" ")" "," "." ";" ANON BLANK_NODE_LABEL DECIMAL DOUBLE INTEGER
|
178
|
+
IRIREF PNAME_LN PNAME_NS STRING_LITERAL_LONG_QUOTE
|
179
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE STRING_LITERAL_QUOTE
|
180
|
+
STRING_LITERAL_SINGLE_QUOTE "[" "]" "false" "true" )
|
181
|
+
(alt iri BlankNode collection blankNodePropertyList literal))
|
182
|
+
(rule literal "13"
|
183
|
+
(first DECIMAL DOUBLE INTEGER STRING_LITERAL_LONG_QUOTE
|
184
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE STRING_LITERAL_QUOTE
|
185
|
+
STRING_LITERAL_SINGLE_QUOTE "false" "true" )
|
186
|
+
(follow "(" ")" "," "." ";" ANON BLANK_NODE_LABEL DECIMAL DOUBLE INTEGER
|
187
|
+
IRIREF PNAME_LN PNAME_NS STRING_LITERAL_LONG_QUOTE
|
188
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE STRING_LITERAL_QUOTE
|
189
|
+
STRING_LITERAL_SINGLE_QUOTE "[" "]" "false" "true" )
|
190
|
+
(alt RDFLiteral NumericLiteral BooleanLiteral))
|
191
|
+
(rule blankNodePropertyList "14"
|
192
|
+
(first "[")
|
193
|
+
(follow "(" ")" "," "." ";" ANON BLANK_NODE_LABEL DECIMAL DOUBLE INTEGER
|
194
|
+
IRIREF PNAME_LN PNAME_NS STRING_LITERAL_LONG_QUOTE
|
195
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE STRING_LITERAL_QUOTE
|
196
|
+
STRING_LITERAL_SINGLE_QUOTE "[" "]" "a" "false" "true" )
|
197
|
+
(seq "[" predicateObjectList "]"))
|
198
|
+
(rule _blankNodePropertyList_1 "14.1"
|
199
|
+
(first IRIREF PNAME_LN PNAME_NS "a")
|
200
|
+
(follow "(" ")" "," "." ";" ANON BLANK_NODE_LABEL DECIMAL DOUBLE INTEGER
|
201
|
+
IRIREF PNAME_LN PNAME_NS STRING_LITERAL_LONG_QUOTE
|
202
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE STRING_LITERAL_QUOTE
|
203
|
+
STRING_LITERAL_SINGLE_QUOTE "[" "]" "a" "false" "true" )
|
204
|
+
(seq predicateObjectList "]"))
|
205
|
+
(rule _blankNodePropertyList_2 "14.2"
|
206
|
+
(first "]")
|
207
|
+
(follow "(" ")" "," "." ";" ANON BLANK_NODE_LABEL DECIMAL DOUBLE INTEGER
|
208
|
+
IRIREF PNAME_LN PNAME_NS STRING_LITERAL_LONG_QUOTE
|
209
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE STRING_LITERAL_QUOTE
|
210
|
+
STRING_LITERAL_SINGLE_QUOTE "[" "]" "a" "false" "true" )
|
211
|
+
(seq "]"))
|
212
|
+
(rule collection "15"
|
213
|
+
(first "(")
|
214
|
+
(follow "(" ")" "," "." ";" ANON BLANK_NODE_LABEL DECIMAL DOUBLE INTEGER
|
215
|
+
IRIREF PNAME_LN PNAME_NS STRING_LITERAL_LONG_QUOTE
|
216
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE STRING_LITERAL_QUOTE
|
217
|
+
STRING_LITERAL_SINGLE_QUOTE "[" "]" "a" "false" "true" )
|
218
|
+
(seq "(" _collection_1 ")"))
|
219
|
+
(rule _collection_1 "15.1"
|
220
|
+
(first "(" ANON BLANK_NODE_LABEL DECIMAL DOUBLE INTEGER IRIREF PNAME_LN
|
221
|
+
PNAME_NS STRING_LITERAL_LONG_QUOTE STRING_LITERAL_LONG_SINGLE_QUOTE
|
222
|
+
STRING_LITERAL_QUOTE STRING_LITERAL_SINGLE_QUOTE "[" _eps "false" "true" )
|
223
|
+
(follow ")")
|
224
|
+
(cleanup star)
|
225
|
+
(alt _empty _collection_2))
|
226
|
+
(rule _collection_2 "15.2"
|
227
|
+
(first "(" ANON BLANK_NODE_LABEL DECIMAL DOUBLE INTEGER IRIREF PNAME_LN
|
228
|
+
PNAME_NS STRING_LITERAL_LONG_QUOTE STRING_LITERAL_LONG_SINGLE_QUOTE
|
229
|
+
STRING_LITERAL_QUOTE STRING_LITERAL_SINGLE_QUOTE "[" "false" "true" )
|
230
|
+
(follow ")")
|
231
|
+
(cleanup merge)
|
232
|
+
(seq object _collection_1))
|
233
|
+
(rule _collection_3 "15.3"
|
234
|
+
(first "(" ")" ANON BLANK_NODE_LABEL DECIMAL DOUBLE INTEGER IRIREF PNAME_LN
|
235
|
+
PNAME_NS STRING_LITERAL_LONG_QUOTE STRING_LITERAL_LONG_SINGLE_QUOTE
|
236
|
+
STRING_LITERAL_QUOTE STRING_LITERAL_SINGLE_QUOTE "[" "false" "true" )
|
237
|
+
(follow "(" ")" "," "." ";" ANON BLANK_NODE_LABEL DECIMAL DOUBLE INTEGER
|
238
|
+
IRIREF PNAME_LN PNAME_NS STRING_LITERAL_LONG_QUOTE
|
239
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE STRING_LITERAL_QUOTE
|
240
|
+
STRING_LITERAL_SINGLE_QUOTE "[" "]" "a" "false" "true" )
|
241
|
+
(seq _collection_1 ")"))
|
242
|
+
(rule _collection_4 "15.4"
|
243
|
+
(first "(" ANON BLANK_NODE_LABEL DECIMAL DOUBLE INTEGER IRIREF PNAME_LN
|
244
|
+
PNAME_NS STRING_LITERAL_LONG_QUOTE STRING_LITERAL_LONG_SINGLE_QUOTE
|
245
|
+
STRING_LITERAL_QUOTE STRING_LITERAL_SINGLE_QUOTE "[" _eps "false" "true" )
|
246
|
+
(follow ")")
|
247
|
+
(seq _collection_1))
|
248
|
+
(rule _collection_5 "15.5"
|
249
|
+
(first ")")
|
250
|
+
(follow "(" ")" "," "." ";" ANON BLANK_NODE_LABEL DECIMAL DOUBLE INTEGER
|
251
|
+
IRIREF PNAME_LN PNAME_NS STRING_LITERAL_LONG_QUOTE
|
252
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE STRING_LITERAL_QUOTE
|
253
|
+
STRING_LITERAL_SINGLE_QUOTE "[" "]" "a" "false" "true" )
|
254
|
+
(seq ")"))
|
255
|
+
(rule NumericLiteral "16"
|
256
|
+
(first DECIMAL DOUBLE INTEGER)
|
257
|
+
(follow "(" ")" "," "." ";" ANON BLANK_NODE_LABEL DECIMAL DOUBLE INTEGER
|
258
|
+
IRIREF PNAME_LN PNAME_NS STRING_LITERAL_LONG_QUOTE
|
259
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE STRING_LITERAL_QUOTE
|
260
|
+
STRING_LITERAL_SINGLE_QUOTE "[" "]" "false" "true" )
|
261
|
+
(alt INTEGER DECIMAL DOUBLE))
|
262
|
+
(rule String "17"
|
263
|
+
(first STRING_LITERAL_LONG_QUOTE STRING_LITERAL_LONG_SINGLE_QUOTE
|
264
|
+
STRING_LITERAL_QUOTE STRING_LITERAL_SINGLE_QUOTE )
|
265
|
+
(follow "(" ")" "," "." ";" ANON BLANK_NODE_LABEL DECIMAL DOUBLE INTEGER
|
266
|
+
IRIREF LANGTAG PNAME_LN PNAME_NS STRING_LITERAL_LONG_QUOTE
|
267
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE STRING_LITERAL_QUOTE
|
268
|
+
STRING_LITERAL_SINGLE_QUOTE "[" "]" "^^" "false" "true" )
|
269
|
+
(alt STRING_LITERAL_QUOTE STRING_LITERAL_SINGLE_QUOTE
|
270
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE STRING_LITERAL_LONG_QUOTE ))
|
271
|
+
(terminal IRIREF "18" (seq "<" (range "^#x00-#x20<>\"{}|^`] | UCHAR)* '>'")))
|
272
|
+
(terminal INTEGER "19" (seq (opt (range "+-")) (plus (range "0-9"))))
|
273
|
+
(terminal DECIMAL "20"
|
274
|
+
(seq (opt (range "+-")) (seq (star (range "0-9")) "." (plus (range "0-9")))))
|
275
|
+
(terminal DOUBLE "21"
|
276
|
+
(seq
|
277
|
+
(opt (range "+-"))
|
278
|
+
(alt
|
279
|
+
(seq (plus (range "0-9")) "." (star (range "0-9")) EXPONENT)
|
280
|
+
(seq "." (plus (range "0-9")) EXPONENT)
|
281
|
+
(seq (plus (range "0-9")) EXPONENT)) ))
|
282
|
+
(terminal STRING_LITERAL_QUOTE "22"
|
283
|
+
(seq "\"" (star (alt (range "^#x22#x5C#xA#xD") ECHAR UCHAR)) "\""))
|
284
|
+
(terminal STRING_LITERAL_SINGLE_QUOTE "23"
|
285
|
+
(seq "'" (star (alt (range "^#x27#x5C#xA#xD") ECHAR UCHAR)) "'"))
|
286
|
+
(terminal STRING_LITERAL_LONG_SINGLE_QUOTE "24"
|
287
|
+
(seq "'''" (seq (opt (alt "'" "''")) (range "^'] | ECHAR | UCHAR ))* \"'''\""))))
|
288
|
+
(terminal STRING_LITERAL_LONG_QUOTE "25"
|
289
|
+
(seq "\"\"\"" (seq (opt (alt "\"" "\"\"")) (range "^\"] | ECHAR | UCHAR ))* '\"\"\"'"))))
|
290
|
+
(terminal UCHAR "26"
|
291
|
+
(alt (seq "u" HEX HEX HEX HEX) (seq "U" HEX HEX HEX HEX HEX HEX HEX HEX)))
|
292
|
+
(rule _sparqlPrefix_1 "28s.1"
|
293
|
+
(first PNAME_NS)
|
294
|
+
(follow "(" "@base" "@prefix" ANON BLANK_NODE_LABEL IRIREF PNAME_LN PNAME_NS
|
295
|
+
SPARQL_BASE SPARQL_PREFIX "[" _eof )
|
296
|
+
(seq PNAME_NS IRIREF))
|
297
|
+
(rule sparqlPrefix "28s"
|
298
|
+
(first SPARQL_PREFIX)
|
299
|
+
(follow "(" "@base" "@prefix" ANON BLANK_NODE_LABEL IRIREF PNAME_LN PNAME_NS
|
300
|
+
SPARQL_BASE SPARQL_PREFIX "[" _eof )
|
301
|
+
(seq SPARQL_PREFIX PNAME_NS IRIREF))
|
302
|
+
(terminal SPARQL_PREFIX "28t"
|
303
|
+
(seq (range "Pp") (range "Rr") (range "Ee") (range "Ff") (range "Ii") (range "Xx")))
|
304
|
+
(terminal SPARQL_BASE "29t" (seq (range "Bb") (range "Aa") (range "Ss") (range "Ee")))
|
305
|
+
(rule _sparqlBase_1 "29s.1"
|
306
|
+
(first IRIREF)
|
307
|
+
(follow "(" "@base" "@prefix" ANON BLANK_NODE_LABEL IRIREF PNAME_LN PNAME_NS
|
308
|
+
SPARQL_BASE SPARQL_PREFIX "[" _eof )
|
309
|
+
(seq IRIREF))
|
310
|
+
(rule sparqlBase "29s"
|
311
|
+
(first SPARQL_BASE)
|
312
|
+
(follow "(" "@base" "@prefix" ANON BLANK_NODE_LABEL IRIREF PNAME_LN PNAME_NS
|
313
|
+
SPARQL_BASE SPARQL_PREFIX "[" _eof )
|
314
|
+
(seq SPARQL_BASE IRIREF))
|
315
|
+
(rule _RDFLiteral_1 "128s.1"
|
316
|
+
(first LANGTAG "^^" _eps)
|
317
|
+
(follow "(" ")" "," "." ";" ANON BLANK_NODE_LABEL DECIMAL DOUBLE INTEGER
|
318
|
+
IRIREF PNAME_LN PNAME_NS STRING_LITERAL_LONG_QUOTE
|
319
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE STRING_LITERAL_QUOTE
|
320
|
+
STRING_LITERAL_SINGLE_QUOTE "[" "]" "false" "true" )
|
321
|
+
(cleanup opt)
|
322
|
+
(alt _empty _RDFLiteral_2))
|
323
|
+
(rule _RDFLiteral_3 "128s.3"
|
324
|
+
(first "^^")
|
325
|
+
(follow "(" ")" "," "." ";" ANON BLANK_NODE_LABEL DECIMAL DOUBLE INTEGER
|
326
|
+
IRIREF PNAME_LN PNAME_NS STRING_LITERAL_LONG_QUOTE
|
327
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE STRING_LITERAL_QUOTE
|
328
|
+
STRING_LITERAL_SINGLE_QUOTE "[" "]" "false" "true" )
|
329
|
+
(seq "^^" iri))
|
330
|
+
(rule _RDFLiteral_2 "128s.2"
|
331
|
+
(first LANGTAG "^^")
|
332
|
+
(follow "(" ")" "," "." ";" ANON BLANK_NODE_LABEL DECIMAL DOUBLE INTEGER
|
333
|
+
IRIREF PNAME_LN PNAME_NS STRING_LITERAL_LONG_QUOTE
|
334
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE STRING_LITERAL_QUOTE
|
335
|
+
STRING_LITERAL_SINGLE_QUOTE "[" "]" "false" "true" )
|
336
|
+
(alt LANGTAG _RDFLiteral_3))
|
337
|
+
(rule RDFLiteral "128s"
|
338
|
+
(first STRING_LITERAL_LONG_QUOTE STRING_LITERAL_LONG_SINGLE_QUOTE
|
339
|
+
STRING_LITERAL_QUOTE STRING_LITERAL_SINGLE_QUOTE )
|
340
|
+
(follow "(" ")" "," "." ";" ANON BLANK_NODE_LABEL DECIMAL DOUBLE INTEGER
|
341
|
+
IRIREF PNAME_LN PNAME_NS STRING_LITERAL_LONG_QUOTE
|
342
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE STRING_LITERAL_QUOTE
|
343
|
+
STRING_LITERAL_SINGLE_QUOTE "[" "]" "false" "true" )
|
344
|
+
(seq String _RDFLiteral_1))
|
345
|
+
(rule _RDFLiteral_4 "128s.4"
|
346
|
+
(first LANGTAG "^^" _eps)
|
347
|
+
(follow "(" ")" "," "." ";" ANON BLANK_NODE_LABEL DECIMAL DOUBLE INTEGER
|
348
|
+
IRIREF PNAME_LN PNAME_NS STRING_LITERAL_LONG_QUOTE
|
349
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE STRING_LITERAL_QUOTE
|
350
|
+
STRING_LITERAL_SINGLE_QUOTE "[" "]" "false" "true" )
|
351
|
+
(seq _RDFLiteral_1))
|
352
|
+
(rule BooleanLiteral "133s"
|
353
|
+
(first "false" "true")
|
354
|
+
(follow "(" ")" "," "." ";" ANON BLANK_NODE_LABEL DECIMAL DOUBLE INTEGER
|
355
|
+
IRIREF PNAME_LN PNAME_NS STRING_LITERAL_LONG_QUOTE
|
356
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE STRING_LITERAL_QUOTE
|
357
|
+
STRING_LITERAL_SINGLE_QUOTE "[" "]" "false" "true" )
|
358
|
+
(alt "true" "false"))
|
359
|
+
(rule iri "135s"
|
360
|
+
(first IRIREF PNAME_LN PNAME_NS)
|
361
|
+
(follow "(" ")" "," "." ";" ANON BLANK_NODE_LABEL DECIMAL DOUBLE INTEGER
|
362
|
+
IRIREF PNAME_LN PNAME_NS STRING_LITERAL_LONG_QUOTE
|
363
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE STRING_LITERAL_QUOTE
|
364
|
+
STRING_LITERAL_SINGLE_QUOTE "[" "]" "a" "false" "true" )
|
365
|
+
(alt IRIREF PrefixedName))
|
366
|
+
(rule PrefixedName "136s"
|
367
|
+
(first PNAME_LN PNAME_NS)
|
368
|
+
(follow "(" ")" "," "." ";" ANON BLANK_NODE_LABEL DECIMAL DOUBLE INTEGER
|
369
|
+
IRIREF PNAME_LN PNAME_NS STRING_LITERAL_LONG_QUOTE
|
370
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE STRING_LITERAL_QUOTE
|
371
|
+
STRING_LITERAL_SINGLE_QUOTE "[" "]" "a" "false" "true" )
|
372
|
+
(alt PNAME_LN PNAME_NS))
|
373
|
+
(rule BlankNode "137s"
|
374
|
+
(first ANON BLANK_NODE_LABEL)
|
375
|
+
(follow "(" ")" "," "." ";" ANON BLANK_NODE_LABEL DECIMAL DOUBLE INTEGER
|
376
|
+
IRIREF PNAME_LN PNAME_NS STRING_LITERAL_LONG_QUOTE
|
377
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE STRING_LITERAL_QUOTE
|
378
|
+
STRING_LITERAL_SINGLE_QUOTE "[" "]" "a" "false" "true" )
|
379
|
+
(alt BLANK_NODE_LABEL ANON))
|
380
|
+
(terminal PNAME_NS "139s" (seq (opt PN_PREFIX) ":"))
|
381
|
+
(terminal PNAME_LN "140s" (seq PNAME_NS PN_LOCAL))
|
382
|
+
(terminal BLANK_NODE_LABEL "141s"
|
383
|
+
(seq "_:" (alt PN_CHARS_U (range "0-9")) (opt (seq (star (alt PN_CHARS ".")) PN_CHARS))))
|
384
|
+
(terminal LANGTAG "144s"
|
385
|
+
(seq "@" (plus (range "a-zA-Z")) (star (seq "-" (plus (range "a-zA-Z0-9"))))))
|
386
|
+
(terminal EXPONENT "154s" (seq (range "eE") (opt (range "+-")) (plus (range "0-9"))))
|
387
|
+
(terminal ECHAR "159s" (seq "\\" (range "tbnrf\"'")))
|
388
|
+
(terminal WS "161s" (alt (hex "#x20") (hex "#x9") (hex "#xD") (hex "#xA")))
|
389
|
+
(terminal ANON "162s" (seq "[" (star WS) "]"))
|
390
|
+
(terminal PN_CHARS_BASE "163s"
|
391
|
+
(alt
|
392
|
+
(range "A-Z")
|
393
|
+
(range "a-z")
|
394
|
+
(range "#x00C0-#x00D6")
|
395
|
+
(range "#x00D8-#x00F6")
|
396
|
+
(range "#x00F8-#x02FF")
|
397
|
+
(range "#x0370-#x037D")
|
398
|
+
(range "#x037F-#x1FFF")
|
399
|
+
(range "#x200C-#x200D")
|
400
|
+
(range "#x2070-#x218F")
|
401
|
+
(range "#x2C00-#x2FEF")
|
402
|
+
(range "#x3001-#xD7FF")
|
403
|
+
(range "#xF900-#xFDCF")
|
404
|
+
(range "#xFDF0-#xFFFD")
|
405
|
+
(range "#x10000-#xEFFFF")) )
|
406
|
+
(terminal PN_CHARS_U "164s" (alt PN_CHARS_BASE "_"))
|
407
|
+
(terminal PN_CHARS "166s"
|
408
|
+
(alt PN_CHARS_U "-"
|
409
|
+
(range "0-9")
|
410
|
+
(hex "#x00B7")
|
411
|
+
(range "#x0300-#x036F")
|
412
|
+
(range "#x203F-#x2040")) )
|
413
|
+
(terminal PN_PREFIX "167s"
|
414
|
+
(seq PN_CHARS_BASE (opt (seq (star (alt PN_CHARS ".")) PN_CHARS))))
|
415
|
+
(terminal PN_LOCAL "168s"
|
416
|
+
(seq
|
417
|
+
(alt PN_CHARS_U ":" (range "0-9") PLX)
|
418
|
+
(opt (seq (star (alt PN_CHARS "." ":" PLX)) (alt PN_CHARS ":" PLX)))) )
|
419
|
+
(terminal PLX "169s" (alt PERCENT PN_LOCAL_ESC))
|
420
|
+
(terminal PERCENT "170s" (seq "%" HEX HEX))
|
421
|
+
(terminal HEX "171s" (alt (range "0-9") (range "A-F") (range "a-f")))
|
422
|
+
(terminal PN_LOCAL_ESC "172s"
|
423
|
+
(seq "\\"
|
424
|
+
(alt "_" "~" "." "-" "!" "$" "&" "'" "(" ")" "*" "+" "," ";" "=" "/" "?" "#"
|
425
|
+
"@" "%" )) ))
|