ebnf 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,112 @@
1
+ ((rule ebnf "1" (star (alt declaration rule)))
2
+ (rule
3
+ declaration
4
+ "2"
5
+ (alt "@terminals" pass)
6
+ )
7
+ (rule rule "3" (seq lhs "::=" expression))
8
+ (rule lhs "4" (seq "[" SYMBOL "]" SYMBOL))
9
+ (rule expression "5" (seq alt))
10
+ (rule alt "6" (seq seq (star (seq "|" seq))))
11
+ (rule seq "7" (plus diff))
12
+ (rule
13
+ diff
14
+ "8"
15
+ (seq postfix (star (seq "-" postfix)))
16
+ )
17
+ (rule
18
+ postfix
19
+ "9"
20
+ (seq primary (opt (range "?*+")))
21
+ )
22
+ (rule
23
+ primary
24
+ "10"
25
+ (alt
26
+ HEX
27
+ RANGE
28
+ ENUM
29
+ O_RANGE
30
+ O_ENUM
31
+ STRING1
32
+ STRING2
33
+ (seq "(" expression ")")
34
+ )
35
+ )
36
+ (rule
37
+ pass
38
+ "11"
39
+ (seq
40
+ "@pass"
41
+ (plus
42
+ (alt
43
+ (range "#x20\\t\\r\\n")
44
+ (seq (alt "#" "//") (star (range "^\\r\\n")))
45
+ (seq
46
+ "/*"
47
+ (star (alt (range "^*") (seq "*" (range "^/"))))
48
+ "*/"
49
+ )
50
+ )
51
+ )
52
+ )
53
+ )
54
+ (terminal
55
+ SYMBOL
56
+ "12"
57
+ (plus
58
+ (alt
59
+ (range "a-z")
60
+ (range "A-Z")
61
+ (range "0-9")
62
+ "_"
63
+ "."
64
+ )
65
+ )
66
+ )
67
+ (terminal
68
+ HEX
69
+ "13"
70
+ (seq
71
+ "#x"
72
+ (plus
73
+ (alt (range "0-9") (range "a-f") (range "A-F"))
74
+ )
75
+ )
76
+ )
77
+ (terminal
78
+ RANGE
79
+ "14"
80
+ (seq "[" CHAR "-" CHAR "]")
81
+ )
82
+ (terminal ENUM "15" (seq "[" (plus CHAR) "]"))
83
+ (terminal
84
+ O_RANGE
85
+ "16"
86
+ (seq "[^" CHAR "-" CHAR "]")
87
+ )
88
+ (terminal
89
+ O_ENUM
90
+ "17"
91
+ (seq "[^" (plus CHAR) "]")
92
+ )
93
+ (terminal
94
+ STRING1
95
+ "18"
96
+ (seq "\"" (star (diff CHAR "\"")) "\"")
97
+ )
98
+ (terminal
99
+ STRING2
100
+ "19"
101
+ (seq "'" (star (diff CHAR "'")) "'")
102
+ )
103
+ (terminal
104
+ CHAR
105
+ "20"
106
+ (alt
107
+ HEX
108
+ (seq "\\\\" (range "\\\\trn'\""))
109
+ (range "^\\t\\r\\n'\"")
110
+ )
111
+ )
112
+ )
@@ -1,27 +1,283 @@
1
- ((rule _empty "0" (first _eps) (follow ")" "." "]" _eof) (seq) )
2
- (rule turtleDoc "1" (start #t)
3
- (first "(" "@base" "@prefix" ANON BLANK_NODE_LABEL IRIREF PNAME_LN PNAME_NS SPARQL_BASE SPARQL_PREFIX "[" _eps )
4
- (follow _eof)
5
- (alt _empty _turtleDoc_1))
6
- (rule _turtleDoc_1 "1.1"
7
- (first "(" "@base" "@prefix" ANON BLANK_NODE_LABEL IRIREF PNAME_LN PNAME_NS SPARQL_BASE SPARQL_PREFIX "[" )
8
- (follow _eof)
9
- (seq statement turtleDoc))
10
- (rule _turtleDoc_2 "1.2" (follow _eof) (seq turtleDoc) )
11
- (rule statement "2"
12
- (first "(" "@base" "@prefix" ANON BLANK_NODE_LABEL IRIREF PNAME_LN PNAME_NS SPARQL_BASE SPARQL_PREFIX "[" )
13
- (alt directive _statement_1))
14
- (rule _statement_1 "2.1"
15
- (first "(" ANON BLANK_NODE_LABEL IRIREF PNAME_LN PNAME_NS "[" )
16
- (seq triples "."))
17
- (rule _statement_2 "2.2" (first ".") (seq ".") )
18
- (rule directive "3"
19
- (first "@base" "@prefix" SPARQL_BASE SPARQL_PREFIX )
20
- (alt prefixID base sparqlPrefix sparqlBase ))
21
- (rule prefixID "4" (first "@prefix") (seq "@prefix" PNAME_NS IRIREF ".") )
22
- (rule _prefixID_1 "4.1" (first PNAME_NS) (seq PNAME_NS IRIREF ".") )
23
- (rule base "5" (first "@base") (seq "@base" IRIREF ".") )
24
- (rule _base_1 "5.1" (first IRIREF) (seq IRIREF ".") )
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
+ _eof
120
+ )
121
+ (alt directive _statement_1)
122
+ )
123
+ (rule
124
+ _statement_1
125
+ "2.1"
126
+ (first
127
+ "("
128
+ ANON
129
+ BLANK_NODE_LABEL
130
+ IRIREF
131
+ PNAME_LN
132
+ PNAME_NS
133
+ "["
134
+ )
135
+ (follow
136
+ "("
137
+ "@base"
138
+ "@prefix"
139
+ ANON
140
+ BLANK_NODE_LABEL
141
+ IRIREF
142
+ PNAME_LN
143
+ PNAME_NS
144
+ SPARQL_BASE
145
+ SPARQL_PREFIX
146
+ "["
147
+ _eof
148
+ )
149
+ (seq triples ".")
150
+ )
151
+ (rule
152
+ _statement_2
153
+ "2.2"
154
+ (first ".")
155
+ (follow
156
+ "("
157
+ "@base"
158
+ "@prefix"
159
+ ANON
160
+ BLANK_NODE_LABEL
161
+ IRIREF
162
+ PNAME_LN
163
+ PNAME_NS
164
+ SPARQL_BASE
165
+ SPARQL_PREFIX
166
+ "["
167
+ _eof
168
+ )
169
+ (seq ".")
170
+ )
171
+ (rule
172
+ directive
173
+ "3"
174
+ (first
175
+ "@base"
176
+ "@prefix"
177
+ SPARQL_BASE
178
+ SPARQL_PREFIX
179
+ )
180
+ (follow
181
+ "("
182
+ "@base"
183
+ "@prefix"
184
+ ANON
185
+ BLANK_NODE_LABEL
186
+ IRIREF
187
+ PNAME_LN
188
+ PNAME_NS
189
+ SPARQL_BASE
190
+ SPARQL_PREFIX
191
+ "["
192
+ _eof
193
+ )
194
+ (alt
195
+ prefixID
196
+ base
197
+ sparqlPrefix
198
+ sparqlBase
199
+ )
200
+ )
201
+ (rule
202
+ prefixID
203
+ "4"
204
+ (first "@prefix")
205
+ (follow
206
+ "("
207
+ "@base"
208
+ "@prefix"
209
+ ANON
210
+ BLANK_NODE_LABEL
211
+ IRIREF
212
+ PNAME_LN
213
+ PNAME_NS
214
+ SPARQL_BASE
215
+ SPARQL_PREFIX
216
+ "["
217
+ _eof
218
+ )
219
+ (seq "@prefix" PNAME_NS IRIREF ".")
220
+ )
221
+ (rule
222
+ _prefixID_1
223
+ "4.1"
224
+ (first PNAME_NS)
225
+ (follow
226
+ "("
227
+ "@base"
228
+ "@prefix"
229
+ ANON
230
+ BLANK_NODE_LABEL
231
+ IRIREF
232
+ PNAME_LN
233
+ PNAME_NS
234
+ SPARQL_BASE
235
+ SPARQL_PREFIX
236
+ "["
237
+ _eof
238
+ )
239
+ (seq PNAME_NS IRIREF ".")
240
+ )
241
+ (rule
242
+ base
243
+ "5"
244
+ (first "@base")
245
+ (follow
246
+ "("
247
+ "@base"
248
+ "@prefix"
249
+ ANON
250
+ BLANK_NODE_LABEL
251
+ IRIREF
252
+ PNAME_LN
253
+ PNAME_NS
254
+ SPARQL_BASE
255
+ SPARQL_PREFIX
256
+ "["
257
+ _eof
258
+ )
259
+ (seq "@base" IRIREF ".")
260
+ )
261
+ (rule
262
+ _base_1
263
+ "5.1"
264
+ (first IRIREF)
265
+ (follow
266
+ "("
267
+ "@base"
268
+ "@prefix"
269
+ ANON
270
+ BLANK_NODE_LABEL
271
+ IRIREF
272
+ PNAME_LN
273
+ PNAME_NS
274
+ SPARQL_BASE
275
+ SPARQL_PREFIX
276
+ "["
277
+ _eof
278
+ )
279
+ (seq IRIREF ".")
280
+ )
25
281
  (rule
26
282
  triples
27
283
  "6"
@@ -75,6 +331,7 @@
75
331
  (rule
76
332
  _triples_5
77
333
  "6.5"
334
+ (first IRIREF PNAME_LN PNAME_NS _eps "a")
78
335
  (follow ".")
79
336
  (seq _triples_3)
80
337
  )
@@ -93,20 +350,19 @@
93
350
  _predicateObjectList_1
94
351
  "7.1"
95
352
  (first ";" _eps)
96
- (follow "." "]")
97
353
  (alt _empty _predicateObjectList_3)
98
354
  )
