ebnf 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +21 -7
- data/VERSION +1 -1
- data/bin/ebnf +73 -16
- data/etc/{ebnf.bnf → ebnf.ebnf} +2 -2
- data/etc/ebnf.ll1 +1010 -0
- data/etc/turtle.ebnf +70 -0
- data/etc/turtle.ll1 +1565 -0
- data/etc/turtle.rb +1375 -0
- data/lib/ebnf.rb +16 -1023
- data/lib/ebnf/base.rb +266 -0
- data/lib/ebnf/bnf.rb +50 -0
- data/lib/ebnf/ll1.rb +321 -0
- data/lib/ebnf/ll1/lexer.rb +11 -11
- data/lib/ebnf/ll1/parser.rb +28 -32
- data/lib/ebnf/ll1/scanner.rb +1 -1
- data/lib/ebnf/parser.rb +297 -0
- data/lib/ebnf/rule.rb +362 -0
- metadata +12 -3
data/etc/turtle.ebnf
ADDED
@@ -0,0 +1,70 @@
|
|
1
|
+
[1] turtleDoc ::= statement*
|
2
|
+
[2] statement ::= directive | triples "."
|
3
|
+
[3] directive ::= prefixID | base | sparqlPrefix | sparqlBase
|
4
|
+
[4] prefixID ::= '@prefix' PNAME_NS IRIREF "."
|
5
|
+
[5] base ::= '@base' IRIREF "."
|
6
|
+
[28s] sparqlPrefix ::= SPARQL_PREFIX PNAME_NS IRIREF
|
7
|
+
[29s] sparqlBase ::= SPARQL_BASE IRIREF
|
8
|
+
[6] triples ::= subject predicateObjectList | blankNodePropertyList predicateObjectList?
|
9
|
+
[7] predicateObjectList ::= verb objectList ( ";" ( verb objectList)? )*
|
10
|
+
[8] objectList ::= object ( "," object )*
|
11
|
+
[9] verb ::= predicate | "a"
|
12
|
+
[10] subject ::= iri | BlankNode | collection
|
13
|
+
[11] predicate ::= iri
|
14
|
+
[12] object ::= iri | BlankNode | collection | blankNodePropertyList| literal
|
15
|
+
[13] literal ::= RDFLiteral | NumericLiteral | BooleanLiteral
|
16
|
+
[14] blankNodePropertyList ::= "[" predicateObjectList "]"
|
17
|
+
[15] collection ::= "(" object* ")"
|
18
|
+
[16] NumericLiteral ::= INTEGER | DECIMAL | DOUBLE
|
19
|
+
[128s] RDFLiteral ::= String ( LANGTAG | ( "^^" iri ) )?
|
20
|
+
[133s] BooleanLiteral ::= "true" | "false"
|
21
|
+
[17] String ::= STRING_LITERAL_QUOTE | STRING_LITERAL_SINGLE_QUOTE | STRING_LITERAL_LONG_SINGLE_QUOTE |
|
22
|
+
STRING_LITERAL_LONG_QUOTE
|
23
|
+
[135s] iri ::= IRIREF | PrefixedName
|
24
|
+
[136s] PrefixedName ::= PNAME_LN | PNAME_NS
|
25
|
+
[137s] BlankNode ::= BLANK_NODE_LABEL | ANON
|
26
|
+
|
27
|
+
@terminals
|
28
|
+
|
29
|
+
[18] IRIREF ::= '<' ([^#x00-#x20<>"{}|^`\] | UCHAR)* '>'
|
30
|
+
[139s] PNAME_NS ::= PN_PREFIX? ":"
|
31
|
+
[140s] PNAME_LN ::= PNAME_NS PN_LOCAL
|
32
|
+
[141s] BLANK_NODE_LABEL ::= '_:' ( PN_CHARS_U | [0-9] ) ((PN_CHARS|'.')* PN_CHARS)?
|
33
|
+
[144s] LANGTAG ::= "@" [a-zA-Z]+ ( "-" [a-zA-Z0-9]+ )*
|
34
|
+
[19] INTEGER ::= [+-]? [0-9]+
|
35
|
+
[20] DECIMAL ::= [+-]? ( ([0-9])* '.' ([0-9])+ )
|
36
|
+
[21] DOUBLE ::= [+-]? ( [0-9]+ '.' [0-9]* EXPONENT | '.' ([0-9])+ EXPONENT | ([0-9])+ EXPONENT )
|
37
|
+
[154s] EXPONENT ::= [eE] [+-]? [0-9]+
|
38
|
+
[22] STRING_LITERAL_QUOTE ::= '"' ( [^#x22#x5C#xA#xD] | ECHAR | UCHAR )* '"'
|
39
|
+
[23] STRING_LITERAL_SINGLE_QUOTE ::= "'" ( [^#x27#x5C#xA#xD] | ECHAR | UCHAR )* "'"
|
40
|
+
[24] STRING_LITERAL_LONG_SINGLE_QUOTE ::= "'''" ( ( "'" | "''" )? ( [^'\] | ECHAR | UCHAR ) )* "'''"
|
41
|
+
[25] STRING_LITERAL_LONG_QUOTE ::= '"""' ( ( '"' | '""' )? ( [^"\] | ECHAR | UCHAR ) )* '"""'
|
42
|
+
[26] UCHAR ::= ( "\u" HEX HEX HEX HEX ) | ( "\U" HEX HEX HEX HEX HEX HEX HEX HEX )
|
43
|
+
[159s] ECHAR ::= "\" [tbnrf\"']
|
44
|
+
[28t] SPARQL_PREFIX ::= [Pp][Rr][Ee][Ff][Ii][Xx]
|
45
|
+
[29t] SPARQL_BASE ::= [Bb][Aa][Ss][Ee]
|
46
|
+
[161s] WS ::= #x20 | #x9 | #xD | #xA
|
47
|
+
[162s] ANON ::= "[" WS* "]"
|
48
|
+
[163s] PN_CHARS_BASE ::= [A-Z]
|
49
|
+
| [a-z]
|
50
|
+
| [#x00C0-#x00D6]
|
51
|
+
| [#x00D8-#x00F6]
|
52
|
+
| [#x00F8-#x02FF]
|
53
|
+
| [#x0370-#x037D]
|
54
|
+
| [#x037F-#x1FFF]
|
55
|
+
| [#x200C-#x200D]
|
56
|
+
| [#x2070-#x218F]
|
57
|
+
| [#x2C00-#x2FEF]
|
58
|
+
| [#x3001-#xD7FF]
|
59
|
+
| [#xF900-#xFDCF]
|
60
|
+
| [#xFDF0-#xFFFD]
|
61
|
+
| [#x10000-#xEFFFF]
|
62
|
+
[164s] PN_CHARS_U ::= PN_CHARS_BASE | '_'
|
63
|
+
[166s] PN_CHARS ::= PN_CHARS_U | "-" | [0-9] | #x00B7 | [#x0300-#x036F] | [#x203F-#x2040]
|
64
|
+
[167s] PN_PREFIX ::= PN_CHARS_BASE ( ( PN_CHARS | "." )* PN_CHARS )?
|
65
|
+
[168s] PN_LOCAL ::= ( PN_CHARS_U | ':' | [0-9] | PLX ) ( ( PN_CHARS | '.' | ':' | PLX )* ( PN_CHARS | ':' | PLX ) ) ?
|
66
|
+
[169s] PLX ::= PERCENT | PN_LOCAL_ESC
|
67
|
+
[170s] PERCENT ::= '%' HEX HEX
|
68
|
+
[171s] HEX ::= [0-9] | [A-F] | [a-f]
|
69
|
+
[172s] PN_LOCAL_ESC ::= '\' ( '_' | '~' | '.' | '-' | '!' | '$' | '&' | "'" | '(' | ')' | '*' | '+' | ',' | ';' | '='
|
70
|
+
| '/' | '?' | '#' | '@' | '%' )
|
data/etc/turtle.ll1
ADDED
@@ -0,0 +1,1565 @@
|
|
1
|
+
((rule
|
2
|
+
_empty
|
3
|
+
"0"
|
4
|
+
(first _eps)
|
5
|
+
(follow
|
6
|
+
"("
|
7
|
+
")"
|
8
|
+
","
|
9
|
+
"."
|
10
|
+
";"
|
11
|
+
ANON
|
12
|
+
BLANK_NODE_LABEL
|
13
|
+
DECIMAL
|
14
|
+
DOUBLE
|
15
|
+
INTEGER
|
16
|
+
IRIREF
|
17
|
+
PNAME_LN
|
18
|
+
PNAME_NS
|
19
|
+
STRING_LITERAL_LONG_QUOTE
|
20
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE
|
21
|
+
STRING_LITERAL_QUOTE
|
22
|
+
STRING_LITERAL_SINGLE_QUOTE
|
23
|
+
"["
|
24
|
+
"]"
|
25
|
+
_eof
|
26
|
+
"false"
|
27
|
+
"true"
|
28
|
+
)
|
29
|
+
(seq)
|
30
|
+
)
|
31
|
+
(rule
|
32
|
+
turtleDoc
|
33
|
+
"1"
|
34
|
+
(start #t)
|
35
|
+
(first
|
36
|
+
"("
|
37
|
+
"@base"
|
38
|
+
"@prefix"
|
39
|
+
ANON
|
40
|
+
BLANK_NODE_LABEL
|
41
|
+
IRIREF
|
42
|
+
PNAME_LN
|
43
|
+
PNAME_NS
|
44
|
+
SPARQL_BASE
|
45
|
+
SPARQL_PREFIX
|
46
|
+
"["
|
47
|
+
_eps
|
48
|
+
)
|
49
|
+
(follow _eof)
|
50
|
+
(alt _empty _turtleDoc_1)
|
51
|
+
)
|
52
|
+
(rule
|
53
|
+
_turtleDoc_1
|
54
|
+
"1.1"
|
55
|
+
(first
|
56
|
+
"("
|
57
|
+
"@base"
|
58
|
+
"@prefix"
|
59
|
+
ANON
|
60
|
+
BLANK_NODE_LABEL
|
61
|
+
IRIREF
|
62
|
+
PNAME_LN
|
63
|
+
PNAME_NS
|
64
|
+
SPARQL_BASE
|
65
|
+
SPARQL_PREFIX
|
66
|
+
"["
|
67
|
+
)
|
68
|
+
(follow _eof)
|
69
|
+
(seq statement turtleDoc)
|
70
|
+
)
|
71
|
+
(rule
|
72
|
+
_turtleDoc_2
|
73
|
+
"1.2"
|
74
|
+
(first
|
75
|
+
"("
|
76
|
+
"@base"
|
77
|
+
"@prefix"
|
78
|
+
ANON
|
79
|
+
BLANK_NODE_LABEL
|
80
|
+
IRIREF
|
81
|
+
PNAME_LN
|
82
|
+
PNAME_NS
|
83
|
+
SPARQL_BASE
|
84
|
+
SPARQL_PREFIX
|
85
|
+
"["
|
86
|
+
_eps
|
87
|
+
)
|
88
|
+
(follow _eof)
|
89
|
+
(seq turtleDoc)
|
90
|
+
)
|
91
|
+
(rule
|
92
|
+
statement
|
93
|
+
"2"
|
94
|
+
(first
|
95
|
+
"("
|
96
|
+
"@base"
|
97
|
+
"@prefix"
|
98
|
+
ANON
|
99
|
+
BLANK_NODE_LABEL
|
100
|
+
IRIREF
|
101
|
+
PNAME_LN
|
102
|
+
PNAME_NS
|
103
|
+
SPARQL_BASE
|
104
|
+
SPARQL_PREFIX
|
105
|
+
"["
|
106
|
+
)
|
107
|
+
(follow
|
108
|
+
"("
|
109
|
+
"@base"
|
110
|
+
"@prefix"
|
111
|
+
ANON
|
112
|
+
BLANK_NODE_LABEL
|
113
|
+
IRIREF
|
114
|
+
PNAME_LN
|
115
|
+
PNAME_NS
|
116
|
+
SPARQL_BASE
|
117
|
+
SPARQL_PREFIX
|
118
|
+
"["
|
119
|
+
)
|
120
|
+
(alt directive _statement_1)
|
121
|
+
)
|
122
|
+
(rule
|
123
|
+
_statement_1
|
124
|
+
"2.1"
|
125
|
+
(first
|
126
|
+
"("
|
127
|
+
ANON
|
128
|
+
BLANK_NODE_LABEL
|
129
|
+
IRIREF
|
130
|
+
PNAME_LN
|
131
|
+
PNAME_NS
|
132
|
+
"["
|
133
|
+
)
|
134
|
+
(follow
|
135
|
+
"("
|
136
|
+
"@base"
|
137
|
+
"@prefix"
|
138
|
+
ANON
|
139
|
+
BLANK_NODE_LABEL
|
140
|
+
IRIREF
|
141
|
+
PNAME_LN
|
142
|
+
PNAME_NS
|
143
|
+
SPARQL_BASE
|
144
|
+
SPARQL_PREFIX
|
145
|
+
"["
|
146
|
+
)
|
147
|
+
(seq triples ".")
|
148
|
+
)
|
149
|
+
(rule
|
150
|
+
_statement_2
|
151
|
+
"2.2"
|
152
|
+
(first ".")
|
153
|
+
(follow
|
154
|
+
"("
|
155
|
+
"@base"
|
156
|
+
"@prefix"
|
157
|
+
ANON
|
158
|
+
BLANK_NODE_LABEL
|
159
|
+
IRIREF
|
160
|
+
PNAME_LN
|
161
|
+
PNAME_NS
|
162
|
+
SPARQL_BASE
|
163
|
+
SPARQL_PREFIX
|
164
|
+
"["
|
165
|
+
)
|
166
|
+
(seq ".")
|
167
|
+
)
|
168
|
+
(rule
|
169
|
+
directive
|
170
|
+
"3"
|
171
|
+
(first
|
172
|
+
"@base"
|
173
|
+
"@prefix"
|
174
|
+
SPARQL_BASE
|
175
|
+
SPARQL_PREFIX
|
176
|
+
)
|
177
|
+
(follow
|
178
|
+
"("
|
179
|
+
"@base"
|
180
|
+
"@prefix"
|
181
|
+
ANON
|
182
|
+
BLANK_NODE_LABEL
|
183
|
+
IRIREF
|
184
|
+
PNAME_LN
|
185
|
+
PNAME_NS
|
186
|
+
SPARQL_BASE
|
187
|
+
SPARQL_PREFIX
|
188
|
+
"["
|
189
|
+
)
|
190
|
+
(alt
|
191
|
+
prefixID
|
192
|
+
base
|
193
|
+
sparqlPrefix
|
194
|
+
sparqlBase
|
195
|
+
)
|
196
|
+
)
|
197
|
+
(rule
|
198
|
+
prefixID
|
199
|
+
"4"
|
200
|
+
(first "@prefix")
|
201
|
+
(follow
|
202
|
+
"("
|
203
|
+
"@base"
|
204
|
+
"@prefix"
|
205
|
+
ANON
|
206
|
+
BLANK_NODE_LABEL
|
207
|
+
IRIREF
|
208
|
+
PNAME_LN
|
209
|
+
PNAME_NS
|
210
|
+
SPARQL_BASE
|
211
|
+
SPARQL_PREFIX
|
212
|
+
"["
|
213
|
+
)
|
214
|
+
(seq "@prefix" PNAME_NS IRIREF ".")
|
215
|
+
)
|
216
|
+
(rule
|
217
|
+
_prefixID_1
|
218
|
+
"4.1"
|
219
|
+
(first PNAME_NS)
|
220
|
+
(follow
|
221
|
+
"("
|
222
|
+
"@base"
|
223
|
+
"@prefix"
|
224
|
+
ANON
|
225
|
+
BLANK_NODE_LABEL
|
226
|
+
IRIREF
|
227
|
+
PNAME_LN
|
228
|
+
PNAME_NS
|
229
|
+
SPARQL_BASE
|
230
|
+
SPARQL_PREFIX
|
231
|
+
"["
|
232
|
+
)
|
233
|
+
(seq PNAME_NS IRIREF ".")
|
234
|
+
)
|
235
|
+
(rule
|
236
|
+
base
|
237
|
+
"5"
|
238
|
+
(first "@base")
|
239
|
+
(follow
|
240
|
+
"("
|
241
|
+
"@base"
|
242
|
+
"@prefix"
|
243
|
+
ANON
|
244
|
+
BLANK_NODE_LABEL
|
245
|
+
IRIREF
|
246
|
+
PNAME_LN
|
247
|
+
PNAME_NS
|
248
|
+
SPARQL_BASE
|
249
|
+
SPARQL_PREFIX
|
250
|
+
"["
|
251
|
+
)
|
252
|
+
(seq "@base" IRIREF ".")
|
253
|
+
)
|
254
|
+
(rule
|
255
|
+
_base_1
|
256
|
+
"5.1"
|
257
|
+
(first IRIREF)
|
258
|
+
(follow
|
259
|
+
"("
|
260
|
+
"@base"
|
261
|
+
"@prefix"
|
262
|
+
ANON
|
263
|
+
BLANK_NODE_LABEL
|
264
|
+
IRIREF
|
265
|
+
PNAME_LN
|
266
|
+
PNAME_NS
|
267
|
+
SPARQL_BASE
|
268
|
+
SPARQL_PREFIX
|
269
|
+
"["
|
270
|
+
)
|
271
|
+
(seq IRIREF ".")
|
272
|
+
)
|
273
|
+
(rule
|
274
|
+
triples
|
275
|
+
"6"
|
276
|
+
(first
|
277
|
+
"("
|
278
|
+
ANON
|
279
|
+
BLANK_NODE_LABEL
|
280
|
+
IRIREF
|
281
|
+
PNAME_LN
|
282
|
+
PNAME_NS
|
283
|
+
"["
|
284
|
+
)
|
285
|
+
(follow ".")
|
286
|
+
(alt _triples_1 _triples_2)
|
287
|
+
)
|
288
|
+
(rule
|
289
|
+
_triples_1
|
290
|
+
"6.1"
|
291
|
+
(first
|
292
|
+
"("
|
293
|
+
ANON
|
294
|
+
BLANK_NODE_LABEL
|
295
|
+
IRIREF
|
296
|
+
PNAME_LN
|
297
|
+
PNAME_NS
|
298
|
+
)
|
299
|
+
(follow ".")
|
300
|
+
(seq subject predicateObjectList)
|
301
|
+
)
|
302
|
+
(rule
|
303
|
+
_triples_2
|
304
|
+
"6.2"
|
305
|
+
(first "[")
|
306
|
+
(follow ".")
|
307
|
+
(seq blankNodePropertyList _triples_3)
|
308
|
+
)
|
309
|
+
(rule
|
310
|
+
_triples_3
|
311
|
+
"6.3"
|
312
|
+
(first IRIREF PNAME_LN PNAME_NS _eps "a")
|
313
|
+
(follow ".")
|
314
|
+
(alt _empty predicateObjectList)
|
315
|
+
)
|
316
|
+
(rule
|
317
|
+
_triples_4
|
318
|
+
"6.4"
|
319
|
+
(first IRIREF PNAME_LN PNAME_NS "a")
|
320
|
+
(follow ".")
|
321
|
+
(seq predicateObjectList)
|
322
|
+
)
|
323
|
+
(rule
|
324
|
+
_triples_5
|
325
|
+
"6.5"
|
326
|
+
(first IRIREF PNAME_LN PNAME_NS _eps "a")
|
327
|
+
(follow ".")
|
328
|
+
(seq _triples_3)
|
329
|
+
)
|
330
|
+
(rule
|
331
|
+
predicateObjectList
|
332
|
+
"7"
|
333
|
+
(first IRIREF PNAME_LN PNAME_NS "a")
|
334
|
+
(follow "." "]")
|
335
|
+
(seq
|
336
|
+
verb
|
337
|
+
objectList
|
338
|
+
_predicateObjectList_1
|
339
|
+
)
|
340
|
+
)
|
341
|
+
(rule
|
342
|
+
_predicateObjectList_1
|
343
|
+
"7.1"
|
344
|
+
(first ";" _eps)
|
345
|
+
(follow "." "]")
|
346
|
+
(alt _empty _predicateObjectList_3)
|
347
|
+
)
|
348
|
+
(rule
|
349
|
+
_predicateObjectList_2
|
350
|
+
"7.2"
|
351
|
+
(first ";")
|
352
|
+
(follow ";")
|
353
|
+
(seq ";" _predicateObjectList_4)
|
354
|
+
)
|
355
|
+
(rule
|
356
|
+
_predicateObjectList_3
|
357
|
+
"7.3"
|
358
|
+
(first ";")
|
359
|
+
(follow "." "]")
|
360
|
+
(seq
|
361
|
+
_predicateObjectList_2
|
362
|
+
_predicateObjectList_1
|
363
|
+
)
|
364
|
+
)
|
365
|
+
(rule
|
366
|
+
_predicateObjectList_4
|
367
|
+
"7.4"
|
368
|
+
(first IRIREF PNAME_LN PNAME_NS _eps "a")
|
369
|
+
(follow ";")
|
370
|
+
(alt _empty _predicateObjectList_5)
|
371
|
+
)
|
372
|
+
(rule
|
373
|
+
_predicateObjectList_5
|
374
|
+
"7.5"
|
375
|
+
(first IRIREF PNAME_LN PNAME_NS "a")
|
376
|
+
(follow ";")
|
377
|
+
(seq verb objectList)
|
378
|
+
)
|
379
|
+
(rule
|
380
|
+
_predicateObjectList_6
|
381
|
+
"7.6"
|
382
|
+
(first
|
383
|
+
"("
|
384
|
+
ANON
|
385
|
+
BLANK_NODE_LABEL
|
386
|
+
DECIMAL
|
387
|
+
DOUBLE
|
388
|
+
INTEGER
|
389
|
+
IRIREF
|
390
|
+
PNAME_LN
|
391
|
+
PNAME_NS
|
392
|
+
STRING_LITERAL_LONG_QUOTE
|
393
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE
|
394
|
+
STRING_LITERAL_QUOTE
|
395
|
+
STRING_LITERAL_SINGLE_QUOTE
|
396
|
+
"["
|
397
|
+
"false"
|
398
|
+
"true"
|
399
|
+
)
|
400
|
+
(follow "." "]")
|
401
|
+
(seq objectList _predicateObjectList_1)
|
402
|
+
)
|
403
|
+
(rule
|
404
|
+
_predicateObjectList_7
|
405
|
+
"7.7"
|
406
|
+
(first ";" _eps)
|
407
|
+
(follow "." "]")
|
408
|
+
(seq _predicateObjectList_1)
|
409
|
+
)
|
410
|
+
(rule
|
411
|
+
_predicateObjectList_8
|
412
|
+
"7.8"
|
413
|
+
(first IRIREF PNAME_LN PNAME_NS _eps "a")
|
414
|
+
(follow ";")
|
415
|
+
(seq _predicateObjectList_4)
|
416
|
+
)
|
417
|
+
(rule
|
418
|
+
_predicateObjectList_9
|
419
|
+
"7.9"
|
420
|
+
(first
|
421
|
+
"("
|
422
|
+
ANON
|
423
|
+
BLANK_NODE_LABEL
|
424
|
+
DECIMAL
|
425
|
+
DOUBLE
|
426
|
+
INTEGER
|
427
|
+
IRIREF
|
428
|
+
PNAME_LN
|
429
|
+
PNAME_NS
|
430
|
+
STRING_LITERAL_LONG_QUOTE
|
431
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE
|
432
|
+
STRING_LITERAL_QUOTE
|
433
|
+
STRING_LITERAL_SINGLE_QUOTE
|
434
|
+
"["
|
435
|
+
"false"
|
436
|
+
"true"
|
437
|
+
)
|
438
|
+
(follow ";")
|
439
|
+
(seq objectList)
|
440
|
+
)
|
441
|
+
(rule
|
442
|
+
objectList
|
443
|
+
"8"
|
444
|
+
(first
|
445
|
+
"("
|
446
|
+
ANON
|
447
|
+
BLANK_NODE_LABEL
|
448
|
+
DECIMAL
|
449
|
+
DOUBLE
|
450
|
+
INTEGER
|
451
|
+
IRIREF
|
452
|
+
PNAME_LN
|
453
|
+
PNAME_NS
|
454
|
+
STRING_LITERAL_LONG_QUOTE
|
455
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE
|
456
|
+
STRING_LITERAL_QUOTE
|
457
|
+
STRING_LITERAL_SINGLE_QUOTE
|
458
|
+
"["
|
459
|
+
"false"
|
460
|
+
"true"
|
461
|
+
)
|
462
|
+
(follow ";")
|
463
|
+
(seq object _objectList_1)
|
464
|
+
)
|
465
|
+
(rule
|
466
|
+
_objectList_1
|
467
|
+
"8.1"
|
468
|
+
(first "," _eps)
|
469
|
+
(follow ";")
|
470
|
+
(alt _empty _objectList_3)
|
471
|
+
)
|
472
|
+
(rule
|
473
|
+
_objectList_2
|
474
|
+
"8.2"
|
475
|
+
(first ",")
|
476
|
+
(follow ",")
|
477
|
+
(seq "," object)
|
478
|
+
)
|
479
|
+
(rule
|
480
|
+
_objectList_3
|
481
|
+
"8.3"
|
482
|
+
(first ",")
|
483
|
+
(follow ";")
|
484
|
+
(seq _objectList_2 _objectList_1)
|
485
|
+
)
|
486
|
+
(rule
|
487
|
+
_objectList_4
|
488
|
+
"8.4"
|
489
|
+
(first "," _eps)
|
490
|
+
(follow ";")
|
491
|
+
(seq _objectList_1)
|
492
|
+
)
|
493
|
+
(rule
|
494
|
+
_objectList_5
|
495
|
+
"8.5"
|
496
|
+
(first "," _eps)
|
497
|
+
(follow ";")
|
498
|
+
(seq _objectList_1)
|
499
|
+
)
|
500
|
+
(rule
|
501
|
+
_objectList_6
|
502
|
+
"8.6"
|
503
|
+
(first
|
504
|
+
"("
|
505
|
+
ANON
|
506
|
+
BLANK_NODE_LABEL
|
507
|
+
DECIMAL
|
508
|
+
DOUBLE
|
509
|
+
INTEGER
|
510
|
+
IRIREF
|
511
|
+
PNAME_LN
|
512
|
+
PNAME_NS
|
513
|
+
STRING_LITERAL_LONG_QUOTE
|
514
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE
|
515
|
+
STRING_LITERAL_QUOTE
|
516
|
+
STRING_LITERAL_SINGLE_QUOTE
|
517
|
+
"["
|
518
|
+
"false"
|
519
|
+
"true"
|
520
|
+
)
|
521
|
+
(follow ",")
|
522
|
+
(seq object)
|
523
|
+
)
|
524
|
+
(rule
|
525
|
+
verb
|
526
|
+
"9"
|
527
|
+
(first IRIREF PNAME_LN PNAME_NS "a")
|
528
|
+
(follow
|
529
|
+
"("
|
530
|
+
ANON
|
531
|
+
BLANK_NODE_LABEL
|
532
|
+
DECIMAL
|
533
|
+
DOUBLE
|
534
|
+
INTEGER
|
535
|
+
IRIREF
|
536
|
+
PNAME_LN
|
537
|
+
PNAME_NS
|
538
|
+
STRING_LITERAL_LONG_QUOTE
|
539
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE
|
540
|
+
STRING_LITERAL_QUOTE
|
541
|
+
STRING_LITERAL_SINGLE_QUOTE
|
542
|
+
"["
|
543
|
+
"false"
|
544
|
+
"true"
|
545
|
+
)
|
546
|
+
(alt predicate "a")
|
547
|
+
)
|
548
|
+
(rule
|
549
|
+
subject
|
550
|
+
"10"
|
551
|
+
(first
|
552
|
+
"("
|
553
|
+
ANON
|
554
|
+
BLANK_NODE_LABEL
|
555
|
+
IRIREF
|
556
|
+
PNAME_LN
|
557
|
+
PNAME_NS
|
558
|
+
)
|
559
|
+
(follow IRIREF PNAME_LN PNAME_NS "a")
|
560
|
+
(alt iri BlankNode collection)
|
561
|
+
)
|
562
|
+
(rule
|
563
|
+
predicate
|
564
|
+
"11"
|
565
|
+
(first IRIREF PNAME_LN PNAME_NS)
|
566
|
+
(follow
|
567
|
+
"("
|
568
|
+
ANON
|
569
|
+
BLANK_NODE_LABEL
|
570
|
+
DECIMAL
|
571
|
+
DOUBLE
|
572
|
+
INTEGER
|
573
|
+
IRIREF
|
574
|
+
PNAME_LN
|
575
|
+
PNAME_NS
|
576
|
+
STRING_LITERAL_LONG_QUOTE
|
577
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE
|
578
|
+
STRING_LITERAL_QUOTE
|
579
|
+
STRING_LITERAL_SINGLE_QUOTE
|
580
|
+
"["
|
581
|
+
"false"
|
582
|
+
"true"
|
583
|
+
)
|
584
|
+
(seq iri)
|
585
|
+
)
|
586
|
+
(rule
|
587
|
+
object
|
588
|
+
"12"
|
589
|
+
(first
|
590
|
+
"("
|
591
|
+
ANON
|
592
|
+
BLANK_NODE_LABEL
|
593
|
+
DECIMAL
|
594
|
+
DOUBLE
|
595
|
+
INTEGER
|
596
|
+
IRIREF
|
597
|
+
PNAME_LN
|
598
|
+
PNAME_NS
|
599
|
+
STRING_LITERAL_LONG_QUOTE
|
600
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE
|
601
|
+
STRING_LITERAL_QUOTE
|
602
|
+
STRING_LITERAL_SINGLE_QUOTE
|
603
|
+
"["
|
604
|
+
"false"
|
605
|
+
"true"
|
606
|
+
)
|
607
|
+
(follow
|
608
|
+
"("
|
609
|
+
","
|
610
|
+
ANON
|
611
|
+
BLANK_NODE_LABEL
|
612
|
+
DECIMAL
|
613
|
+
DOUBLE
|
614
|
+
INTEGER
|
615
|
+
IRIREF
|
616
|
+
PNAME_LN
|
617
|
+
PNAME_NS
|
618
|
+
STRING_LITERAL_LONG_QUOTE
|
619
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE
|
620
|
+
STRING_LITERAL_QUOTE
|
621
|
+
STRING_LITERAL_SINGLE_QUOTE
|
622
|
+
"["
|
623
|
+
"false"
|
624
|
+
"true"
|
625
|
+
)
|
626
|
+
(alt
|
627
|
+
iri
|
628
|
+
BlankNode
|
629
|
+
collection
|
630
|
+
blankNodePropertyList
|
631
|
+
literal
|
632
|
+
)
|
633
|
+
)
|
634
|
+
(rule
|
635
|
+
literal
|
636
|
+
"13"
|
637
|
+
(first
|
638
|
+
DECIMAL
|
639
|
+
DOUBLE
|
640
|
+
INTEGER
|
641
|
+
STRING_LITERAL_LONG_QUOTE
|
642
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE
|
643
|
+
STRING_LITERAL_QUOTE
|
644
|
+
STRING_LITERAL_SINGLE_QUOTE
|
645
|
+
"false"
|
646
|
+
"true"
|
647
|
+
)
|
648
|
+
(follow
|
649
|
+
"("
|
650
|
+
","
|
651
|
+
ANON
|
652
|
+
BLANK_NODE_LABEL
|
653
|
+
DECIMAL
|
654
|
+
DOUBLE
|
655
|
+
INTEGER
|
656
|
+
IRIREF
|
657
|
+
PNAME_LN
|
658
|
+
PNAME_NS
|
659
|
+
STRING_LITERAL_LONG_QUOTE
|
660
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE
|
661
|
+
STRING_LITERAL_QUOTE
|
662
|
+
STRING_LITERAL_SINGLE_QUOTE
|
663
|
+
"["
|
664
|
+
"false"
|
665
|
+
"true"
|
666
|
+
)
|
667
|
+
(alt
|
668
|
+
RDFLiteral
|
669
|
+
NumericLiteral
|
670
|
+
BooleanLiteral
|
671
|
+
)
|
672
|
+
)
|
673
|
+
(rule
|
674
|
+
blankNodePropertyList
|
675
|
+
"14"
|
676
|
+
(first "[")
|
677
|
+
(follow
|
678
|
+
"("
|
679
|
+
","
|
680
|
+
ANON
|
681
|
+
BLANK_NODE_LABEL
|
682
|
+
DECIMAL
|
683
|
+
DOUBLE
|
684
|
+
INTEGER
|
685
|
+
IRIREF
|
686
|
+
PNAME_LN
|
687
|
+
PNAME_NS
|
688
|
+
STRING_LITERAL_LONG_QUOTE
|
689
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE
|
690
|
+
STRING_LITERAL_QUOTE
|
691
|
+
STRING_LITERAL_SINGLE_QUOTE
|
692
|
+
"["
|
693
|
+
"a"
|
694
|
+
"false"
|
695
|
+
"true"
|
696
|
+
)
|
697
|
+
(seq "[" predicateObjectList "]")
|
698
|
+
)
|
699
|
+
(rule
|
700
|
+
_blankNodePropertyList_1
|
701
|
+
"14.1"
|
702
|
+
(first IRIREF PNAME_LN PNAME_NS "a")
|
703
|
+
(follow
|
704
|
+
"("
|
705
|
+
","
|
706
|
+
ANON
|
707
|
+
BLANK_NODE_LABEL
|
708
|
+
DECIMAL
|
709
|
+
DOUBLE
|
710
|
+
INTEGER
|
711
|
+
IRIREF
|
712
|
+
PNAME_LN
|
713
|
+
PNAME_NS
|
714
|
+
STRING_LITERAL_LONG_QUOTE
|
715
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE
|
716
|
+
STRING_LITERAL_QUOTE
|
717
|
+
STRING_LITERAL_SINGLE_QUOTE
|
718
|
+
"["
|
719
|
+
"a"
|
720
|
+
"false"
|
721
|
+
"true"
|
722
|
+
)
|
723
|
+
(seq predicateObjectList "]")
|
724
|
+
)
|
725
|
+
(rule
|
726
|
+
_blankNodePropertyList_2
|
727
|
+
"14.2"
|
728
|
+
(first "]")
|
729
|
+
(follow
|
730
|
+
"("
|
731
|
+
","
|
732
|
+
ANON
|
733
|
+
BLANK_NODE_LABEL
|
734
|
+
DECIMAL
|
735
|
+
DOUBLE
|
736
|
+
INTEGER
|
737
|
+
IRIREF
|
738
|
+
PNAME_LN
|
739
|
+
PNAME_NS
|
740
|
+
STRING_LITERAL_LONG_QUOTE
|
741
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE
|
742
|
+
STRING_LITERAL_QUOTE
|
743
|
+
STRING_LITERAL_SINGLE_QUOTE
|
744
|
+
"["
|
745
|
+
"a"
|
746
|
+
"false"
|
747
|
+
"true"
|
748
|
+
)
|
749
|
+
(seq "]")
|
750
|
+
)
|
751
|
+
(rule
|
752
|
+
collection
|
753
|
+
"15"
|
754
|
+
(first "(")
|
755
|
+
(follow
|
756
|
+
"("
|
757
|
+
","
|
758
|
+
ANON
|
759
|
+
BLANK_NODE_LABEL
|
760
|
+
DECIMAL
|
761
|
+
DOUBLE
|
762
|
+
INTEGER
|
763
|
+
IRIREF
|
764
|
+
PNAME_LN
|
765
|
+
PNAME_NS
|
766
|
+
STRING_LITERAL_LONG_QUOTE
|
767
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE
|
768
|
+
STRING_LITERAL_QUOTE
|
769
|
+
STRING_LITERAL_SINGLE_QUOTE
|
770
|
+
"["
|
771
|
+
"a"
|
772
|
+
"false"
|
773
|
+
"true"
|
774
|
+
)
|
775
|
+
(seq "(" _collection_1 ")")
|
776
|
+
)
|
777
|
+
(rule
|
778
|
+
_collection_1
|
779
|
+
"15.1"
|
780
|
+
(first
|
781
|
+
"("
|
782
|
+
ANON
|
783
|
+
BLANK_NODE_LABEL
|
784
|
+
DECIMAL
|
785
|
+
DOUBLE
|
786
|
+
INTEGER
|
787
|
+
IRIREF
|
788
|
+
PNAME_LN
|
789
|
+
PNAME_NS
|
790
|
+
STRING_LITERAL_LONG_QUOTE
|
791
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE
|
792
|
+
STRING_LITERAL_QUOTE
|
793
|
+
STRING_LITERAL_SINGLE_QUOTE
|
794
|
+
"["
|
795
|
+
_eps
|
796
|
+
"false"
|
797
|
+
"true"
|
798
|
+
)
|
799
|
+
(follow ")")
|
800
|
+
(alt _empty _collection_2)
|
801
|
+
)
|
802
|
+
(rule
|
803
|
+
_collection_2
|
804
|
+
"15.2"
|
805
|
+
(first
|
806
|
+
"("
|
807
|
+
ANON
|
808
|
+
BLANK_NODE_LABEL
|
809
|
+
DECIMAL
|
810
|
+
DOUBLE
|
811
|
+
INTEGER
|
812
|
+
IRIREF
|
813
|
+
PNAME_LN
|
814
|
+
PNAME_NS
|
815
|
+
STRING_LITERAL_LONG_QUOTE
|
816
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE
|
817
|
+
STRING_LITERAL_QUOTE
|
818
|
+
STRING_LITERAL_SINGLE_QUOTE
|
819
|
+
"["
|
820
|
+
"false"
|
821
|
+
"true"
|
822
|
+
)
|
823
|
+
(follow ")")
|
824
|
+
(seq object _collection_1)
|
825
|
+
)
|
826
|
+
(rule
|
827
|
+
_collection_3
|
828
|
+
"15.3"
|
829
|
+
(first
|
830
|
+
"("
|
831
|
+
ANON
|
832
|
+
BLANK_NODE_LABEL
|
833
|
+
DECIMAL
|
834
|
+
DOUBLE
|
835
|
+
INTEGER
|
836
|
+
IRIREF
|
837
|
+
PNAME_LN
|
838
|
+
PNAME_NS
|
839
|
+
STRING_LITERAL_LONG_QUOTE
|
840
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE
|
841
|
+
STRING_LITERAL_QUOTE
|
842
|
+
STRING_LITERAL_SINGLE_QUOTE
|
843
|
+
"["
|
844
|
+
_eps
|
845
|
+
"false"
|
846
|
+
"true"
|
847
|
+
)
|
848
|
+
(follow
|
849
|
+
"("
|
850
|
+
","
|
851
|
+
ANON
|
852
|
+
BLANK_NODE_LABEL
|
853
|
+
DECIMAL
|
854
|
+
DOUBLE
|
855
|
+
INTEGER
|
856
|
+
IRIREF
|
857
|
+
PNAME_LN
|
858
|
+
PNAME_NS
|
859
|
+
STRING_LITERAL_LONG_QUOTE
|
860
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE
|
861
|
+
STRING_LITERAL_QUOTE
|
862
|
+
STRING_LITERAL_SINGLE_QUOTE
|
863
|
+
"["
|
864
|
+
"a"
|
865
|
+
"false"
|
866
|
+
"true"
|
867
|
+
)
|
868
|
+
(seq _collection_1 ")")
|
869
|
+
)
|
870
|
+
(rule
|
871
|
+
_collection_4
|
872
|
+
"15.4"
|
873
|
+
(first
|
874
|
+
"("
|
875
|
+
ANON
|
876
|
+
BLANK_NODE_LABEL
|
877
|
+
DECIMAL
|
878
|
+
DOUBLE
|
879
|
+
INTEGER
|
880
|
+
IRIREF
|
881
|
+
PNAME_LN
|
882
|
+
PNAME_NS
|
883
|
+
STRING_LITERAL_LONG_QUOTE
|
884
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE
|
885
|
+
STRING_LITERAL_QUOTE
|
886
|
+
STRING_LITERAL_SINGLE_QUOTE
|
887
|
+
"["
|
888
|
+
_eps
|
889
|
+
"false"
|
890
|
+
"true"
|
891
|
+
)
|
892
|
+
(follow ")")
|
893
|
+
(seq _collection_1)
|
894
|
+
)
|
895
|
+
(rule
|
896
|
+
_collection_5
|
897
|
+
"15.5"
|
898
|
+
(first ")")
|
899
|
+
(follow
|
900
|
+
"("
|
901
|
+
","
|
902
|
+
ANON
|
903
|
+
BLANK_NODE_LABEL
|
904
|
+
DECIMAL
|
905
|
+
DOUBLE
|
906
|
+
INTEGER
|
907
|
+
IRIREF
|
908
|
+
PNAME_LN
|
909
|
+
PNAME_NS
|
910
|
+
STRING_LITERAL_LONG_QUOTE
|
911
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE
|
912
|
+
STRING_LITERAL_QUOTE
|
913
|
+
STRING_LITERAL_SINGLE_QUOTE
|
914
|
+
"["
|
915
|
+
"a"
|
916
|
+
"false"
|
917
|
+
"true"
|
918
|
+
)
|
919
|
+
(seq ")")
|
920
|
+
)
|
921
|
+
(rule
|
922
|
+
NumericLiteral
|
923
|
+
"16"
|
924
|
+
(first DECIMAL DOUBLE INTEGER)
|
925
|
+
(follow
|
926
|
+
"("
|
927
|
+
","
|
928
|
+
ANON
|
929
|
+
BLANK_NODE_LABEL
|
930
|
+
DECIMAL
|
931
|
+
DOUBLE
|
932
|
+
INTEGER
|
933
|
+
IRIREF
|
934
|
+
PNAME_LN
|
935
|
+
PNAME_NS
|
936
|
+
STRING_LITERAL_LONG_QUOTE
|
937
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE
|
938
|
+
STRING_LITERAL_QUOTE
|
939
|
+
STRING_LITERAL_SINGLE_QUOTE
|
940
|
+
"["
|
941
|
+
"false"
|
942
|
+
"true"
|
943
|
+
)
|
944
|
+
(alt INTEGER DECIMAL DOUBLE)
|
945
|
+
)
|
946
|
+
(rule
|
947
|
+
String
|
948
|
+
"17"
|
949
|
+
(first
|
950
|
+
STRING_LITERAL_LONG_QUOTE
|
951
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE
|
952
|
+
STRING_LITERAL_QUOTE
|
953
|
+
STRING_LITERAL_SINGLE_QUOTE
|
954
|
+
)
|
955
|
+
(follow
|
956
|
+
LANGTAG
|
957
|
+
STRING_LITERAL_LONG_QUOTE
|
958
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE
|
959
|
+
STRING_LITERAL_QUOTE
|
960
|
+
STRING_LITERAL_SINGLE_QUOTE
|
961
|
+
"^^"
|
962
|
+
)
|
963
|
+
(alt
|
964
|
+
STRING_LITERAL_QUOTE
|
965
|
+
STRING_LITERAL_SINGLE_QUOTE
|
966
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE
|
967
|
+
STRING_LITERAL_LONG_QUOTE
|
968
|
+
)
|
969
|
+
)
|
970
|
+
(terminal
|
971
|
+
IRIREF
|
972
|
+
"18"
|
973
|
+
(seq
|
974
|
+
"<"
|
975
|
+
(star
|
976
|
+
(alt (range "^#x00-#x20<>\"{}|^`\\") UCHAR)
|
977
|
+
)
|
978
|
+
">"
|
979
|
+
)
|
980
|
+
)
|
981
|
+
(terminal
|
982
|
+
INTEGER
|
983
|
+
"19"
|
984
|
+
(seq (opt (range "+-")) (plus (range "0-9")))
|
985
|
+
)
|
986
|
+
(terminal
|
987
|
+
DECIMAL
|
988
|
+
"20"
|
989
|
+
(seq
|
990
|
+
(opt (range "+-"))
|
991
|
+
(seq
|
992
|
+
(star (range "0-9"))
|
993
|
+
"."
|
994
|
+
(plus (range "0-9"))
|
995
|
+
)
|
996
|
+
)
|
997
|
+
)
|
998
|
+
(terminal
|
999
|
+
DOUBLE
|
1000
|
+
"21"
|
1001
|
+
(seq
|
1002
|
+
(opt (range "+-"))
|
1003
|
+
(alt
|
1004
|
+
(seq
|
1005
|
+
(plus (range "0-9"))
|
1006
|
+
"."
|
1007
|
+
(star (range "0-9"))
|
1008
|
+
EXPONENT
|
1009
|
+
)
|
1010
|
+
(seq "." (plus (range "0-9")) EXPONENT)
|
1011
|
+
(seq (plus (range "0-9")) EXPONENT)
|
1012
|
+
)
|
1013
|
+
)
|
1014
|
+
)
|
1015
|
+
(terminal
|
1016
|
+
STRING_LITERAL_QUOTE
|
1017
|
+
"22"
|
1018
|
+
(seq
|
1019
|
+
"\""
|
1020
|
+
(star
|
1021
|
+
(alt (range "^#x22#x5C#xA#xD") ECHAR UCHAR)
|
1022
|
+
)
|
1023
|
+
"\""
|
1024
|
+
)
|
1025
|
+
)
|
1026
|
+
(terminal
|
1027
|
+
STRING_LITERAL_SINGLE_QUOTE
|
1028
|
+
"23"
|
1029
|
+
(seq
|
1030
|
+
"'"
|
1031
|
+
(star
|
1032
|
+
(alt (range "^#x27#x5C#xA#xD") ECHAR UCHAR)
|
1033
|
+
)
|
1034
|
+
"'"
|
1035
|
+
)
|
1036
|
+
)
|
1037
|
+
(terminal
|
1038
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE
|
1039
|
+
"24"
|
1040
|
+
(seq
|
1041
|
+
"'''"
|
1042
|
+
(star
|
1043
|
+
(seq
|
1044
|
+
(opt (alt "'" "''"))
|
1045
|
+
(alt (range "^'\\") ECHAR UCHAR)
|
1046
|
+
)
|
1047
|
+
)
|
1048
|
+
"'''"
|
1049
|
+
)
|
1050
|
+
)
|
1051
|
+
(terminal
|
1052
|
+
STRING_LITERAL_LONG_QUOTE
|
1053
|
+
"25"
|
1054
|
+
(seq
|
1055
|
+
"\"\"\""
|
1056
|
+
(star
|
1057
|
+
(seq
|
1058
|
+
(opt (alt "\"" "\"\""))
|
1059
|
+
(alt (range "^\"\\") ECHAR UCHAR)
|
1060
|
+
)
|
1061
|
+
)
|
1062
|
+
"\"\"\""
|
1063
|
+
)
|
1064
|
+
)
|
1065
|
+
(terminal
|
1066
|
+
UCHAR
|
1067
|
+
"26"
|
1068
|
+
(alt
|
1069
|
+
(seq "\\u" HEX HEX HEX HEX)
|
1070
|
+
(seq
|
1071
|
+
"\\U"
|
1072
|
+
HEX
|
1073
|
+
HEX
|
1074
|
+
HEX
|
1075
|
+
HEX
|
1076
|
+
HEX
|
1077
|
+
HEX
|
1078
|
+
HEX
|
1079
|
+
HEX
|
1080
|
+
)
|
1081
|
+
)
|
1082
|
+
)
|
1083
|
+
(rule
|
1084
|
+
sparqlPrefix
|
1085
|
+
"28s"
|
1086
|
+
(first SPARQL_PREFIX)
|
1087
|
+
(follow
|
1088
|
+
"("
|
1089
|
+
"@base"
|
1090
|
+
"@prefix"
|
1091
|
+
ANON
|
1092
|
+
BLANK_NODE_LABEL
|
1093
|
+
IRIREF
|
1094
|
+
PNAME_LN
|
1095
|
+
PNAME_NS
|
1096
|
+
SPARQL_BASE
|
1097
|
+
SPARQL_PREFIX
|
1098
|
+
"["
|
1099
|
+
)
|
1100
|
+
(seq SPARQL_PREFIX PNAME_NS IRIREF)
|
1101
|
+
)
|
1102
|
+
(rule
|
1103
|
+
_sparqlPrefix_1
|
1104
|
+
"28s.1"
|
1105
|
+
(first PNAME_NS)
|
1106
|
+
(follow
|
1107
|
+
"("
|
1108
|
+
"@base"
|
1109
|
+
"@prefix"
|
1110
|
+
ANON
|
1111
|
+
BLANK_NODE_LABEL
|
1112
|
+
IRIREF
|
1113
|
+
PNAME_LN
|
1114
|
+
PNAME_NS
|
1115
|
+
SPARQL_BASE
|
1116
|
+
SPARQL_PREFIX
|
1117
|
+
"["
|
1118
|
+
)
|
1119
|
+
(seq PNAME_NS IRIREF)
|
1120
|
+
)
|
1121
|
+
(terminal
|
1122
|
+
SPARQL_PREFIX
|
1123
|
+
"28t"
|
1124
|
+
(seq
|
1125
|
+
(range "Pp")
|
1126
|
+
(range "Rr")
|
1127
|
+
(range "Ee")
|
1128
|
+
(range "Ff")
|
1129
|
+
(range "Ii")
|
1130
|
+
(range "Xx")
|
1131
|
+
)
|
1132
|
+
)
|
1133
|
+
(rule
|
1134
|
+
sparqlBase
|
1135
|
+
"29s"
|
1136
|
+
(first SPARQL_BASE)
|
1137
|
+
(follow
|
1138
|
+
"("
|
1139
|
+
"@base"
|
1140
|
+
"@prefix"
|
1141
|
+
ANON
|
1142
|
+
BLANK_NODE_LABEL
|
1143
|
+
IRIREF
|
1144
|
+
PNAME_LN
|
1145
|
+
PNAME_NS
|
1146
|
+
SPARQL_BASE
|
1147
|
+
SPARQL_PREFIX
|
1148
|
+
"["
|
1149
|
+
)
|
1150
|
+
(seq SPARQL_BASE IRIREF)
|
1151
|
+
)
|
1152
|
+
(rule
|
1153
|
+
_sparqlBase_1
|
1154
|
+
"29s.1"
|
1155
|
+
(first IRIREF)
|
1156
|
+
(follow
|
1157
|
+
"("
|
1158
|
+
"@base"
|
1159
|
+
"@prefix"
|
1160
|
+
ANON
|
1161
|
+
BLANK_NODE_LABEL
|
1162
|
+
IRIREF
|
1163
|
+
PNAME_LN
|
1164
|
+
PNAME_NS
|
1165
|
+
SPARQL_BASE
|
1166
|
+
SPARQL_PREFIX
|
1167
|
+
"["
|
1168
|
+
)
|
1169
|
+
(seq IRIREF)
|
1170
|
+
)
|
1171
|
+
(terminal
|
1172
|
+
SPARQL_BASE
|
1173
|
+
"29t"
|
1174
|
+
(seq
|
1175
|
+
(range "Bb")
|
1176
|
+
(range "Aa")
|
1177
|
+
(range "Ss")
|
1178
|
+
(range "Ee")
|
1179
|
+
)
|
1180
|
+
)
|
1181
|
+
(rule
|
1182
|
+
RDFLiteral
|
1183
|
+
"128s"
|
1184
|
+
(first
|
1185
|
+
STRING_LITERAL_LONG_QUOTE
|
1186
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE
|
1187
|
+
STRING_LITERAL_QUOTE
|
1188
|
+
STRING_LITERAL_SINGLE_QUOTE
|
1189
|
+
)
|
1190
|
+
(follow
|
1191
|
+
"("
|
1192
|
+
","
|
1193
|
+
ANON
|
1194
|
+
BLANK_NODE_LABEL
|
1195
|
+
DECIMAL
|
1196
|
+
DOUBLE
|
1197
|
+
INTEGER
|
1198
|
+
IRIREF
|
1199
|
+
PNAME_LN
|
1200
|
+
PNAME_NS
|
1201
|
+
STRING_LITERAL_LONG_QUOTE
|
1202
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE
|
1203
|
+
STRING_LITERAL_QUOTE
|
1204
|
+
STRING_LITERAL_SINGLE_QUOTE
|
1205
|
+
"["
|
1206
|
+
"false"
|
1207
|
+
"true"
|
1208
|
+
)
|
1209
|
+
(seq String _RDFLiteral_1)
|
1210
|
+
)
|
1211
|
+
(rule
|
1212
|
+
_RDFLiteral_1
|
1213
|
+
"128s.1"
|
1214
|
+
(first LANGTAG "^^" _eps)
|
1215
|
+
(follow
|
1216
|
+
"("
|
1217
|
+
","
|
1218
|
+
ANON
|
1219
|
+
BLANK_NODE_LABEL
|
1220
|
+
DECIMAL
|
1221
|
+
DOUBLE
|
1222
|
+
INTEGER
|
1223
|
+
IRIREF
|
1224
|
+
PNAME_LN
|
1225
|
+
PNAME_NS
|
1226
|
+
STRING_LITERAL_LONG_QUOTE
|
1227
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE
|
1228
|
+
STRING_LITERAL_QUOTE
|
1229
|
+
STRING_LITERAL_SINGLE_QUOTE
|
1230
|
+
"["
|
1231
|
+
"false"
|
1232
|
+
"true"
|
1233
|
+
)
|
1234
|
+
(alt _empty _RDFLiteral_2)
|
1235
|
+
)
|
1236
|
+
(rule
|
1237
|
+
_RDFLiteral_2
|
1238
|
+
"128s.2"
|
1239
|
+
(first LANGTAG "^^")
|
1240
|
+
(follow
|
1241
|
+
"("
|
1242
|
+
","
|
1243
|
+
ANON
|
1244
|
+
BLANK_NODE_LABEL
|
1245
|
+
DECIMAL
|
1246
|
+
DOUBLE
|
1247
|
+
INTEGER
|
1248
|
+
IRIREF
|
1249
|
+
PNAME_LN
|
1250
|
+
PNAME_NS
|
1251
|
+
STRING_LITERAL_LONG_QUOTE
|
1252
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE
|
1253
|
+
STRING_LITERAL_QUOTE
|
1254
|
+
STRING_LITERAL_SINGLE_QUOTE
|
1255
|
+
"["
|
1256
|
+
"false"
|
1257
|
+
"true"
|
1258
|
+
)
|
1259
|
+
(alt LANGTAG _RDFLiteral_3)
|
1260
|
+
)
|
1261
|
+
(rule
|
1262
|
+
_RDFLiteral_3
|
1263
|
+
"128s.3"
|
1264
|
+
(first "^^")
|
1265
|
+
(follow
|
1266
|
+
"("
|
1267
|
+
","
|
1268
|
+
ANON
|
1269
|
+
BLANK_NODE_LABEL
|
1270
|
+
DECIMAL
|
1271
|
+
DOUBLE
|
1272
|
+
INTEGER
|
1273
|
+
IRIREF
|
1274
|
+
PNAME_LN
|
1275
|
+
PNAME_NS
|
1276
|
+
STRING_LITERAL_LONG_QUOTE
|
1277
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE
|
1278
|
+
STRING_LITERAL_QUOTE
|
1279
|
+
STRING_LITERAL_SINGLE_QUOTE
|
1280
|
+
"["
|
1281
|
+
"false"
|
1282
|
+
"true"
|
1283
|
+
)
|
1284
|
+
(seq "^^" iri)
|
1285
|
+
)
|
1286
|
+
(rule
|
1287
|
+
_RDFLiteral_4
|
1288
|
+
"128s.4"
|
1289
|
+
(first LANGTAG "^^" _eps)
|
1290
|
+
(follow
|
1291
|
+
"("
|
1292
|
+
","
|
1293
|
+
ANON
|
1294
|
+
BLANK_NODE_LABEL
|
1295
|
+
DECIMAL
|
1296
|
+
DOUBLE
|
1297
|
+
INTEGER
|
1298
|
+
IRIREF
|
1299
|
+
PNAME_LN
|
1300
|
+
PNAME_NS
|
1301
|
+
STRING_LITERAL_LONG_QUOTE
|
1302
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE
|
1303
|
+
STRING_LITERAL_QUOTE
|
1304
|
+
STRING_LITERAL_SINGLE_QUOTE
|
1305
|
+
"["
|
1306
|
+
"false"
|
1307
|
+
"true"
|
1308
|
+
)
|
1309
|
+
(seq _RDFLiteral_1)
|
1310
|
+
)
|
1311
|
+
(rule
|
1312
|
+
BooleanLiteral
|
1313
|
+
"133s"
|
1314
|
+
(first "false" "true")
|
1315
|
+
(follow
|
1316
|
+
"("
|
1317
|
+
","
|
1318
|
+
ANON
|
1319
|
+
BLANK_NODE_LABEL
|
1320
|
+
DECIMAL
|
1321
|
+
DOUBLE
|
1322
|
+
INTEGER
|
1323
|
+
IRIREF
|
1324
|
+
PNAME_LN
|
1325
|
+
PNAME_NS
|
1326
|
+
STRING_LITERAL_LONG_QUOTE
|
1327
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE
|
1328
|
+
STRING_LITERAL_QUOTE
|
1329
|
+
STRING_LITERAL_SINGLE_QUOTE
|
1330
|
+
"["
|
1331
|
+
"false"
|
1332
|
+
"true"
|
1333
|
+
)
|
1334
|
+
(alt "true" "false")
|
1335
|
+
)
|
1336
|
+
(rule
|
1337
|
+
iri
|
1338
|
+
"135s"
|
1339
|
+
(first IRIREF PNAME_LN PNAME_NS)
|
1340
|
+
(follow
|
1341
|
+
"("
|
1342
|
+
","
|
1343
|
+
ANON
|
1344
|
+
BLANK_NODE_LABEL
|
1345
|
+
DECIMAL
|
1346
|
+
DOUBLE
|
1347
|
+
INTEGER
|
1348
|
+
IRIREF
|
1349
|
+
PNAME_LN
|
1350
|
+
PNAME_NS
|
1351
|
+
STRING_LITERAL_LONG_QUOTE
|
1352
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE
|
1353
|
+
STRING_LITERAL_QUOTE
|
1354
|
+
STRING_LITERAL_SINGLE_QUOTE
|
1355
|
+
"["
|
1356
|
+
"a"
|
1357
|
+
"false"
|
1358
|
+
"true"
|
1359
|
+
)
|
1360
|
+
(alt IRIREF PrefixedName)
|
1361
|
+
)
|
1362
|
+
(rule
|
1363
|
+
PrefixedName
|
1364
|
+
"136s"
|
1365
|
+
(first PNAME_LN PNAME_NS)
|
1366
|
+
(follow
|
1367
|
+
"("
|
1368
|
+
","
|
1369
|
+
ANON
|
1370
|
+
BLANK_NODE_LABEL
|
1371
|
+
DECIMAL
|
1372
|
+
DOUBLE
|
1373
|
+
INTEGER
|
1374
|
+
IRIREF
|
1375
|
+
PNAME_LN
|
1376
|
+
PNAME_NS
|
1377
|
+
STRING_LITERAL_LONG_QUOTE
|
1378
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE
|
1379
|
+
STRING_LITERAL_QUOTE
|
1380
|
+
STRING_LITERAL_SINGLE_QUOTE
|
1381
|
+
"["
|
1382
|
+
"a"
|
1383
|
+
"false"
|
1384
|
+
"true"
|
1385
|
+
)
|
1386
|
+
(alt PNAME_LN PNAME_NS)
|
1387
|
+
)
|
1388
|
+
(rule
|
1389
|
+
BlankNode
|
1390
|
+
"137s"
|
1391
|
+
(first ANON BLANK_NODE_LABEL)
|
1392
|
+
(follow
|
1393
|
+
"("
|
1394
|
+
","
|
1395
|
+
ANON
|
1396
|
+
BLANK_NODE_LABEL
|
1397
|
+
DECIMAL
|
1398
|
+
DOUBLE
|
1399
|
+
INTEGER
|
1400
|
+
IRIREF
|
1401
|
+
PNAME_LN
|
1402
|
+
PNAME_NS
|
1403
|
+
STRING_LITERAL_LONG_QUOTE
|
1404
|
+
STRING_LITERAL_LONG_SINGLE_QUOTE
|
1405
|
+
STRING_LITERAL_QUOTE
|
1406
|
+
STRING_LITERAL_SINGLE_QUOTE
|
1407
|
+
"["
|
1408
|
+
"a"
|
1409
|
+
"false"
|
1410
|
+
"true"
|
1411
|
+
)
|
1412
|
+
(alt BLANK_NODE_LABEL ANON)
|
1413
|
+
)
|
1414
|
+
(terminal
|
1415
|
+
PNAME_NS
|
1416
|
+
"139s"
|
1417
|
+
(seq (opt PN_PREFIX) ":")
|
1418
|
+
)
|
1419
|
+
(terminal
|
1420
|
+
PNAME_LN
|
1421
|
+
"140s"
|
1422
|
+
(seq PNAME_NS PN_LOCAL)
|
1423
|
+
)
|
1424
|
+
(terminal
|
1425
|
+
BLANK_NODE_LABEL
|
1426
|
+
"141s"
|
1427
|
+
(seq
|
1428
|
+
"_:"
|
1429
|
+
(alt PN_CHARS_U (range "0-9"))
|
1430
|
+
(opt (seq (star (alt PN_CHARS ".")) PN_CHARS))
|
1431
|
+
)
|
1432
|
+
)
|
1433
|
+
(terminal
|
1434
|
+
LANGTAG
|
1435
|
+
"144s"
|
1436
|
+
(seq
|
1437
|
+
"@"
|
1438
|
+
(plus (range "a-zA-Z"))
|
1439
|
+
(star (seq "-" (plus (range "a-zA-Z0-9"))))
|
1440
|
+
)
|
1441
|
+
)
|
1442
|
+
(terminal
|
1443
|
+
EXPONENT
|
1444
|
+
"154s"
|
1445
|
+
(seq
|
1446
|
+
(range "eE")
|
1447
|
+
(opt (range "+-"))
|
1448
|
+
(plus (range "0-9"))
|
1449
|
+
)
|
1450
|
+
)
|
1451
|
+
(terminal
|
1452
|
+
ECHAR
|
1453
|
+
"159s"
|
1454
|
+
(seq "\\" (range "tbnrf\\\"'"))
|
1455
|
+
)
|
1456
|
+
(terminal
|
1457
|
+
WS
|
1458
|
+
"161s"
|
1459
|
+
(alt
|
1460
|
+
(hex "#x20")
|
1461
|
+
(hex "#x9")
|
1462
|
+
(hex "#xD")
|
1463
|
+
(hex "#xA")
|
1464
|
+
)
|
1465
|
+
)
|
1466
|
+
(terminal ANON "162s" (seq "[" (star WS) "]"))
|
1467
|
+
(terminal
|
1468
|
+
PN_CHARS_BASE
|
1469
|
+
"163s"
|
1470
|
+
(alt
|
1471
|
+
(range "A-Z")
|
1472
|
+
(range "a-z")
|
1473
|
+
(range "#x00C0-#x00D6")
|
1474
|
+
(range "#x00D8-#x00F6")
|
1475
|
+
(range "#x00F8-#x02FF")
|
1476
|
+
(range "#x0370-#x037D")
|
1477
|
+
(range "#x037F-#x1FFF")
|
1478
|
+
(range "#x200C-#x200D")
|
1479
|
+
(range "#x2070-#x218F")
|
1480
|
+
(range "#x2C00-#x2FEF")
|
1481
|
+
(range "#x3001-#xD7FF")
|
1482
|
+
(range "#xF900-#xFDCF")
|
1483
|
+
(range "#xFDF0-#xFFFD")
|
1484
|
+
(range "#x10000-#xEFFFF")
|
1485
|
+
)
|
1486
|
+
)
|
1487
|
+
(terminal
|
1488
|
+
PN_CHARS_U
|
1489
|
+
"164s"
|
1490
|
+
(alt PN_CHARS_BASE "_")
|
1491
|
+
)
|
1492
|
+
(terminal
|
1493
|
+
PN_CHARS
|
1494
|
+
"166s"
|
1495
|
+
(alt
|
1496
|
+
PN_CHARS_U
|
1497
|
+
"-"
|
1498
|
+
(range "0-9")
|
1499
|
+
(hex "#x00B7")
|
1500
|
+
(range "#x0300-#x036F")
|
1501
|
+
(range "#x203F-#x2040")
|
1502
|
+
)
|
1503
|
+
)
|
1504
|
+
(terminal
|
1505
|
+
PN_PREFIX
|
1506
|
+
"167s"
|
1507
|
+
(seq
|
1508
|
+
PN_CHARS_BASE
|
1509
|
+
(opt (seq (star (alt PN_CHARS ".")) PN_CHARS))
|
1510
|
+
)
|
1511
|
+
)
|
1512
|
+
(terminal
|
1513
|
+
PN_LOCAL
|
1514
|
+
"168s"
|
1515
|
+
(seq
|
1516
|
+
(alt PN_CHARS_U ":" (range "0-9") PLX)
|
1517
|
+
(opt
|
1518
|
+
(seq
|
1519
|
+
(star (alt PN_CHARS "." ":" PLX))
|
1520
|
+
(alt PN_CHARS ":" PLX)
|
1521
|
+
)
|
1522
|
+
)
|
1523
|
+
)
|
1524
|
+
)
|
1525
|
+
(terminal
|
1526
|
+
PLX
|
1527
|
+
"169s"
|
1528
|
+
(alt PERCENT PN_LOCAL_ESC)
|
1529
|
+
)
|
1530
|
+
(terminal PERCENT "170s" (seq "%" HEX HEX))
|
1531
|
+
(terminal
|
1532
|
+
HEX
|
1533
|
+
"171s"
|
1534
|
+
(alt (range "0-9") (range "A-F") (range "a-f"))
|
1535
|
+
)
|
1536
|
+
(terminal
|
1537
|
+
PN_LOCAL_ESC
|
1538
|
+
"172s"
|
1539
|
+
(seq
|
1540
|
+
"\\"
|
1541
|
+
(alt
|
1542
|
+
"_"
|
1543
|
+
"~"
|
1544
|
+
"."
|
1545
|
+
"-"
|
1546
|
+
"!"
|
1547
|
+
"$"
|
1548
|
+
"&"
|
1549
|
+
"'"
|
1550
|
+
"("
|
1551
|
+
")"
|
1552
|
+
"*"
|
1553
|
+
"+"
|
1554
|
+
","
|
1555
|
+
";"
|
1556
|
+
"="
|
1557
|
+
"/"
|
1558
|
+
"?"
|
1559
|
+
"#"
|
1560
|
+
"@"
|
1561
|
+
"%"
|
1562
|
+
)
|
1563
|
+
)
|
1564
|
+
)
|
1565
|
+
)
|