bel_parser 1.0.0.alpha.44-java → 1.0.0.alpha.45-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/bin/bel2_validator +68 -12
- data/bin/bel_script_reader +56 -25
- data/lib/bel/translator/plugins/bel_script/reader.rb +2 -1
- data/lib/bel_parser/expression/validator.rb +7 -8
- data/lib/bel_parser/language/apply_namespace_encoding.rb +20 -23
- data/lib/bel_parser/language/expression_validator.rb +2 -2
- data/lib/bel_parser/parsers/ast/node.rb +35 -0
- data/lib/bel_parser/parsers/bel_script/define_annotation.rb +964 -808
- data/lib/bel_parser/parsers/bel_script/define_annotation.rl +24 -4
- data/lib/bel_parser/parsers/bel_script/define_namespace.rb +336 -300
- data/lib/bel_parser/parsers/bel_script/define_namespace.rl +15 -3
- data/lib/bel_parser/parsers/common/common.rl +1 -0
- data/lib/bel_parser/resource/resource_url_reader.rb +2 -2
- data/lib/bel_parser/resource.rb +50 -3
- data/lib/bel_parser/script/apply_resource_uri.rb +30 -0
- data/lib/bel_parser/script/nanopub_mapper.rb +9 -5
- data/lib/bel_parser/script/state/annotation_definition.rb +24 -9
- data/lib/bel_parser/script/state/namespace_definition.rb +22 -8
- data/lib/bel_parser/script/syntax/expression_validation.rb +6 -5
- data/lib/bel_parser/script/syntax/undefined_annotation_value.rb +14 -9
- data/lib/bel_parser/script/syntax/unresolvable_namespace.rb +14 -7
- metadata +2 -1
@@ -16,13 +16,13 @@ self._bel_trans_keys = [
|
|
16
16
|
69, 101, 9, 32, 9, 122,
|
17
17
|
9, 122, 9, 97, 83,
|
18
18
|
115, 9, 32, 9, 117,
|
19
|
-
82, 114,
|
19
|
+
82, 114, 73, 108, 9, 32,
|
20
20
|
9, 34, 34, 92, 34,
|
21
21
|
92, 10, 10, 0, 0,
|
22
|
-
48, 122, 9, 34,
|
23
|
-
34, 92,
|
24
|
-
0,
|
25
|
-
0, 0, 0
|
22
|
+
9, 32, 48, 122, 9, 34,
|
23
|
+
34, 92, 34, 92, 0,
|
24
|
+
0, 0, 0, 10, 122,
|
25
|
+
0, 0, 0, 0, 0
|
26
26
|
]
|
27
27
|
|
28
28
|
class << self
|
@@ -33,9 +33,9 @@ self._bel_key_spans = [
|
|
33
33
|
0, 33, 33, 33, 33, 33, 33, 24,
|
34
34
|
102, 33, 33, 33, 33, 33, 33, 33,
|
35
35
|
33, 24, 114, 114, 89, 33, 24, 109,
|
36
|
-
33,
|
37
|
-
75, 26, 59, 59, 0, 0, 113,
|
38
|
-
0
|
36
|
+
33, 36, 24, 26, 59, 59, 1, 0,
|
37
|
+
24, 75, 26, 59, 59, 0, 0, 113,
|
38
|
+
0, 0
|
39
39
|
]
|
40
40
|
|
41
41
|
class << self
|
@@ -46,9 +46,9 @@ self._bel_index_offsets = [
|
|
46
46
|
0, 0, 34, 68, 102, 136, 170, 204,
|
47
47
|
229, 332, 366, 400, 434, 468, 502, 536,
|
48
48
|
570, 604, 629, 744, 859, 949, 983, 1008,
|
49
|
-
1118, 1152,
|
50
|
-
|
51
|
-
|
49
|
+
1118, 1152, 1189, 1214, 1241, 1301, 1361, 1363,
|
50
|
+
1364, 1389, 1465, 1492, 1552, 1612, 1613, 1614,
|
51
|
+
1728, 1729
|
52
52
|
]
|
53
53
|
|
54
54
|
class << self
|
@@ -200,75 +200,79 @@ self._bel_indicies = [
|
|
200
200
|
1, 1, 1, 1, 1, 1, 1, 1,
|
201
201
|
1, 1, 1, 1, 1, 1, 1, 1,
|
202
202
|
1, 1, 1, 1, 1, 1, 27, 1,
|
203
|
-
28, 1, 1,
|
204
|
-
1, 1, 1, 1, 1, 1, 1, 1,
|
205
|
-
1, 1, 1, 1, 1, 1, 1, 1,
|
206
|
-
1, 1, 1, 1, 1, 1, 1, 1,
|
207
|
-
28, 1,
|
208
|
-
1, 1, 1, 1, 1, 1, 1, 1,
|
209
|
-
1, 1, 1, 1, 1, 1, 1, 1,
|
210
|
-
1,
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
1, 1,
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
42, 42,
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
44,
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
50, 50, 50, 50, 50, 50, 50, 50,
|
203
|
+
28, 1, 1, 29, 1, 1, 1, 1,
|
204
|
+
1, 1, 1, 1, 1, 1, 1, 1,
|
205
|
+
1, 1, 1, 1, 1, 1, 1, 1,
|
206
|
+
1, 1, 1, 1, 1, 1, 1, 1,
|
207
|
+
28, 1, 1, 29, 1, 30, 1, 1,
|
208
|
+
1, 1, 1, 1, 1, 1, 1, 1,
|
209
|
+
1, 1, 1, 1, 1, 1, 1, 1,
|
210
|
+
1, 1, 1, 1, 30, 1, 32, 32,
|
211
|
+
32, 32, 32, 31, 31, 31, 31, 31,
|
212
|
+
31, 31, 31, 31, 31, 31, 31, 31,
|
213
|
+
31, 31, 31, 31, 31, 32, 31, 33,
|
214
|
+
31, 35, 34, 34, 34, 34, 34, 34,
|
215
|
+
34, 34, 34, 34, 34, 34, 34, 34,
|
216
|
+
34, 34, 34, 34, 34, 34, 34, 34,
|
217
|
+
34, 34, 34, 34, 34, 34, 34, 34,
|
218
|
+
34, 34, 34, 34, 34, 34, 34, 34,
|
219
|
+
34, 34, 34, 34, 34, 34, 34, 34,
|
220
|
+
34, 34, 34, 34, 34, 34, 34, 34,
|
221
|
+
34, 34, 34, 36, 34, 38, 37, 37,
|
222
|
+
37, 37, 37, 37, 37, 37, 37, 37,
|
223
|
+
37, 37, 37, 37, 37, 37, 37, 37,
|
224
|
+
37, 37, 37, 37, 37, 37, 37, 37,
|
225
|
+
37, 37, 37, 37, 37, 37, 37, 37,
|
226
|
+
37, 37, 37, 37, 37, 37, 37, 37,
|
227
|
+
37, 37, 37, 37, 37, 37, 37, 37,
|
228
|
+
37, 37, 37, 37, 37, 37, 37, 39,
|
229
|
+
37, 40, 31, 37, 41, 1, 1, 1,
|
230
|
+
1, 1, 1, 1, 1, 1, 1, 1,
|
231
|
+
1, 1, 1, 1, 1, 1, 1, 1,
|
232
|
+
1, 1, 1, 41, 1, 42, 42, 42,
|
233
|
+
42, 42, 42, 42, 42, 42, 42, 1,
|
234
|
+
1, 1, 1, 1, 1, 1, 42, 42,
|
235
|
+
42, 42, 42, 42, 42, 42, 42, 42,
|
236
|
+
42, 42, 42, 42, 42, 42, 42, 42,
|
237
|
+
42, 42, 42, 42, 42, 42, 42, 42,
|
238
|
+
1, 1, 1, 1, 42, 1, 42, 42,
|
239
|
+
42, 42, 42, 42, 42, 42, 42, 42,
|
240
|
+
42, 42, 42, 42, 42, 42, 42, 42,
|
241
|
+
42, 42, 42, 42, 42, 42, 42, 42,
|
242
|
+
1, 44, 44, 44, 44, 44, 43, 43,
|
243
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
244
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
245
|
+
44, 43, 45, 43, 47, 46, 46, 46,
|
246
|
+
46, 46, 46, 46, 46, 46, 46, 46,
|
247
|
+
46, 46, 46, 46, 46, 46, 46, 46,
|
248
|
+
46, 46, 46, 46, 46, 46, 46, 46,
|
249
|
+
46, 46, 46, 46, 46, 46, 46, 46,
|
250
|
+
46, 46, 46, 46, 46, 46, 46, 46,
|
251
|
+
46, 46, 46, 46, 46, 46, 46, 46,
|
252
|
+
46, 46, 46, 46, 46, 46, 48, 46,
|
253
|
+
50, 49, 49, 49, 49, 49, 49, 49,
|
254
|
+
49, 49, 49, 49, 49, 49, 49, 49,
|
255
|
+
49, 49, 49, 49, 49, 49, 49, 49,
|
256
|
+
49, 49, 49, 49, 49, 49, 49, 49,
|
257
|
+
49, 49, 49, 49, 49, 49, 49, 49,
|
258
|
+
49, 49, 49, 49, 49, 49, 49, 49,
|
259
|
+
49, 49, 49, 49, 49, 49, 49, 49,
|
260
|
+
49, 49, 51, 49, 49, 1, 53, 52,
|
262
261
|
52, 52, 52, 52, 52, 52, 52, 52,
|
263
|
-
52, 52, 50, 50, 50, 50, 50, 50,
|
264
|
-
50, 52, 52, 52, 52, 52, 52, 52,
|
265
262
|
52, 52, 52, 52, 52, 52, 52, 52,
|
266
263
|
52, 52, 52, 52, 52, 52, 52, 52,
|
267
|
-
52, 52, 52, 50, 50, 50, 50, 52,
|
268
|
-
50, 52, 52, 52, 52, 52, 52, 52,
|
269
264
|
52, 52, 52, 52, 52, 52, 52, 52,
|
270
|
-
52, 52, 52, 52,
|
271
|
-
|
265
|
+
52, 52, 52, 52, 54, 54, 54, 54,
|
266
|
+
54, 54, 54, 54, 54, 54, 52, 52,
|
267
|
+
52, 52, 52, 52, 52, 54, 54, 54,
|
268
|
+
54, 54, 54, 54, 54, 54, 54, 54,
|
269
|
+
54, 54, 54, 54, 54, 54, 54, 54,
|
270
|
+
54, 54, 54, 54, 54, 54, 54, 52,
|
271
|
+
52, 52, 52, 54, 52, 54, 54, 54,
|
272
|
+
54, 54, 54, 54, 54, 54, 54, 54,
|
273
|
+
54, 54, 54, 54, 54, 54, 54, 54,
|
274
|
+
54, 54, 54, 54, 54, 54, 54, 52,
|
275
|
+
52, 43, 0
|
272
276
|
]
|
273
277
|
|
274
278
|
class << self
|
@@ -279,10 +283,10 @@ self._bel_trans_targs = [
|
|
279
283
|
2, 0, 3, 4, 5, 6, 7, 8,
|
280
284
|
9, 10, 11, 12, 13, 14, 15, 16,
|
281
285
|
17, 18, 0, 19, 20, 19, 20, 21,
|
282
|
-
22, 23, 24, 25, 26, 27, 0,
|
283
|
-
28, 29, 30, 31, 29, 30, 31,
|
284
|
-
38,
|
285
|
-
|
286
|
+
22, 23, 24, 25, 26, 32, 27, 0,
|
287
|
+
27, 28, 29, 30, 31, 29, 30, 31,
|
288
|
+
38, 27, 39, 0, 34, 35, 36, 41,
|
289
|
+
37, 36, 41, 37, 0, 40, 39
|
286
290
|
]
|
287
291
|
|
288
292
|
class << self
|
@@ -293,10 +297,10 @@ self._bel_trans_actions = [
|
|
293
297
|
0, 0, 0, 0, 0, 0, 0, 0,
|
294
298
|
0, 0, 0, 0, 0, 0, 0, 0,
|
295
299
|
0, 0, 2, 3, 4, 0, 0, 0,
|
296
|
-
0, 0, 0, 0, 0, 5, 7,
|
297
|
-
0, 9, 10, 9, 0, 11, 0,
|
298
|
-
|
299
|
-
|
300
|
+
0, 0, 0, 0, 0, 0, 5, 7,
|
301
|
+
0, 0, 9, 10, 9, 0, 11, 0,
|
302
|
+
12, 13, 3, 15, 0, 0, 9, 17,
|
303
|
+
9, 0, 18, 0, 20, 21, 0
|
300
304
|
]
|
301
305
|
|
302
306
|
class << self
|
@@ -308,8 +312,8 @@ self._bel_eof_actions = [
|
|
308
312
|
0, 0, 0, 0, 0, 0, 0, 0,
|
309
313
|
0, 0, 1, 1, 0, 0, 0, 0,
|
310
314
|
0, 0, 0, 6, 8, 8, 7, 8,
|
311
|
-
0,
|
312
|
-
0
|
315
|
+
0, 0, 14, 16, 16, 16, 0, 19,
|
316
|
+
22, 0
|
313
317
|
]
|
314
318
|
|
315
319
|
class << self
|
@@ -319,7 +323,7 @@ self.bel_start = 1;
|
|
319
323
|
class << self
|
320
324
|
attr_accessor :bel_first_final
|
321
325
|
end
|
322
|
-
self.bel_first_final =
|
326
|
+
self.bel_first_final = 38;
|
323
327
|
class << self
|
324
328
|
attr_accessor :bel_error
|
325
329
|
end
|
@@ -328,11 +332,11 @@ self.bel_error = 0;
|
|
328
332
|
class << self
|
329
333
|
attr_accessor :bel_en_ident_node
|
330
334
|
end
|
331
|
-
self.bel_en_ident_node =
|
335
|
+
self.bel_en_ident_node = 33;
|
332
336
|
class << self
|
333
337
|
attr_accessor :bel_en_string_node
|
334
338
|
end
|
335
|
-
self.bel_en_string_node =
|
339
|
+
self.bel_en_string_node = 34;
|
336
340
|
class << self
|
337
341
|
attr_accessor :bel_en_define_namespace_node
|
338
342
|
end
|
@@ -388,7 +392,7 @@ begin
|
|
388
392
|
@identifier_started = true
|
389
393
|
id_start = p;
|
390
394
|
end
|
391
|
-
when
|
395
|
+
when 21 then
|
392
396
|
begin
|
393
397
|
|
394
398
|
trace('IDENTIFIER end_identifier')
|
@@ -407,7 +411,7 @@ begin
|
|
407
411
|
ast_node = identifier(utf8_string(chars), complete: false)
|
408
412
|
@buffers[:ident] = ast_node
|
409
413
|
end
|
410
|
-
when
|
414
|
+
when 20 then
|
411
415
|
begin
|
412
416
|
|
413
417
|
trace('IDENTIFIER ident_node_err')
|
@@ -432,7 +436,7 @@ begin
|
|
432
436
|
ast_node = string(utf8_string(chars), complete: false)
|
433
437
|
@buffers[:string] = ast_node
|
434
438
|
end
|
435
|
-
when
|
439
|
+
when 15 then
|
436
440
|
begin
|
437
441
|
|
438
442
|
trace('STRING string_node_err')
|
@@ -444,8 +448,14 @@ begin
|
|
444
448
|
when 5 then
|
445
449
|
begin
|
446
450
|
|
451
|
+
trace('DEFINE_NAMESPACE add_uri_domain')
|
452
|
+
@buffers[:namespace_definition_domain] = uri()
|
453
|
+
end
|
454
|
+
when 13 then
|
455
|
+
begin
|
456
|
+
|
447
457
|
trace('DEFINE_NAMESPACE add_url_domain')
|
448
|
-
@
|
458
|
+
@buffers[:namespace_definition_domain] = url()
|
449
459
|
end
|
450
460
|
when 4 then
|
451
461
|
begin
|
@@ -499,7 +509,7 @@ begin
|
|
499
509
|
ast_node = string(utf8_string(chars), complete: true)
|
500
510
|
@buffers[:string] = ast_node
|
501
511
|
end
|
502
|
-
when
|
512
|
+
when 18 then
|
503
513
|
begin
|
504
514
|
|
505
515
|
trace('STRING stop_string')
|
@@ -524,7 +534,9 @@ begin
|
|
524
534
|
|
525
535
|
trace('DEFINE_NAMESPACE add_string_value')
|
526
536
|
string_node = @buffers.delete(:string)
|
527
|
-
|
537
|
+
domain = @buffers.delete(:namespace_definition_domain)
|
538
|
+
domain <<= string_node
|
539
|
+
leaf = domain(domain)
|
528
540
|
leaf.complete = string_node.complete
|
529
541
|
@buffers[:namespace_definition_domain] = leaf
|
530
542
|
end
|
@@ -548,7 +560,7 @@ begin
|
|
548
560
|
trace('DEFINE_NAMESPACE yield_define_namespace')
|
549
561
|
yield @buffers[:namespace_definition]
|
550
562
|
end
|
551
|
-
when
|
563
|
+
when 17 then
|
552
564
|
begin
|
553
565
|
|
554
566
|
trace('STRING start_string')
|
@@ -591,7 +603,7 @@ begin
|
|
591
603
|
if _goto_level <= _test_eof
|
592
604
|
if p == eof
|
593
605
|
case _bel_eof_actions[cs]
|
594
|
-
when
|
606
|
+
when 22 then
|
595
607
|
begin
|
596
608
|
|
597
609
|
trace('IDENTIFIER yield_identifier')
|
@@ -606,7 +618,7 @@ begin
|
|
606
618
|
ast_node = string(utf8_string(chars), complete: false)
|
607
619
|
@buffers[:string] = ast_node
|
608
620
|
end
|
609
|
-
when
|
621
|
+
when 19 then
|
610
622
|
begin
|
611
623
|
|
612
624
|
trace('IDENTIFIER end_identifier')
|
@@ -665,7 +677,7 @@ begin
|
|
665
677
|
namespace_definition_node.complete = domain_node.complete
|
666
678
|
yield namespace_definition_node
|
667
679
|
end
|
668
|
-
when
|
680
|
+
when 14 then
|
669
681
|
begin
|
670
682
|
|
671
683
|
trace('STRING string_node_err')
|
@@ -711,7 +723,7 @@ begin
|
|
711
723
|
namespace_definition_node.complete = domain_node.complete
|
712
724
|
yield namespace_definition_node
|
713
725
|
end
|
714
|
-
when
|
726
|
+
when 16 then
|
715
727
|
begin
|
716
728
|
|
717
729
|
trace('STRING eof_string')
|
@@ -757,13 +769,13 @@ self._bel_trans_keys = [
|
|
757
769
|
69, 101, 9, 32, 9, 122,
|
758
770
|
9, 122, 9, 97, 83,
|
759
771
|
115, 9, 32, 9, 117,
|
760
|
-
82, 114,
|
772
|
+
82, 114, 73, 108, 9, 32,
|
761
773
|
9, 34, 34, 92, 34,
|
762
774
|
92, 10, 10, 0, 0,
|
763
|
-
48, 122, 9, 34,
|
764
|
-
34, 92,
|
765
|
-
0,
|
766
|
-
0, 0, 0
|
775
|
+
9, 32, 48, 122, 9, 34,
|
776
|
+
34, 92, 34, 92, 0,
|
777
|
+
0, 0, 0, 10, 122,
|
778
|
+
0, 0, 0, 0, 0
|
767
779
|
]
|
768
780
|
|
769
781
|
class << self
|
@@ -774,9 +786,9 @@ self._bel_key_spans = [
|
|
774
786
|
0, 33, 33, 33, 33, 33, 33, 24,
|
775
787
|
102, 33, 33, 33, 33, 33, 33, 33,
|
776
788
|
33, 24, 114, 114, 89, 33, 24, 109,
|
777
|
-
33,
|
778
|
-
75, 26, 59, 59, 0, 0, 113,
|
779
|
-
0
|
789
|
+
33, 36, 24, 26, 59, 59, 1, 0,
|
790
|
+
24, 75, 26, 59, 59, 0, 0, 113,
|
791
|
+
0, 0
|
780
792
|
]
|
781
793
|
|
782
794
|
class << self
|
@@ -787,9 +799,9 @@ self._bel_index_offsets = [
|
|
787
799
|
0, 0, 34, 68, 102, 136, 170, 204,
|
788
800
|
229, 332, 366, 400, 434, 468, 502, 536,
|
789
801
|
570, 604, 629, 744, 859, 949, 983, 1008,
|
790
|
-
1118, 1152,
|
791
|
-
|
792
|
-
|
802
|
+
1118, 1152, 1189, 1214, 1241, 1301, 1361, 1363,
|
803
|
+
1364, 1389, 1465, 1492, 1552, 1612, 1613, 1614,
|
804
|
+
1728, 1729
|
793
805
|
]
|
794
806
|
|
795
807
|
class << self
|
@@ -941,75 +953,79 @@ self._bel_indicies = [
|
|
941
953
|
1, 1, 1, 1, 1, 1, 1, 1,
|
942
954
|
1, 1, 1, 1, 1, 1, 1, 1,
|
943
955
|
1, 1, 1, 1, 1, 1, 27, 1,
|
944
|
-
28, 1, 1,
|
945
|
-
1, 1, 1, 1, 1, 1, 1, 1,
|
946
|
-
1, 1, 1, 1, 1, 1, 1, 1,
|
947
|
-
1, 1, 1, 1, 1, 1, 1, 1,
|
948
|
-
28, 1,
|
949
|
-
1, 1, 1, 1, 1, 1, 1, 1,
|
950
|
-
1, 1, 1, 1, 1, 1, 1, 1,
|
951
|
-
1,
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
|
962
|
-
|
963
|
-
|
964
|
-
|
965
|
-
|
966
|
-
|
967
|
-
|
968
|
-
|
969
|
-
|
970
|
-
|
971
|
-
|
972
|
-
1, 1,
|
973
|
-
|
974
|
-
|
975
|
-
|
976
|
-
|
977
|
-
|
978
|
-
|
979
|
-
|
980
|
-
42, 42,
|
981
|
-
|
982
|
-
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
44,
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
|
996
|
-
|
997
|
-
|
998
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
50, 50, 50, 50, 50, 50, 50, 50,
|
1003
|
-
52, 52, 52, 52, 52, 52, 52, 52,
|
1004
|
-
52, 52, 50, 50, 50, 50, 50, 50,
|
1005
|
-
50, 52, 52, 52, 52, 52, 52, 52,
|
956
|
+
28, 1, 1, 29, 1, 1, 1, 1,
|
957
|
+
1, 1, 1, 1, 1, 1, 1, 1,
|
958
|
+
1, 1, 1, 1, 1, 1, 1, 1,
|
959
|
+
1, 1, 1, 1, 1, 1, 1, 1,
|
960
|
+
28, 1, 1, 29, 1, 30, 1, 1,
|
961
|
+
1, 1, 1, 1, 1, 1, 1, 1,
|
962
|
+
1, 1, 1, 1, 1, 1, 1, 1,
|
963
|
+
1, 1, 1, 1, 30, 1, 32, 32,
|
964
|
+
32, 32, 32, 31, 31, 31, 31, 31,
|
965
|
+
31, 31, 31, 31, 31, 31, 31, 31,
|
966
|
+
31, 31, 31, 31, 31, 32, 31, 33,
|
967
|
+
31, 35, 34, 34, 34, 34, 34, 34,
|
968
|
+
34, 34, 34, 34, 34, 34, 34, 34,
|
969
|
+
34, 34, 34, 34, 34, 34, 34, 34,
|
970
|
+
34, 34, 34, 34, 34, 34, 34, 34,
|
971
|
+
34, 34, 34, 34, 34, 34, 34, 34,
|
972
|
+
34, 34, 34, 34, 34, 34, 34, 34,
|
973
|
+
34, 34, 34, 34, 34, 34, 34, 34,
|
974
|
+
34, 34, 34, 36, 34, 38, 37, 37,
|
975
|
+
37, 37, 37, 37, 37, 37, 37, 37,
|
976
|
+
37, 37, 37, 37, 37, 37, 37, 37,
|
977
|
+
37, 37, 37, 37, 37, 37, 37, 37,
|
978
|
+
37, 37, 37, 37, 37, 37, 37, 37,
|
979
|
+
37, 37, 37, 37, 37, 37, 37, 37,
|
980
|
+
37, 37, 37, 37, 37, 37, 37, 37,
|
981
|
+
37, 37, 37, 37, 37, 37, 37, 39,
|
982
|
+
37, 40, 31, 37, 41, 1, 1, 1,
|
983
|
+
1, 1, 1, 1, 1, 1, 1, 1,
|
984
|
+
1, 1, 1, 1, 1, 1, 1, 1,
|
985
|
+
1, 1, 1, 41, 1, 42, 42, 42,
|
986
|
+
42, 42, 42, 42, 42, 42, 42, 1,
|
987
|
+
1, 1, 1, 1, 1, 1, 42, 42,
|
988
|
+
42, 42, 42, 42, 42, 42, 42, 42,
|
989
|
+
42, 42, 42, 42, 42, 42, 42, 42,
|
990
|
+
42, 42, 42, 42, 42, 42, 42, 42,
|
991
|
+
1, 1, 1, 1, 42, 1, 42, 42,
|
992
|
+
42, 42, 42, 42, 42, 42, 42, 42,
|
993
|
+
42, 42, 42, 42, 42, 42, 42, 42,
|
994
|
+
42, 42, 42, 42, 42, 42, 42, 42,
|
995
|
+
1, 44, 44, 44, 44, 44, 43, 43,
|
996
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
997
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
998
|
+
44, 43, 45, 43, 47, 46, 46, 46,
|
999
|
+
46, 46, 46, 46, 46, 46, 46, 46,
|
1000
|
+
46, 46, 46, 46, 46, 46, 46, 46,
|
1001
|
+
46, 46, 46, 46, 46, 46, 46, 46,
|
1002
|
+
46, 46, 46, 46, 46, 46, 46, 46,
|
1003
|
+
46, 46, 46, 46, 46, 46, 46, 46,
|
1004
|
+
46, 46, 46, 46, 46, 46, 46, 46,
|
1005
|
+
46, 46, 46, 46, 46, 46, 48, 46,
|
1006
|
+
50, 49, 49, 49, 49, 49, 49, 49,
|
1007
|
+
49, 49, 49, 49, 49, 49, 49, 49,
|
1008
|
+
49, 49, 49, 49, 49, 49, 49, 49,
|
1009
|
+
49, 49, 49, 49, 49, 49, 49, 49,
|
1010
|
+
49, 49, 49, 49, 49, 49, 49, 49,
|
1011
|
+
49, 49, 49, 49, 49, 49, 49, 49,
|
1012
|
+
49, 49, 49, 49, 49, 49, 49, 49,
|
1013
|
+
49, 49, 51, 49, 49, 1, 53, 52,
|
1006
1014
|
52, 52, 52, 52, 52, 52, 52, 52,
|
1007
1015
|
52, 52, 52, 52, 52, 52, 52, 52,
|
1008
|
-
52, 52, 52, 50, 50, 50, 50, 52,
|
1009
|
-
50, 52, 52, 52, 52, 52, 52, 52,
|
1010
1016
|
52, 52, 52, 52, 52, 52, 52, 52,
|
1011
1017
|
52, 52, 52, 52, 52, 52, 52, 52,
|
1012
|
-
52, 52, 52,
|
1018
|
+
52, 52, 52, 52, 54, 54, 54, 54,
|
1019
|
+
54, 54, 54, 54, 54, 54, 52, 52,
|
1020
|
+
52, 52, 52, 52, 52, 54, 54, 54,
|
1021
|
+
54, 54, 54, 54, 54, 54, 54, 54,
|
1022
|
+
54, 54, 54, 54, 54, 54, 54, 54,
|
1023
|
+
54, 54, 54, 54, 54, 54, 54, 52,
|
1024
|
+
52, 52, 52, 54, 52, 54, 54, 54,
|
1025
|
+
54, 54, 54, 54, 54, 54, 54, 54,
|
1026
|
+
54, 54, 54, 54, 54, 54, 54, 54,
|
1027
|
+
54, 54, 54, 54, 54, 54, 54, 52,
|
1028
|
+
52, 43, 0
|
1013
1029
|
]
|
1014
1030
|
|
1015
1031
|
class << self
|
@@ -1020,10 +1036,10 @@ self._bel_trans_targs = [
|
|
1020
1036
|
2, 0, 3, 4, 5, 6, 7, 8,
|
1021
1037
|
9, 10, 11, 12, 13, 14, 15, 16,
|
1022
1038
|
17, 18, 0, 19, 20, 19, 20, 21,
|
1023
|
-
22, 23, 24, 25, 26, 27, 0,
|
1024
|
-
28, 29, 30, 31, 29, 30, 31,
|
1025
|
-
38,
|
1026
|
-
|
1039
|
+
22, 23, 24, 25, 26, 32, 27, 0,
|
1040
|
+
27, 28, 29, 30, 31, 29, 30, 31,
|
1041
|
+
38, 27, 39, 0, 34, 35, 36, 41,
|
1042
|
+
37, 36, 41, 37, 0, 40, 39
|
1027
1043
|
]
|
1028
1044
|
|
1029
1045
|
class << self
|
@@ -1034,10 +1050,10 @@ self._bel_trans_actions = [
|
|
1034
1050
|
0, 0, 0, 0, 0, 0, 0, 0,
|
1035
1051
|
0, 0, 0, 0, 0, 0, 0, 0,
|
1036
1052
|
0, 0, 2, 3, 4, 0, 0, 0,
|
1037
|
-
0, 0, 0, 0, 0, 5, 7,
|
1038
|
-
0, 9, 10, 9, 0, 11, 0,
|
1039
|
-
|
1040
|
-
|
1053
|
+
0, 0, 0, 0, 0, 0, 5, 7,
|
1054
|
+
0, 0, 9, 10, 9, 0, 11, 0,
|
1055
|
+
12, 13, 3, 15, 0, 0, 9, 17,
|
1056
|
+
9, 0, 18, 0, 20, 21, 0
|
1041
1057
|
]
|
1042
1058
|
|
1043
1059
|
class << self
|
@@ -1049,8 +1065,8 @@ self._bel_eof_actions = [
|
|
1049
1065
|
0, 0, 0, 0, 0, 0, 0, 0,
|
1050
1066
|
0, 0, 1, 1, 0, 0, 0, 0,
|
1051
1067
|
0, 0, 0, 6, 8, 8, 7, 8,
|
1052
|
-
0,
|
1053
|
-
0
|
1068
|
+
0, 0, 14, 16, 16, 16, 0, 19,
|
1069
|
+
22, 0
|
1054
1070
|
]
|
1055
1071
|
|
1056
1072
|
class << self
|
@@ -1060,7 +1076,7 @@ self.bel_start = 1;
|
|
1060
1076
|
class << self
|
1061
1077
|
attr_accessor :bel_first_final
|
1062
1078
|
end
|
1063
|
-
self.bel_first_final =
|
1079
|
+
self.bel_first_final = 38;
|
1064
1080
|
class << self
|
1065
1081
|
attr_accessor :bel_error
|
1066
1082
|
end
|
@@ -1069,11 +1085,11 @@ self.bel_error = 0;
|
|
1069
1085
|
class << self
|
1070
1086
|
attr_accessor :bel_en_ident_node
|
1071
1087
|
end
|
1072
|
-
self.bel_en_ident_node =
|
1088
|
+
self.bel_en_ident_node = 33;
|
1073
1089
|
class << self
|
1074
1090
|
attr_accessor :bel_en_string_node
|
1075
1091
|
end
|
1076
|
-
self.bel_en_string_node =
|
1092
|
+
self.bel_en_string_node = 34;
|
1077
1093
|
class << self
|
1078
1094
|
attr_accessor :bel_en_define_namespace_node
|
1079
1095
|
end
|
@@ -1129,7 +1145,7 @@ begin
|
|
1129
1145
|
@identifier_started = true
|
1130
1146
|
id_start = p;
|
1131
1147
|
end
|
1132
|
-
when
|
1148
|
+
when 21 then
|
1133
1149
|
begin
|
1134
1150
|
|
1135
1151
|
trace('IDENTIFIER end_identifier')
|
@@ -1148,7 +1164,7 @@ begin
|
|
1148
1164
|
ast_node = identifier(utf8_string(chars), complete: false)
|
1149
1165
|
@buffers[:ident] = ast_node
|
1150
1166
|
end
|
1151
|
-
when
|
1167
|
+
when 20 then
|
1152
1168
|
begin
|
1153
1169
|
|
1154
1170
|
trace('IDENTIFIER ident_node_err')
|
@@ -1173,7 +1189,7 @@ begin
|
|
1173
1189
|
ast_node = string(utf8_string(chars), complete: false)
|
1174
1190
|
@buffers[:string] = ast_node
|
1175
1191
|
end
|
1176
|
-
when
|
1192
|
+
when 15 then
|
1177
1193
|
begin
|
1178
1194
|
|
1179
1195
|
trace('STRING string_node_err')
|
@@ -1185,8 +1201,14 @@ begin
|
|
1185
1201
|
when 5 then
|
1186
1202
|
begin
|
1187
1203
|
|
1204
|
+
trace('DEFINE_NAMESPACE add_uri_domain')
|
1205
|
+
@buffers[:namespace_definition_domain] = uri()
|
1206
|
+
end
|
1207
|
+
when 13 then
|
1208
|
+
begin
|
1209
|
+
|
1188
1210
|
trace('DEFINE_NAMESPACE add_url_domain')
|
1189
|
-
@
|
1211
|
+
@buffers[:namespace_definition_domain] = url()
|
1190
1212
|
end
|
1191
1213
|
when 4 then
|
1192
1214
|
begin
|
@@ -1240,7 +1262,7 @@ begin
|
|
1240
1262
|
ast_node = string(utf8_string(chars), complete: true)
|
1241
1263
|
@buffers[:string] = ast_node
|
1242
1264
|
end
|
1243
|
-
when
|
1265
|
+
when 18 then
|
1244
1266
|
begin
|
1245
1267
|
|
1246
1268
|
trace('STRING stop_string')
|
@@ -1265,7 +1287,9 @@ begin
|
|
1265
1287
|
|
1266
1288
|
trace('DEFINE_NAMESPACE add_string_value')
|
1267
1289
|
string_node = @buffers.delete(:string)
|
1268
|
-
|
1290
|
+
domain = @buffers.delete(:namespace_definition_domain)
|
1291
|
+
domain <<= string_node
|
1292
|
+
leaf = domain(domain)
|
1269
1293
|
leaf.complete = string_node.complete
|
1270
1294
|
@buffers[:namespace_definition_domain] = leaf
|
1271
1295
|
end
|
@@ -1289,7 +1313,7 @@ begin
|
|
1289
1313
|
trace('DEFINE_NAMESPACE yield_define_namespace')
|
1290
1314
|
yield @buffers[:namespace_definition]
|
1291
1315
|
end
|
1292
|
-
when
|
1316
|
+
when 17 then
|
1293
1317
|
begin
|
1294
1318
|
|
1295
1319
|
trace('STRING start_string')
|
@@ -1332,7 +1356,7 @@ begin
|
|
1332
1356
|
if _goto_level <= _test_eof
|
1333
1357
|
if p == eof
|
1334
1358
|
case _bel_eof_actions[cs]
|
1335
|
-
when
|
1359
|
+
when 22 then
|
1336
1360
|
begin
|
1337
1361
|
|
1338
1362
|
trace('IDENTIFIER yield_identifier')
|
@@ -1347,7 +1371,7 @@ begin
|
|
1347
1371
|
ast_node = string(utf8_string(chars), complete: false)
|
1348
1372
|
@buffers[:string] = ast_node
|
1349
1373
|
end
|
1350
|
-
when
|
1374
|
+
when 19 then
|
1351
1375
|
begin
|
1352
1376
|
|
1353
1377
|
trace('IDENTIFIER end_identifier')
|
@@ -1406,7 +1430,7 @@ begin
|
|
1406
1430
|
namespace_definition_node.complete = domain_node.complete
|
1407
1431
|
yield namespace_definition_node
|
1408
1432
|
end
|
1409
|
-
when
|
1433
|
+
when 14 then
|
1410
1434
|
begin
|
1411
1435
|
|
1412
1436
|
trace('STRING string_node_err')
|
@@ -1452,7 +1476,7 @@ begin
|
|
1452
1476
|
namespace_definition_node.complete = domain_node.complete
|
1453
1477
|
yield namespace_definition_node
|
1454
1478
|
end
|
1455
|
-
when
|
1479
|
+
when 16 then
|
1456
1480
|
begin
|
1457
1481
|
|
1458
1482
|
trace('STRING eof_string')
|
@@ -1537,13 +1561,13 @@ self._bel_trans_keys = [
|
|
1537
1561
|
69, 101, 9, 32, 9, 122,
|
1538
1562
|
9, 122, 9, 97, 83,
|
1539
1563
|
115, 9, 32, 9, 117,
|
1540
|
-
82, 114,
|
1564
|
+
82, 114, 73, 108, 9, 32,
|
1541
1565
|
9, 34, 34, 92, 34,
|
1542
1566
|
92, 10, 10, 0, 0,
|
1543
|
-
48, 122, 9, 34,
|
1544
|
-
34, 92,
|
1545
|
-
0,
|
1546
|
-
0, 0, 0
|
1567
|
+
9, 32, 48, 122, 9, 34,
|
1568
|
+
34, 92, 34, 92, 0,
|
1569
|
+
0, 0, 0, 10, 122,
|
1570
|
+
0, 0, 0, 0, 0
|
1547
1571
|
]
|
1548
1572
|
|
1549
1573
|
class << self
|
@@ -1554,9 +1578,9 @@ self._bel_key_spans = [
|
|
1554
1578
|
0, 33, 33, 33, 33, 33, 33, 24,
|
1555
1579
|
102, 33, 33, 33, 33, 33, 33, 33,
|
1556
1580
|
33, 24, 114, 114, 89, 33, 24, 109,
|
1557
|
-
33,
|
1558
|
-
75, 26, 59, 59, 0, 0, 113,
|
1559
|
-
0
|
1581
|
+
33, 36, 24, 26, 59, 59, 1, 0,
|
1582
|
+
24, 75, 26, 59, 59, 0, 0, 113,
|
1583
|
+
0, 0
|
1560
1584
|
]
|
1561
1585
|
|
1562
1586
|
class << self
|
@@ -1567,9 +1591,9 @@ self._bel_index_offsets = [
|
|
1567
1591
|
0, 0, 34, 68, 102, 136, 170, 204,
|
1568
1592
|
229, 332, 366, 400, 434, 468, 502, 536,
|
1569
1593
|
570, 604, 629, 744, 859, 949, 983, 1008,
|
1570
|
-
1118, 1152,
|
1571
|
-
|
1572
|
-
|
1594
|
+
1118, 1152, 1189, 1214, 1241, 1301, 1361, 1363,
|
1595
|
+
1364, 1389, 1465, 1492, 1552, 1612, 1613, 1614,
|
1596
|
+
1728, 1729
|
1573
1597
|
]
|
1574
1598
|
|
1575
1599
|
class << self
|
@@ -1721,75 +1745,79 @@ self._bel_indicies = [
|
|
1721
1745
|
1, 1, 1, 1, 1, 1, 1, 1,
|
1722
1746
|
1, 1, 1, 1, 1, 1, 1, 1,
|
1723
1747
|
1, 1, 1, 1, 1, 1, 27, 1,
|
1724
|
-
28, 1, 1,
|
1725
|
-
1, 1, 1, 1, 1, 1, 1, 1,
|
1726
|
-
1, 1, 1, 1, 1, 1, 1, 1,
|
1727
|
-
1, 1, 1, 1, 1, 1, 1, 1,
|
1728
|
-
28, 1,
|
1729
|
-
1, 1, 1, 1, 1, 1, 1, 1,
|
1730
|
-
1, 1, 1, 1, 1, 1, 1, 1,
|
1731
|
-
1,
|
1732
|
-
|
1733
|
-
|
1734
|
-
|
1735
|
-
|
1736
|
-
|
1737
|
-
|
1738
|
-
|
1739
|
-
|
1740
|
-
|
1741
|
-
|
1742
|
-
|
1743
|
-
|
1744
|
-
|
1745
|
-
|
1746
|
-
|
1747
|
-
|
1748
|
-
|
1749
|
-
|
1750
|
-
|
1751
|
-
|
1752
|
-
1, 1,
|
1753
|
-
|
1754
|
-
|
1755
|
-
|
1756
|
-
|
1757
|
-
|
1758
|
-
|
1759
|
-
|
1760
|
-
42, 42,
|
1761
|
-
|
1762
|
-
|
1763
|
-
|
1764
|
-
|
1765
|
-
|
1766
|
-
44,
|
1767
|
-
|
1768
|
-
|
1769
|
-
|
1770
|
-
|
1771
|
-
|
1772
|
-
|
1773
|
-
|
1774
|
-
|
1775
|
-
|
1776
|
-
|
1777
|
-
|
1778
|
-
|
1779
|
-
|
1780
|
-
|
1781
|
-
|
1782
|
-
50, 50, 50, 50, 50, 50, 50, 50,
|
1748
|
+
28, 1, 1, 29, 1, 1, 1, 1,
|
1749
|
+
1, 1, 1, 1, 1, 1, 1, 1,
|
1750
|
+
1, 1, 1, 1, 1, 1, 1, 1,
|
1751
|
+
1, 1, 1, 1, 1, 1, 1, 1,
|
1752
|
+
28, 1, 1, 29, 1, 30, 1, 1,
|
1753
|
+
1, 1, 1, 1, 1, 1, 1, 1,
|
1754
|
+
1, 1, 1, 1, 1, 1, 1, 1,
|
1755
|
+
1, 1, 1, 1, 30, 1, 32, 32,
|
1756
|
+
32, 32, 32, 31, 31, 31, 31, 31,
|
1757
|
+
31, 31, 31, 31, 31, 31, 31, 31,
|
1758
|
+
31, 31, 31, 31, 31, 32, 31, 33,
|
1759
|
+
31, 35, 34, 34, 34, 34, 34, 34,
|
1760
|
+
34, 34, 34, 34, 34, 34, 34, 34,
|
1761
|
+
34, 34, 34, 34, 34, 34, 34, 34,
|
1762
|
+
34, 34, 34, 34, 34, 34, 34, 34,
|
1763
|
+
34, 34, 34, 34, 34, 34, 34, 34,
|
1764
|
+
34, 34, 34, 34, 34, 34, 34, 34,
|
1765
|
+
34, 34, 34, 34, 34, 34, 34, 34,
|
1766
|
+
34, 34, 34, 36, 34, 38, 37, 37,
|
1767
|
+
37, 37, 37, 37, 37, 37, 37, 37,
|
1768
|
+
37, 37, 37, 37, 37, 37, 37, 37,
|
1769
|
+
37, 37, 37, 37, 37, 37, 37, 37,
|
1770
|
+
37, 37, 37, 37, 37, 37, 37, 37,
|
1771
|
+
37, 37, 37, 37, 37, 37, 37, 37,
|
1772
|
+
37, 37, 37, 37, 37, 37, 37, 37,
|
1773
|
+
37, 37, 37, 37, 37, 37, 37, 39,
|
1774
|
+
37, 40, 31, 37, 41, 1, 1, 1,
|
1775
|
+
1, 1, 1, 1, 1, 1, 1, 1,
|
1776
|
+
1, 1, 1, 1, 1, 1, 1, 1,
|
1777
|
+
1, 1, 1, 41, 1, 42, 42, 42,
|
1778
|
+
42, 42, 42, 42, 42, 42, 42, 1,
|
1779
|
+
1, 1, 1, 1, 1, 1, 42, 42,
|
1780
|
+
42, 42, 42, 42, 42, 42, 42, 42,
|
1781
|
+
42, 42, 42, 42, 42, 42, 42, 42,
|
1782
|
+
42, 42, 42, 42, 42, 42, 42, 42,
|
1783
|
+
1, 1, 1, 1, 42, 1, 42, 42,
|
1784
|
+
42, 42, 42, 42, 42, 42, 42, 42,
|
1785
|
+
42, 42, 42, 42, 42, 42, 42, 42,
|
1786
|
+
42, 42, 42, 42, 42, 42, 42, 42,
|
1787
|
+
1, 44, 44, 44, 44, 44, 43, 43,
|
1788
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1789
|
+
43, 43, 43, 43, 43, 43, 43, 43,
|
1790
|
+
44, 43, 45, 43, 47, 46, 46, 46,
|
1791
|
+
46, 46, 46, 46, 46, 46, 46, 46,
|
1792
|
+
46, 46, 46, 46, 46, 46, 46, 46,
|
1793
|
+
46, 46, 46, 46, 46, 46, 46, 46,
|
1794
|
+
46, 46, 46, 46, 46, 46, 46, 46,
|
1795
|
+
46, 46, 46, 46, 46, 46, 46, 46,
|
1796
|
+
46, 46, 46, 46, 46, 46, 46, 46,
|
1797
|
+
46, 46, 46, 46, 46, 46, 48, 46,
|
1798
|
+
50, 49, 49, 49, 49, 49, 49, 49,
|
1799
|
+
49, 49, 49, 49, 49, 49, 49, 49,
|
1800
|
+
49, 49, 49, 49, 49, 49, 49, 49,
|
1801
|
+
49, 49, 49, 49, 49, 49, 49, 49,
|
1802
|
+
49, 49, 49, 49, 49, 49, 49, 49,
|
1803
|
+
49, 49, 49, 49, 49, 49, 49, 49,
|
1804
|
+
49, 49, 49, 49, 49, 49, 49, 49,
|
1805
|
+
49, 49, 51, 49, 49, 1, 53, 52,
|
1783
1806
|
52, 52, 52, 52, 52, 52, 52, 52,
|
1784
|
-
52, 52, 50, 50, 50, 50, 50, 50,
|
1785
|
-
50, 52, 52, 52, 52, 52, 52, 52,
|
1786
1807
|
52, 52, 52, 52, 52, 52, 52, 52,
|
1787
1808
|
52, 52, 52, 52, 52, 52, 52, 52,
|
1788
|
-
52, 52, 52, 50, 50, 50, 50, 52,
|
1789
|
-
50, 52, 52, 52, 52, 52, 52, 52,
|
1790
1809
|
52, 52, 52, 52, 52, 52, 52, 52,
|
1791
|
-
52, 52, 52, 52,
|
1792
|
-
|
1810
|
+
52, 52, 52, 52, 54, 54, 54, 54,
|
1811
|
+
54, 54, 54, 54, 54, 54, 52, 52,
|
1812
|
+
52, 52, 52, 52, 52, 54, 54, 54,
|
1813
|
+
54, 54, 54, 54, 54, 54, 54, 54,
|
1814
|
+
54, 54, 54, 54, 54, 54, 54, 54,
|
1815
|
+
54, 54, 54, 54, 54, 54, 54, 52,
|
1816
|
+
52, 52, 52, 54, 52, 54, 54, 54,
|
1817
|
+
54, 54, 54, 54, 54, 54, 54, 54,
|
1818
|
+
54, 54, 54, 54, 54, 54, 54, 54,
|
1819
|
+
54, 54, 54, 54, 54, 54, 54, 52,
|
1820
|
+
52, 43, 0
|
1793
1821
|
]
|
1794
1822
|
|
1795
1823
|
class << self
|
@@ -1800,10 +1828,10 @@ self._bel_trans_targs = [
|
|
1800
1828
|
2, 0, 3, 4, 5, 6, 7, 8,
|
1801
1829
|
9, 10, 11, 12, 13, 14, 15, 16,
|
1802
1830
|
17, 18, 0, 19, 20, 19, 20, 21,
|
1803
|
-
22, 23, 24, 25, 26, 27, 0,
|
1804
|
-
28, 29, 30, 31, 29, 30, 31,
|
1805
|
-
38,
|
1806
|
-
|
1831
|
+
22, 23, 24, 25, 26, 32, 27, 0,
|
1832
|
+
27, 28, 29, 30, 31, 29, 30, 31,
|
1833
|
+
38, 27, 39, 0, 34, 35, 36, 41,
|
1834
|
+
37, 36, 41, 37, 0, 40, 39
|
1807
1835
|
]
|
1808
1836
|
|
1809
1837
|
class << self
|
@@ -1814,10 +1842,10 @@ self._bel_trans_actions = [
|
|
1814
1842
|
0, 0, 0, 0, 0, 0, 0, 0,
|
1815
1843
|
0, 0, 0, 0, 0, 0, 0, 0,
|
1816
1844
|
0, 0, 2, 3, 4, 0, 0, 0,
|
1817
|
-
0, 0, 0, 0, 0, 5, 7,
|
1818
|
-
0, 9, 10, 9, 0, 11, 0,
|
1819
|
-
|
1820
|
-
|
1845
|
+
0, 0, 0, 0, 0, 0, 5, 7,
|
1846
|
+
0, 0, 9, 10, 9, 0, 11, 0,
|
1847
|
+
12, 13, 3, 15, 0, 0, 9, 17,
|
1848
|
+
9, 0, 18, 0, 20, 21, 0
|
1821
1849
|
]
|
1822
1850
|
|
1823
1851
|
class << self
|
@@ -1829,8 +1857,8 @@ self._bel_eof_actions = [
|
|
1829
1857
|
0, 0, 0, 0, 0, 0, 0, 0,
|
1830
1858
|
0, 0, 1, 1, 0, 0, 0, 0,
|
1831
1859
|
0, 0, 0, 6, 8, 8, 7, 8,
|
1832
|
-
0,
|
1833
|
-
0
|
1860
|
+
0, 0, 14, 16, 16, 16, 0, 19,
|
1861
|
+
22, 0
|
1834
1862
|
]
|
1835
1863
|
|
1836
1864
|
class << self
|
@@ -1840,7 +1868,7 @@ self.bel_start = 1;
|
|
1840
1868
|
class << self
|
1841
1869
|
attr_accessor :bel_first_final
|
1842
1870
|
end
|
1843
|
-
self.bel_first_final =
|
1871
|
+
self.bel_first_final = 38;
|
1844
1872
|
class << self
|
1845
1873
|
attr_accessor :bel_error
|
1846
1874
|
end
|
@@ -1849,11 +1877,11 @@ self.bel_error = 0;
|
|
1849
1877
|
class << self
|
1850
1878
|
attr_accessor :bel_en_ident_node
|
1851
1879
|
end
|
1852
|
-
self.bel_en_ident_node =
|
1880
|
+
self.bel_en_ident_node = 33;
|
1853
1881
|
class << self
|
1854
1882
|
attr_accessor :bel_en_string_node
|
1855
1883
|
end
|
1856
|
-
self.bel_en_string_node =
|
1884
|
+
self.bel_en_string_node = 34;
|
1857
1885
|
class << self
|
1858
1886
|
attr_accessor :bel_en_define_namespace_node
|
1859
1887
|
end
|
@@ -1924,7 +1952,7 @@ begin
|
|
1924
1952
|
@identifier_started = true
|
1925
1953
|
id_start = p;
|
1926
1954
|
end
|
1927
|
-
when
|
1955
|
+
when 21 then
|
1928
1956
|
begin
|
1929
1957
|
|
1930
1958
|
trace('IDENTIFIER end_identifier')
|
@@ -1943,7 +1971,7 @@ begin
|
|
1943
1971
|
ast_node = identifier(utf8_string(chars), complete: false)
|
1944
1972
|
@buffers[:ident] = ast_node
|
1945
1973
|
end
|
1946
|
-
when
|
1974
|
+
when 20 then
|
1947
1975
|
begin
|
1948
1976
|
|
1949
1977
|
trace('IDENTIFIER ident_node_err')
|
@@ -1968,7 +1996,7 @@ begin
|
|
1968
1996
|
ast_node = string(utf8_string(chars), complete: false)
|
1969
1997
|
@buffers[:string] = ast_node
|
1970
1998
|
end
|
1971
|
-
when
|
1999
|
+
when 15 then
|
1972
2000
|
begin
|
1973
2001
|
|
1974
2002
|
trace('STRING string_node_err')
|
@@ -1980,8 +2008,14 @@ begin
|
|
1980
2008
|
when 5 then
|
1981
2009
|
begin
|
1982
2010
|
|
2011
|
+
trace('DEFINE_NAMESPACE add_uri_domain')
|
2012
|
+
@buffers[:namespace_definition_domain] = uri()
|
2013
|
+
end
|
2014
|
+
when 13 then
|
2015
|
+
begin
|
2016
|
+
|
1983
2017
|
trace('DEFINE_NAMESPACE add_url_domain')
|
1984
|
-
@
|
2018
|
+
@buffers[:namespace_definition_domain] = url()
|
1985
2019
|
end
|
1986
2020
|
when 4 then
|
1987
2021
|
begin
|
@@ -2035,7 +2069,7 @@ begin
|
|
2035
2069
|
ast_node = string(utf8_string(chars), complete: true)
|
2036
2070
|
@buffers[:string] = ast_node
|
2037
2071
|
end
|
2038
|
-
when
|
2072
|
+
when 18 then
|
2039
2073
|
begin
|
2040
2074
|
|
2041
2075
|
trace('STRING stop_string')
|
@@ -2060,7 +2094,9 @@ begin
|
|
2060
2094
|
|
2061
2095
|
trace('DEFINE_NAMESPACE add_string_value')
|
2062
2096
|
string_node = @buffers.delete(:string)
|
2063
|
-
|
2097
|
+
domain = @buffers.delete(:namespace_definition_domain)
|
2098
|
+
domain <<= string_node
|
2099
|
+
leaf = domain(domain)
|
2064
2100
|
leaf.complete = string_node.complete
|
2065
2101
|
@buffers[:namespace_definition_domain] = leaf
|
2066
2102
|
end
|
@@ -2084,7 +2120,7 @@ begin
|
|
2084
2120
|
trace('DEFINE_NAMESPACE yield_define_namespace')
|
2085
2121
|
yield @buffers[:namespace_definition]
|
2086
2122
|
end
|
2087
|
-
when
|
2123
|
+
when 17 then
|
2088
2124
|
begin
|
2089
2125
|
|
2090
2126
|
trace('STRING start_string')
|
@@ -2127,7 +2163,7 @@ begin
|
|
2127
2163
|
if _goto_level <= _test_eof
|
2128
2164
|
if p == eof
|
2129
2165
|
case _bel_eof_actions[cs]
|
2130
|
-
when
|
2166
|
+
when 22 then
|
2131
2167
|
begin
|
2132
2168
|
|
2133
2169
|
trace('IDENTIFIER yield_identifier')
|
@@ -2142,7 +2178,7 @@ begin
|
|
2142
2178
|
ast_node = string(utf8_string(chars), complete: false)
|
2143
2179
|
@buffers[:string] = ast_node
|
2144
2180
|
end
|
2145
|
-
when
|
2181
|
+
when 19 then
|
2146
2182
|
begin
|
2147
2183
|
|
2148
2184
|
trace('IDENTIFIER end_identifier')
|
@@ -2201,7 +2237,7 @@ begin
|
|
2201
2237
|
namespace_definition_node.complete = domain_node.complete
|
2202
2238
|
yield namespace_definition_node
|
2203
2239
|
end
|
2204
|
-
when
|
2240
|
+
when 14 then
|
2205
2241
|
begin
|
2206
2242
|
|
2207
2243
|
trace('STRING string_node_err')
|
@@ -2247,7 +2283,7 @@ begin
|
|
2247
2283
|
namespace_definition_node.complete = domain_node.complete
|
2248
2284
|
yield namespace_definition_node
|
2249
2285
|
end
|
2250
|
-
when
|
2286
|
+
when 16 then
|
2251
2287
|
begin
|
2252
2288
|
|
2253
2289
|
trace('STRING eof_string')
|