99
355
  (rule
100
356
  _predicateObjectList_2
101
357
  "7.2"
102
358
  (first ";")
359
+ (follow ";")
103
360
  (seq ";" _predicateObjectList_4)
104
361
  )
105
362
  (rule
106
363
  _predicateObjectList_3
107
364
  "7.3"
108
365
  (first ";")
109
- (follow "." "]")
110
366
  (seq
111
367
  _predicateObjectList_2
112
368
  _predicateObjectList_1
@@ -116,12 +372,14 @@
116
372
  _predicateObjectList_4
117
373
  "7.4"
118
374
  (first IRIREF PNAME_LN PNAME_NS _eps "a")
375
+ (follow ";")
119
376
  (alt _empty _predicateObjectList_5)
120
377
  )
121
378
  (rule
122
379
  _predicateObjectList_5
123
380
  "7.5"
124
381
  (first IRIREF PNAME_LN PNAME_NS "a")
382
+ (follow ";")
125
383
  (seq verb objectList)
126
384
  )
127
385
  (rule
@@ -151,12 +409,14 @@
151
409
  (rule
152
410
  _predicateObjectList_7
153
411
  "7.7"
154
- (follow "." "]")
412
+ (first ";" _eps)
155
413
  (seq _predicateObjectList_1)
156
414
  )
157
415
  (rule
158
416
  _predicateObjectList_8
159
417
  "7.8"
418
+ (first IRIREF PNAME_LN PNAME_NS _eps "a")
419
+ (follow ";")
160
420
  (seq _predicateObjectList_4)
161
421
  )
162
422
  (rule
@@ -180,6 +440,7 @@
180
440
  "false"
181
441
  "true"
182
442
  )
443
+ (follow ";")
183
444
  (seq objectList)
184
445
  )
185
446
  (rule
@@ -203,34 +464,42 @@
203
464
  "false"
204
465
  "true"
205
466
  )
467
+ (follow "." ";" "]")
206
468
  (seq object _objectList_1)
207
469
  )
