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.
@@ -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, 76, 108, 9, 32,
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, 34, 92,
23
- 34, 92, 0, 0, 0,
24
- 0, 10, 122, 0, 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, 33, 24, 26, 59, 59, 1, 0,
37
- 75, 26, 59, 59, 0, 0, 113, 0,
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, 1186, 1211, 1238, 1298, 1358, 1360,
50
- 1361, 1437, 1464, 1524, 1584, 1585, 1586, 1700,
51
- 1701
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, 1, 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, 29, 1, 1, 1, 1, 1,
208
- 1, 1, 1, 1, 1, 1, 1, 1,
209
- 1, 1, 1, 1, 1, 1, 1, 1,
210
- 1, 29, 1, 31, 31, 31, 31, 31,
211
- 30, 30, 30, 30, 30, 30, 30, 30,
212
- 30, 30, 30, 30, 30, 30, 30, 30,
213
- 30, 30, 31, 30, 32, 30, 34, 33,
214
- 33, 33, 33, 33, 33, 33, 33, 33,
215
- 33, 33, 33, 33, 33, 33, 33, 33,
216
- 33, 33, 33, 33, 33, 33, 33, 33,
217
- 33, 33, 33, 33, 33, 33, 33, 33,
218
- 33, 33, 33, 33, 33, 33, 33, 33,
219
- 33, 33, 33, 33, 33, 33, 33, 33,
220
- 33, 33, 33, 33, 33, 33, 33, 33,
221
- 35, 33, 37, 36, 36, 36, 36, 36,
222
- 36, 36, 36, 36, 36, 36, 36, 36,
223
- 36, 36, 36, 36, 36, 36, 36, 36,
224
- 36, 36, 36, 36, 36, 36, 36, 36,
225
- 36, 36, 36, 36, 36, 36, 36, 36,
226
- 36, 36, 36, 36, 36, 36, 36, 36,
227
- 36, 36, 36, 36, 36, 36, 36, 36,
228
- 36, 36, 36, 36, 38, 36, 39, 30,
229
- 36, 40, 40, 40, 40, 40, 40, 40,
230
- 40, 40, 40, 1, 1, 1, 1, 1,
231
- 1, 1, 40, 40, 40, 40, 40, 40,
232
- 40, 40, 40, 40, 40, 40, 40, 40,
233
- 40, 40, 40, 40, 40, 40, 40, 40,
234
- 40, 40, 40, 40, 1, 1, 1, 1,
235
- 40, 1, 40, 40, 40, 40, 40, 40,
236
- 40, 40, 40, 40, 40, 40, 40, 40,
237
- 40, 40, 40, 40, 40, 40, 40, 40,
238
- 40, 40, 40, 40, 1, 42, 42, 42,
239
- 42, 42, 41, 41, 41, 41, 41, 41,
240
- 41, 41, 41, 41, 41, 41, 41, 41,
241
- 41, 41, 41, 41, 42, 41, 43, 41,
242
- 45, 44, 44, 44, 44, 44, 44, 44,
243
- 44, 44, 44, 44, 44, 44, 44, 44,
244
- 44, 44, 44, 44, 44, 44, 44, 44,
245
- 44, 44, 44, 44, 44, 44, 44, 44,
246
- 44, 44, 44, 44, 44, 44, 44, 44,
247
- 44, 44, 44, 44, 44, 44, 44, 44,
248
- 44, 44, 44, 44, 44, 44, 44, 44,
249
- 44, 44, 46, 44, 48, 47, 47, 47,
250
- 47, 47, 47, 47, 47, 47, 47, 47,
251
- 47, 47, 47, 47, 47, 47, 47, 47,
252
- 47, 47, 47, 47, 47, 47, 47, 47,
253
- 47, 47, 47, 47, 47, 47, 47, 47,
254
- 47, 47, 47, 47, 47, 47, 47, 47,
255
- 47, 47, 47, 47, 47, 47, 47, 47,
256
- 47, 47, 47, 47, 47, 47, 49, 47,
257
- 47, 1, 51, 50, 50, 50, 50, 50,
258
- 50, 50, 50, 50, 50, 50, 50, 50,
259
- 50, 50, 50, 50, 50, 50, 50, 50,
260
- 50, 50, 50, 50, 50, 50, 50, 50,
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, 52, 52, 52, 52,
271
- 52, 52, 52, 50, 50, 41, 0
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, 27,
283
- 28, 29, 30, 31, 29, 30, 31, 37,
284
- 38, 0, 33, 34, 35, 40, 36, 35,
285
- 40, 36, 0, 39, 38
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, 0,
297
- 0, 9, 10, 9, 0, 11, 0, 12,
298
- 3, 14, 0, 0, 9, 16, 9, 0,
299
- 17, 0, 19, 20, 0
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, 13, 15, 15, 15, 0, 18, 21,
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 = 37;
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 = 32;
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 = 33;
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 20 then
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 19 then
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 14 then
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
- @url_domain = true
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 17 then
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
- leaf = domain(url(string_node))
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 16 then
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 21 then
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 18 then
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 13 then
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 15 then
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, 76, 108, 9, 32,
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, 34, 92,
764
- 34, 92, 0, 0, 0,
765
- 0, 10, 122, 0, 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, 33, 24, 26, 59, 59, 1, 0,
778
- 75, 26, 59, 59, 0, 0, 113, 0,
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, 1186, 1211, 1238, 1298, 1358, 1360,
791
- 1361, 1437, 1464, 1524, 1584, 1585, 1586, 1700,
792
- 1701
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, 1, 1, 1, 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, 29, 1, 1, 1, 1, 1,
949
- 1, 1, 1, 1, 1, 1, 1, 1,
950
- 1, 1, 1, 1, 1, 1, 1, 1,
951
- 1, 29, 1, 31, 31, 31, 31, 31,
952
- 30, 30, 30, 30, 30, 30, 30, 30,
953
- 30, 30, 30, 30, 30, 30, 30, 30,
954
- 30, 30, 31, 30, 32, 30, 34, 33,
955
- 33, 33, 33, 33, 33, 33, 33, 33,
956
- 33, 33, 33, 33, 33, 33, 33, 33,
957
- 33, 33, 33, 33, 33, 33, 33, 33,
958
- 33, 33, 33, 33, 33, 33, 33, 33,
959
- 33, 33, 33, 33, 33, 33, 33, 33,
960
- 33, 33, 33, 33, 33, 33, 33, 33,
961
- 33, 33, 33, 33, 33, 33, 33, 33,
962
- 35, 33, 37, 36, 36, 36, 36, 36,
963
- 36, 36, 36, 36, 36, 36, 36, 36,
964
- 36, 36, 36, 36, 36, 36, 36, 36,
965
- 36, 36, 36, 36, 36, 36, 36, 36,
966
- 36, 36, 36, 36, 36, 36, 36, 36,
967
- 36, 36, 36, 36, 36, 36, 36, 36,
968
- 36, 36, 36, 36, 36, 36, 36, 36,
969
- 36, 36, 36, 36, 38, 36, 39, 30,
970
- 36, 40, 40, 40, 40, 40, 40, 40,
971
- 40, 40, 40, 1, 1, 1, 1, 1,
972
- 1, 1, 40, 40, 40, 40, 40, 40,
973
- 40, 40, 40, 40, 40, 40, 40, 40,
974
- 40, 40, 40, 40, 40, 40, 40, 40,
975
- 40, 40, 40, 40, 1, 1, 1, 1,
976
- 40, 1, 40, 40, 40, 40, 40, 40,
977
- 40, 40, 40, 40, 40, 40, 40, 40,
978
- 40, 40, 40, 40, 40, 40, 40, 40,
979
- 40, 40, 40, 40, 1, 42, 42, 42,
980
- 42, 42, 41, 41, 41, 41, 41, 41,
981
- 41, 41, 41, 41, 41, 41, 41, 41,
982
- 41, 41, 41, 41, 42, 41, 43, 41,
983
- 45, 44, 44, 44, 44, 44, 44, 44,
984
- 44, 44, 44, 44, 44, 44, 44, 44,
985
- 44, 44, 44, 44, 44, 44, 44, 44,
986
- 44, 44, 44, 44, 44, 44, 44, 44,
987
- 44, 44, 44, 44, 44, 44, 44, 44,
988
- 44, 44, 44, 44, 44, 44, 44, 44,
989
- 44, 44, 44, 44, 44, 44, 44, 44,
990
- 44, 44, 46, 44, 48, 47, 47, 47,
991
- 47, 47, 47, 47, 47, 47, 47, 47,
992
- 47, 47, 47, 47, 47, 47, 47, 47,
993
- 47, 47, 47, 47, 47, 47, 47, 47,
994
- 47, 47, 47, 47, 47, 47, 47, 47,
995
- 47, 47, 47, 47, 47, 47, 47, 47,
996
- 47, 47, 47, 47, 47, 47, 47, 47,
997
- 47, 47, 47, 47, 47, 47, 49, 47,
998
- 47, 1, 51, 50, 50, 50, 50, 50,
999
- 50, 50, 50, 50, 50, 50, 50, 50,
1000
- 50, 50, 50, 50, 50, 50, 50, 50,
1001
- 50, 50, 50, 50, 50, 50, 50, 50,
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, 50, 50, 41, 0
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, 27,
1024
- 28, 29, 30, 31, 29, 30, 31, 37,
1025
- 38, 0, 33, 34, 35, 40, 36, 35,
1026
- 40, 36, 0, 39, 38
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, 0,
1038
- 0, 9, 10, 9, 0, 11, 0, 12,
1039
- 3, 14, 0, 0, 9, 16, 9, 0,
1040
- 17, 0, 19, 20, 0
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, 13, 15, 15, 15, 0, 18, 21,
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 = 37;
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 = 32;
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 = 33;
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 20 then
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 19 then
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 14 then
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
- @url_domain = true
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 17 then
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
- leaf = domain(url(string_node))
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 16 then
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 21 then
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 18 then
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 13 then
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 15 then
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, 76, 108, 9, 32,
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, 34, 92,
1544
- 34, 92, 0, 0, 0,
1545
- 0, 10, 122, 0, 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, 33, 24, 26, 59, 59, 1, 0,
1558
- 75, 26, 59, 59, 0, 0, 113, 0,
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, 1186, 1211, 1238, 1298, 1358, 1360,
1571
- 1361, 1437, 1464, 1524, 1584, 1585, 1586, 1700,
1572
- 1701
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, 1, 1, 1, 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, 29, 1, 1, 1, 1, 1,
1729
- 1, 1, 1, 1, 1, 1, 1, 1,
1730
- 1, 1, 1, 1, 1, 1, 1, 1,
1731
- 1, 29, 1, 31, 31, 31, 31, 31,
1732
- 30, 30, 30, 30, 30, 30, 30, 30,
1733
- 30, 30, 30, 30, 30, 30, 30, 30,
1734
- 30, 30, 31, 30, 32, 30, 34, 33,
1735
- 33, 33, 33, 33, 33, 33, 33, 33,
1736
- 33, 33, 33, 33, 33, 33, 33, 33,
1737
- 33, 33, 33, 33, 33, 33, 33, 33,
1738
- 33, 33, 33, 33, 33, 33, 33, 33,
1739
- 33, 33, 33, 33, 33, 33, 33, 33,
1740
- 33, 33, 33, 33, 33, 33, 33, 33,
1741
- 33, 33, 33, 33, 33, 33, 33, 33,
1742
- 35, 33, 37, 36, 36, 36, 36, 36,
1743
- 36, 36, 36, 36, 36, 36, 36, 36,
1744
- 36, 36, 36, 36, 36, 36, 36, 36,
1745
- 36, 36, 36, 36, 36, 36, 36, 36,
1746
- 36, 36, 36, 36, 36, 36, 36, 36,
1747
- 36, 36, 36, 36, 36, 36, 36, 36,
1748
- 36, 36, 36, 36, 36, 36, 36, 36,
1749
- 36, 36, 36, 36, 38, 36, 39, 30,
1750
- 36, 40, 40, 40, 40, 40, 40, 40,
1751
- 40, 40, 40, 1, 1, 1, 1, 1,
1752
- 1, 1, 40, 40, 40, 40, 40, 40,
1753
- 40, 40, 40, 40, 40, 40, 40, 40,
1754
- 40, 40, 40, 40, 40, 40, 40, 40,
1755
- 40, 40, 40, 40, 1, 1, 1, 1,
1756
- 40, 1, 40, 40, 40, 40, 40, 40,
1757
- 40, 40, 40, 40, 40, 40, 40, 40,
1758
- 40, 40, 40, 40, 40, 40, 40, 40,
1759
- 40, 40, 40, 40, 1, 42, 42, 42,
1760
- 42, 42, 41, 41, 41, 41, 41, 41,
1761
- 41, 41, 41, 41, 41, 41, 41, 41,
1762
- 41, 41, 41, 41, 42, 41, 43, 41,
1763
- 45, 44, 44, 44, 44, 44, 44, 44,
1764
- 44, 44, 44, 44, 44, 44, 44, 44,
1765
- 44, 44, 44, 44, 44, 44, 44, 44,
1766
- 44, 44, 44, 44, 44, 44, 44, 44,
1767
- 44, 44, 44, 44, 44, 44, 44, 44,
1768
- 44, 44, 44, 44, 44, 44, 44, 44,
1769
- 44, 44, 44, 44, 44, 44, 44, 44,
1770
- 44, 44, 46, 44, 48, 47, 47, 47,
1771
- 47, 47, 47, 47, 47, 47, 47, 47,
1772
- 47, 47, 47, 47, 47, 47, 47, 47,
1773
- 47, 47, 47, 47, 47, 47, 47, 47,
1774
- 47, 47, 47, 47, 47, 47, 47, 47,
1775
- 47, 47, 47, 47, 47, 47, 47, 47,
1776
- 47, 47, 47, 47, 47, 47, 47, 47,
1777
- 47, 47, 47, 47, 47, 47, 49, 47,
1778
- 47, 1, 51, 50, 50, 50, 50, 50,
1779
- 50, 50, 50, 50, 50, 50, 50, 50,
1780
- 50, 50, 50, 50, 50, 50, 50, 50,
1781
- 50, 50, 50, 50, 50, 50, 50, 50,
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, 52, 52, 52, 52,
1792
- 52, 52, 52, 50, 50, 41, 0
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, 27,
1804
- 28, 29, 30, 31, 29, 30, 31, 37,
1805
- 38, 0, 33, 34, 35, 40, 36, 35,
1806
- 40, 36, 0, 39, 38
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, 0,
1818
- 0, 9, 10, 9, 0, 11, 0, 12,
1819
- 3, 14, 0, 0, 9, 16, 9, 0,
1820
- 17, 0, 19, 20, 0
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, 13, 15, 15, 15, 0, 18, 21,
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 = 37;
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 = 32;
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 = 33;
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 20 then
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 19 then
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 14 then
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
- @url_domain = true
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 17 then
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
- leaf = domain(url(string_node))
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 16 then
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 21 then
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 18 then
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 13 then
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 15 then
2286
+ when 16 then
2251
2287
  begin
2252
2288
 
2253
2289
  trace('STRING eof_string')