208
470
  (rule
209
471
  _objectList_1
210
472
  "8.1"
211
473
  (first "," _eps)
474
+ (follow "." ";" "]")
212
475
  (alt _empty _objectList_3)
213
476
  )
214
477
  (rule
215
478
  _objectList_2
216
479
  "8.2"
217
480
  (first ",")
481
+ (follow "," "." ";" "]")
218
482
  (seq "," object)
219
483
  )
220
484
  (rule
221
485
  _objectList_3
222
486
  "8.3"
223
487
  (first ",")
488
+ (follow "." ";" "]")
224
489
  (seq _objectList_2 _objectList_1)
225
490
  )
226
491
  (rule
227
492
  _objectList_4
228
493
  "8.4"
494
+ (first "," _eps)
495
+ (follow "." ";" "]")
229
496
  (seq _objectList_1)
230
497
  )
231
498
  (rule
232
499
  _objectList_5
233
500
  "8.5"
501
+ (first "," _eps)
502
+ (follow "." ";" "]")
234
503
  (seq _objectList_1)
235
504
  )
236
505
  (rule
@@ -254,6 +523,7 @@
254
523
  "false"
255
524
  "true"
256
525
  )
526
+ (follow "," "." ";" "]")
257
527
  (seq object)
258
528
  )
259
529
  (rule
@@ -339,6 +609,29 @@
339
609
  "false"
340
610
  "true"
341
611
  )
612
+ (follow
613
+ "("
614
+ ")"
615
+ ","
616
+ "."
617
+ ";"
618
+ ANON
619
+ BLANK_NODE_LABEL
620
+ DECIMAL
621
+ DOUBLE
622
+ INTEGER
623
+ IRIREF
624
+ PNAME_LN
625
+ PNAME_NS
626
+ STRING_LITERAL_LONG_QUOTE
627
+ STRING_LITERAL_LONG_SINGLE_QUOTE
628
+ STRING_LITERAL_QUOTE
629
+ STRING_LITERAL_SINGLE_QUOTE
630
+ "["
631
+ "]"
632
+ "false"
633
+ "true"
634
+ )
342
635
  (alt
343
636
  iri
344
637
  BlankNode
@@ -361,6 +654,29 @@
361
654
  "false"
362
655
  "true"
363
656
  )
657
+ (follow
658
+ "("
659
+ ")"
660
+ ","
661
+ "."
662
+ ";"
663
+ ANON
664
+ BLANK_NODE_LABEL
665
+ DECIMAL
666
+ DOUBLE
667
+ INTEGER
668
+ IRIREF
669
+ PNAME_LN
670
+ PNAME_NS
671
+ STRING_LITERAL_LONG_QUOTE
672
+ STRING_LITERAL_LONG_SINGLE_QUOTE
673
+ STRING_LITERAL_QUOTE
674
+ STRING_LITERAL_SINGLE_QUOTE
675
+ "["
676
+ "]"
677
+ "false"
678
+ "true"
679
+ )
364
680
  (alt
365
681
  RDFLiteral
366
682
  NumericLiteral
@@ -371,32 +687,12 @@
371
687
  blankNodePropertyList
372
688
  "14"
373
689
  (first "[")
374
- (seq "[" predicateObjectList "]")
375
- )
376
- (rule
377
- _blankNodePropertyList_1
378
- "14.1"
379
- (first IRIREF PNAME_LN PNAME_NS "a")
380
- (seq predicateObjectList "]")
381
- )
382
- (rule
383
- _blankNodePropertyList_2
384
- "14.2"
385
- (first "]")
386
- (seq "]")
387
- )
388
- (rule
389
- collection
390
- "15"
391
- (first "(")
392
- (follow IRIREF PNAME_LN PNAME_NS "a")
393
- (seq "(" _collection_1 ")")
394
- )
395
- (rule
396
- _collection_1
397
- "15.1"
398
- (first
690
+ (follow
399
691
  "("
692
+ ")"
693
+ ","
694
+ "."
695
+ ";"
400
696
  ANON
401
697
  BLANK_NODE_LABEL
402
698
  DECIMAL
@@ -410,18 +706,23 @@
410
706
  STRING_LITERAL_QUOTE
411
707
  STRING_LITERAL_SINGLE_QUOTE
412
708
  "["
413
- _eps
709
+ "]"
710
+ "a"
414
711
  "false"
415
712
  "true"
416
713
  )
417
- (follow ")")
418
- (alt _empty _collection_2)
714
+ (seq "[" predicateObjectList "]")
419
715
  )
420
716
  (rule
421
- _collection_2
422
- "15.2"
423
- (first
717
+ _blankNodePropertyList_1
718
+ "14.1"
719
+ (first IRIREF PNAME_LN PNAME_NS "a")
720
+ (follow
424
721
  "("
722
+ ")"
723
+ ","
724
+ "."
725
+ ";"
425
726
  ANON
426
727
  BLANK_NODE_LABEL
427
728
  DECIMAL
@@ -435,22 +736,192 @@
435
736
  STRING_LITERAL_QUOTE
436
737
  STRING_LITERAL_SINGLE_QUOTE
437
738
  "["
739
+ "]"
740
+ "a"
438
741
  "false"
439
742
  "true"
440
743
  )
441
- (follow ")")
442
- (seq object _collection_1)
744
+ (seq predicateObjectList "]")
443
745
  )
444
746
  (rule
445
- _collection_3
446
- "15.3"
447
- (first ")")
448
- (follow IRIREF PNAME_LN PNAME_NS "a")
747
+ _blankNodePropertyList_2
748
+ "14.2"
749
+ (first "]")
750
+ (follow
751
+ "("
752
+ ")"
753
+ ","
754
+ "."
755
+ ";"
756
+ ANON
757
+ BLANK_NODE_LABEL
758
+ DECIMAL
759
+ DOUBLE
760
+ INTEGER
761
+ IRIREF
762
+ PNAME_LN
763
+ PNAME_NS
764
+ STRING_LITERAL_LONG_QUOTE
765
+ STRING_LITERAL_LONG_SINGLE_QUOTE
766
+ STRING_LITERAL_QUOTE
767
+ STRING_LITERAL_SINGLE_QUOTE
768
+ "["
769
+ "]"
770
+ "a"
771
+ "false"
772
+ "true"
773
+ )
774
+ (seq "]")
775
+ )
776
+ (rule
777
+ collection
778
+ "15"
779
+ (first "(")
780
+ (follow
781
+ "("
782
+ ")"
783
+ ","
784
+ "."
785
+ ";"
786
+ ANON
787
+ BLANK_NODE_LABEL
788
+ DECIMAL
789
+ DOUBLE
790
+ INTEGER
791
+ IRIREF
792
+ PNAME_LN
793
+ PNAME_NS
794
+ STRING_LITERAL_LONG_QUOTE
795
+ STRING_LITERAL_LONG_SINGLE_QUOTE
796
+ STRING_LITERAL_QUOTE
797
+ STRING_LITERAL_SINGLE_QUOTE
798
+ "["
799
+ "]"
800
+ "a"
801
+ "false"
802
+ "true"
803
+ )
804
+ (seq "(" _collection_1 ")")
805
+ )
806
+ (rule
807
+ _collection_1
808
+ "15.1"
809
+ (first
810
+ "("
811
+ ANON
812
+ BLANK_NODE_LABEL
813
+ DECIMAL
814
+ DOUBLE
815
+ INTEGER
816
+ IRIREF
817
+ PNAME_LN
818
+ PNAME_NS
819
+ STRING_LITERAL_LONG_QUOTE
820
+ STRING_LITERAL_LONG_SINGLE_QUOTE
821
+ STRING_LITERAL_QUOTE
822
+ STRING_LITERAL_SINGLE_QUOTE
823
+ "["
824
+ _eps
825
+ "false"
826
+ "true"
827
+ )
828
+ (follow ")")
829
+ (alt _empty _collection_2)
830
+ )
831
+ (rule
832
+ _collection_2
833
+ "15.2"
834
+ (first
835
+ "("
836
+ ANON
837
+ BLANK_NODE_LABEL
838
+ DECIMAL
839
+ DOUBLE
840
+ INTEGER
841
+ IRIREF
842
+ PNAME_LN
843
+ PNAME_NS
844
+ STRING_LITERAL_LONG_QUOTE
845
+ STRING_LITERAL_LONG_SINGLE_QUOTE
846
+ STRING_LITERAL_QUOTE
847
+ STRING_LITERAL_SINGLE_QUOTE
848
+ "["
849
+ "false"
850
+ "true"
851
+ )
852
+ (follow ")")
853
+ (seq object _collection_1)
854
+ )
855
+ (rule
856
+ _collection_3
857
+ "15.3"
858
+ (first
859
+ "("
860
+ ")"
861
+ ANON
862
+ BLANK_NODE_LABEL
863
+ DECIMAL
864
+ DOUBLE
865
+ INTEGER
866
+ IRIREF
867
+ PNAME_LN
868
+ PNAME_NS
869
+ STRING_LITERAL_LONG_QUOTE
870
+ STRING_LITERAL_LONG_SINGLE_QUOTE
871
+ STRING_LITERAL_QUOTE
872
+ STRING_LITERAL_SINGLE_QUOTE
873
+ "["
874
+ "false"
875
+ "true"
876
+ )
877
+ (follow
878
+ "("
879
+ ")"
880
+ ","
881
+ "."
882
+ ";"
883
+ ANON
884
+ BLANK_NODE_LABEL
885
+ DECIMAL
886
+ DOUBLE
887
+ INTEGER
888
+ IRIREF
889
+ PNAME_LN
890
+ PNAME_NS
891
+ STRING_LITERAL_LONG_QUOTE
892
+ STRING_LITERAL_LONG_SINGLE_QUOTE
893
+ STRING_LITERAL_QUOTE
894
+ STRING_LITERAL_SINGLE_QUOTE
895
+ "["
896
+ "]"
897
+ "a"
898
+ "false"
899
+ "true"
900
+ )
449
901
  (seq _collection_1 ")")
450
902
  )
451
903
  (rule
452
904
  _collection_4
453
905
  "15.4"
906
+ (first
907
+ "("
908
+ ANON
909
+ BLANK_NODE_LABEL
910
+ DECIMAL
911
+ DOUBLE
912
+ INTEGER
913
+ IRIREF
914
+ PNAME_LN
915
+ PNAME_NS
916
+ STRING_LITERAL_LONG_QUOTE
917
+ STRING_LITERAL_LONG_SINGLE_QUOTE
918
+ STRING_LITERAL_QUOTE
919
+ STRING_LITERAL_SINGLE_QUOTE
920
+ "["
921
+ _eps
922
+ "false"
923
+ "true"
924
+ )
454
925
  (follow ")")
455
926
  (seq _collection_1)
456
927
  )
@@ -458,13 +929,59 @@
458
929
  _collection_5
459
930
  "15.5"
460
931
  (first ")")
461
- (follow IRIREF PNAME_LN PNAME_NS "a")
932
+ (follow
933
+ "("
934
+ ")"
935
+ ","
936
+ "."
937
+ ";"
938
+ ANON
939
+ BLANK_NODE_LABEL
940
+ DECIMAL
941
+ DOUBLE
942
+ INTEGER
943
+ IRIREF
944
+ PNAME_LN
945
+ PNAME_NS
946
+ STRING_LITERAL_LONG_QUOTE
947
+ STRING_LITERAL_LONG_SINGLE_QUOTE
948
+ STRING_LITERAL_QUOTE
949
+ STRING_LITERAL_SINGLE_QUOTE
950
+ "["
951
+ "]"
952
+ "a"
953
+ "false"
954
+ "true"
955
+ )
462
956
  (seq ")")
463
957
  )
464
958
  (rule
465
959
  NumericLiteral
466
960
  "16"
467
961
  (first DECIMAL DOUBLE INTEGER)
962
+ (follow
963
+ "("
964
+ ")"
965
+ ","
966
+ "."
967
+ ";"
968
+ ANON
969
+ BLANK_NODE_LABEL
970
+ DECIMAL
971
+ DOUBLE
972
+ INTEGER
973
+ IRIREF
974
+ PNAME_LN
975
+ PNAME_NS
976
+ STRING_LITERAL_LONG_QUOTE
977
+ STRING_LITERAL_LONG_SINGLE_QUOTE
978
+ STRING_LITERAL_QUOTE
979
+ STRING_LITERAL_SINGLE_QUOTE
980
+ "["
981
+ "]"
982
+ "false"
983
+ "true"
984
+ )
468
985
  (alt INTEGER DECIMAL DOUBLE)
469
986
  )
470
987
  (rule
@@ -476,6 +993,31 @@
476
993
  STRING_LITERAL_QUOTE
477
994
  STRING_LITERAL_SINGLE_QUOTE
478
995
  )
996
+ (follow
997
+ "("
998
+ ")"
999
+ ","
1000
+ "."
1001
+ ";"
1002
+ ANON
1003
+ BLANK_NODE_LABEL
1004
+ DECIMAL
1005
+ DOUBLE
1006
+ INTEGER
1007
+ IRIREF
1008
+ LANGTAG
1009
+ PNAME_LN
1010
+ PNAME_NS
1011
+ STRING_LITERAL_LONG_QUOTE
1012
+ STRING_LITERAL_LONG_SINGLE_QUOTE
1013
+ STRING_LITERAL_QUOTE
1014
+ STRING_LITERAL_SINGLE_QUOTE
1015
+ "["
1016
+ "]"
1017
+ "^^"
1018
+ "false"
1019
+ "true"
1020
+ )
479
1021
  (alt
480
1022
  STRING_LITERAL_QUOTE
481
1023
  STRING_LITERAL_SINGLE_QUOTE
@@ -600,12 +1142,40 @@
600
1142
  sparqlPrefix
601
1143
  "28s"
602
1144
  (first SPARQL_PREFIX)
1145
+ (follow
1146
+ "("
1147
+ "@base"
1148
+ "@prefix"
1149
+ ANON
1150
+ BLANK_NODE_LABEL
1151
+ IRIREF
1152
+ PNAME_LN
1153
+ PNAME_NS
1154
+ SPARQL_BASE
1155
+ SPARQL_PREFIX
1156
+ "["
1157
+ _eof
1158
+ )
603
1159
  (seq SPARQL_PREFIX PNAME_NS IRIREF)
604
1160
  )
605
1161
  (rule
606
1162
  _sparqlPrefix_1
607
1163
  "28s.1"
608
1164
  (first PNAME_NS)
1165
+ (follow
1166
+ "("
1167
+ "@base"
1168
+ "@prefix"
1169
+ ANON
1170
+ BLANK_NODE_LABEL
1171
+ IRIREF
1172
+ PNAME_LN
1173
+ PNAME_NS
1174
+ SPARQL_BASE
1175
+ SPARQL_PREFIX
1176
+ "["
1177
+ _eof
1178
+ )
609
1179
  (seq PNAME_NS IRIREF)
610
1180
  )
611
1181
  (terminal
@@ -624,12 +1194,40 @@
624
1194
  sparqlBase
625
1195
  "29s"
626
1196
  (first SPARQL_BASE)
1197
+ (follow
1198
+ "("
1199
+ "@base"
1200
+ "@prefix"
1201
+ ANON
1202
+ BLANK_NODE_LABEL
1203
+ IRIREF
1204
+ PNAME_LN
1205
+ PNAME_NS
1206
+ SPARQL_BASE
1207
+ SPARQL_PREFIX
1208
+ "["
1209
+ _eof
1210
+ )
627
1211
  (seq SPARQL_BASE IRIREF)
628
1212
  )
629
1213
  (rule
630
1214
  _sparqlBase_1
631
1215
  "29s.1"
632
1216
  (first IRIREF)
1217
+ (follow
1218
+ "("
1219
+ "@base"
1220
+ "@prefix"
1221
+ ANON
1222
+ BLANK_NODE_LABEL
1223
+ IRIREF
1224
+ PNAME_LN
1225
+ PNAME_NS
1226
+ SPARQL_BASE
1227
+ SPARQL_PREFIX
1228
+ "["
1229
+ _eof
1230
+ )
633
1231
  (seq IRIREF)
634
1232
  )
635
1233
  (terminal
@@ -651,35 +1249,174 @@
651
1249
  STRING_LITERAL_QUOTE
652
1250
  STRING_LITERAL_SINGLE_QUOTE
653
1251
  )
1252
+ (follow
1253
+ "("
1254
+ ")"
1255
+ ","
1256
+ "."
1257
+ ";"
1258
+ ANON
1259
+ BLANK_NODE_LABEL
1260
+ DECIMAL
1261
+ DOUBLE
1262
+ INTEGER
1263
+ IRIREF
1264
+ PNAME_LN
1265
+ PNAME_NS
1266
+ STRING_LITERAL_LONG_QUOTE
1267
+ STRING_LITERAL_LONG_SINGLE_QUOTE
1268
+ STRING_LITERAL_QUOTE
1269
+ STRING_LITERAL_SINGLE_QUOTE
1270
+ "["
1271
+ "]"
1272
+ "false"
1273
+ "true"
1274
+ )
654
1275
  (seq String _RDFLiteral_1)
655
1276
  )
656
1277
  (rule
657
1278
  _RDFLiteral_1
658
1279
  "128s.1"
659
1280
  (first LANGTAG "^^" _eps)
1281
+ (follow
1282
+ "("
1283
+ ")"
1284
+ ","
1285
+ "."
1286
+ ";"
1287
+ ANON
1288
+ BLANK_NODE_LABEL
1289
+ DECIMAL
1290
+ DOUBLE
1291
+ INTEGER
1292
+ IRIREF
1293
+ PNAME_LN
1294
+ PNAME_NS
1295
+ STRING_LITERAL_LONG_QUOTE
1296
+ STRING_LITERAL_LONG_SINGLE_QUOTE
1297
+ STRING_LITERAL_QUOTE
1298
+ STRING_LITERAL_SINGLE_QUOTE
1299
+ "["
1300
+ "]"
1301
+ "false"
1302
+ "true"
1303
+ )
660
1304
  (alt _empty _RDFLiteral_2)
661
1305
  )
662
1306
  (rule
663
1307
  _RDFLiteral_2
664
1308
  "128s.2"
665
1309
  (first LANGTAG "^^")
1310
+ (follow
1311
+ "("
1312
+ ")"
1313
+ ","
1314
+ "."
1315
+ ";"
1316
+ ANON
1317
+ BLANK_NODE_LABEL
1318
+ DECIMAL
1319
+ DOUBLE
1320
+ INTEGER
1321
+ IRIREF
1322
+ PNAME_LN
1323
+ PNAME_NS
1324
+ STRING_LITERAL_LONG_QUOTE
1325
+ STRING_LITERAL_LONG_SINGLE_QUOTE
1326
+ STRING_LITERAL_QUOTE
1327
+ STRING_LITERAL_SINGLE_QUOTE
1328
+ "["
1329
+ "]"
1330
+ "false"
1331
+ "true"
1332
+ )
666
1333
  (alt LANGTAG _RDFLiteral_3)
667
1334
  )
668
1335
  (rule
669
1336
  _RDFLiteral_3
670
1337
  "128s.3"
671
1338
  (first "^^")
1339
+ (follow
1340
+ "("
1341
+ ")"
1342
+ ","
1343
+ "."
1344
+ ";"
1345
+ ANON
1346
+ BLANK_NODE_LABEL
1347
+ DECIMAL
1348
+ DOUBLE
1349
+ INTEGER
1350
+ IRIREF
1351
+ PNAME_LN
1352
+ PNAME_NS
1353
+ STRING_LITERAL_LONG_QUOTE
1354
+ STRING_LITERAL_LONG_SINGLE_QUOTE
1355
+ STRING_LITERAL_QUOTE
1356
+ STRING_LITERAL_SINGLE_QUOTE
1357
+ "["
1358
+ "]"
1359
+ "false"
1360
+ "true"
1361
+ )
672
1362
  (seq "^^" iri)
673
1363
  )
674
1364
  (rule
675
1365
  _RDFLiteral_4
676
1366
  "128s.4"
1367
+ (first LANGTAG "^^" _eps)
1368
+ (follow
1369
+ "("
1370
+ ")"
1371
+ ","
1372
+ "."
1373
+ ";"
1374
+ ANON
1375
+ BLANK_NODE_LABEL
1376
+ DECIMAL
1377
+ DOUBLE
1378
+ INTEGER
1379
+ IRIREF
1380
+ PNAME_LN
1381
+ PNAME_NS
1382
+ STRING_LITERAL_LONG_QUOTE
1383
+ STRING_LITERAL_LONG_SINGLE_QUOTE
1384
+ STRING_LITERAL_QUOTE
1385
+ STRING_LITERAL_SINGLE_QUOTE
1386
+ "["
1387
+ "]"
1388
+ "false"
1389
+ "true"
1390
+ )
677
1391
  (seq _RDFLiteral_1)
678
1392
  )
679
1393
  (rule
680
1394
  BooleanLiteral
681
1395
  "133s"
682
1396
  (first "false" "true")
1397
+ (follow
1398
+ "("
1399
+ ")"
1400
+ ","
1401
+ "."
1402
+ ";"
1403
+ ANON
1404
+ BLANK_NODE_LABEL
1405
+ DECIMAL
1406
+ DOUBLE
1407
+ INTEGER
1408
+ IRIREF
1409
+ PNAME_LN
1410
+ PNAME_NS
1411
+ STRING_LITERAL_LONG_QUOTE
1412
+ STRING_LITERAL_LONG_SINGLE_QUOTE
1413
+ STRING_LITERAL_QUOTE
1414
+ STRING_LITERAL_SINGLE_QUOTE
1415
+ "["
1416
+ "]"
1417
+ "false"
1418
+ "true"
1419
+ )
683
1420
  (alt "true" "false")
684
1421
  )
685
1422
  (rule
@@ -688,6 +1425,10 @@
688
1425
  (first IRIREF PNAME_LN PNAME_NS)
689
1426
  (follow
690
1427
  "("
1428
+ ")"
1429
+ ","
1430
+ "."
1431
+ ";"
691
1432
  ANON
692
1433
  BLANK_NODE_LABEL
693
1434
  DECIMAL
@@ -701,6 +1442,7 @@
701
1442
  STRING_LITERAL_QUOTE
702
1443
  STRING_LITERAL_SINGLE_QUOTE
703
1444
  "["
1445
+ "]"
704
1446
  "a"
705
1447
  "false"
706
1448
  "true"
@@ -713,6 +1455,10 @@
713
1455
  (first PNAME_LN PNAME_NS)
714
1456
  (follow
715
1457
  "("
1458
+ ")"
1459
+ ","
1460
+ "."
1461
+ ";"
716
1462
  ANON
717
1463
  BLANK_NODE_LABEL
718
1464
  DECIMAL
@@ -726,6 +1472,7 @@
726
1472
  STRING_LITERAL_QUOTE
727
1473
  STRING_LITERAL_SINGLE_QUOTE
728
1474
  "["
1475
+ "]"
729
1476
  "a"
730
1477
  "false"
731
1478
  "true"
@@ -736,7 +1483,30 @@
736
1483
  BlankNode
737
1484
  "137s"
738
1485
  (first ANON BLANK_NODE_LABEL)
739
- (follow IRIREF PNAME_LN PNAME_NS "a")
1486
+ (follow
1487
+ "("
1488
+ ")"
1489
+ ","
1490
+ "."
1491
+ ";"
1492
+ ANON
1493
+ BLANK_NODE_LABEL
1494
+ DECIMAL
1495
+ DOUBLE
1496
+ INTEGER
1497
+ IRIREF
1498
+ PNAME_LN
1499
+ PNAME_NS
1500
+ STRING_LITERAL_LONG_QUOTE
1501
+ STRING_LITERAL_LONG_SINGLE_QUOTE
1502
+ STRING_LITERAL_QUOTE
1503
+ STRING_LITERAL_SINGLE_QUOTE
1504
+ "["
1505
+ "]"
1506
+ "a"
1507
+ "false"
1508
+ "true"
1509
+ )
740
1510
  (alt BLANK_NODE_LABEL ANON)
741
1511
  )
742
1512
  (terminal