bel_parser 1.0.0.alpha.42 → 1.0.0.alpha.43

Sign up to get free protection for your applications and to get access to all the features.
@@ -406,12 +406,19 @@ begin
406
406
  param_node = parameter()
407
407
  completed = true
408
408
  prefix_node = @buffers.delete(:param_prefix)
409
- unless prefix_node.nil?
409
+ if prefix_node
410
410
  param_node <<= prefix_node
411
411
  unless prefix_node.complete
412
412
  trace('PN incomplete')
413
413
  completed = false
414
414
  end
415
+ else
416
+ prefix_node = prefix(nil)
417
+ prefix_node.complete = true
418
+
419
+ trace('PN complete (no prefix)')
420
+ param_node <<= prefix_node
421
+ completed = true
415
422
  end
416
423
 
417
424
  value_node = @buffers.delete(:param_value)
@@ -502,12 +509,19 @@ begin
502
509
  param_node = parameter()
503
510
  completed = true
504
511
  prefix_node = @buffers.delete(:param_prefix)
505
- unless prefix_node.nil?
512
+ if prefix_node
506
513
  param_node <<= prefix_node
507
514
  unless prefix_node.complete
508
515
  trace('PN incomplete')
509
516
  completed = false
510
517
  end
518
+ else
519
+ prefix_node = prefix(nil)
520
+ prefix_node.complete = true
521
+
522
+ trace('PN complete (no prefix)')
523
+ param_node <<= prefix_node
524
+ completed = true
511
525
  end
512
526
 
513
527
  value_node = @buffers.delete(:param_value)
@@ -543,12 +557,19 @@ begin
543
557
  param_node = parameter()
544
558
  completed = true
545
559
  prefix_node = @buffers.delete(:param_prefix)
546
- unless prefix_node.nil?
560
+ if prefix_node
547
561
  param_node <<= prefix_node
548
562
  unless prefix_node.complete
549
563
  trace('PN incomplete')
550
564
  completed = false
551
565
  end
566
+ else
567
+ prefix_node = prefix(nil)
568
+ prefix_node.complete = true
569
+
570
+ trace('PN complete (no prefix)')
571
+ param_node <<= prefix_node
572
+ completed = true
552
573
  end
553
574
 
554
575
  value_node = @buffers.delete(:param_value)
@@ -593,12 +614,19 @@ begin
593
614
  param_node = parameter()
594
615
  completed = true
595
616
  prefix_node = @buffers.delete(:param_prefix)
596
- unless prefix_node.nil?
617
+ if prefix_node
597
618
  param_node <<= prefix_node
598
619
  unless prefix_node.complete
599
620
  trace('PN incomplete')
600
621
  completed = false
601
622
  end
623
+ else
624
+ prefix_node = prefix(nil)
625
+ prefix_node.complete = true
626
+
627
+ trace('PN complete (no prefix)')
628
+ param_node <<= prefix_node
629
+ completed = true
602
630
  end
603
631
 
604
632
  value_node = @buffers.delete(:param_value)
@@ -778,12 +806,19 @@ begin
778
806
  param_node = parameter()
779
807
  completed = true
780
808
  prefix_node = @buffers.delete(:param_prefix)
781
- unless prefix_node.nil?
809
+ if prefix_node
782
810
  param_node <<= prefix_node
783
811
  unless prefix_node.complete
784
812
  trace('PN incomplete')
785
813
  completed = false
786
814
  end
815
+ else
816
+ prefix_node = prefix(nil)
817
+ prefix_node.complete = true
818
+
819
+ trace('PN complete (no prefix)')
820
+ param_node <<= prefix_node
821
+ completed = true
787
822
  end
788
823
 
789
824
  value_node = @buffers.delete(:param_value)
@@ -884,12 +919,19 @@ begin
884
919
  param_node = parameter()
885
920
  completed = true
886
921
  prefix_node = @buffers.delete(:param_prefix)
887
- unless prefix_node.nil?
922
+ if prefix_node
888
923
  param_node <<= prefix_node
889
924
  unless prefix_node.complete
890
925
  trace('PN incomplete')
891
926
  completed = false
892
927
  end
928
+ else
929
+ prefix_node = prefix(nil)
930
+ prefix_node.complete = true
931
+
932
+ trace('PN complete (no prefix)')
933
+ param_node <<= prefix_node
934
+ completed = true
893
935
  end
894
936
 
895
937
  value_node = @buffers.delete(:param_value)
@@ -990,12 +1032,19 @@ begin
990
1032
  param_node = parameter()
991
1033
  completed = true
992
1034
  prefix_node = @buffers.delete(:param_prefix)
993
- unless prefix_node.nil?
1035
+ if prefix_node
994
1036
  param_node <<= prefix_node
995
1037
  unless prefix_node.complete
996
1038
  trace('PN incomplete')
997
1039
  completed = false
998
1040
  end
1041
+ else
1042
+ prefix_node = prefix(nil)
1043
+ prefix_node.complete = true
1044
+
1045
+ trace('PN complete (no prefix)')
1046
+ param_node <<= prefix_node
1047
+ completed = true
999
1048
  end
1000
1049
 
1001
1050
  value_node = @buffers.delete(:param_value)
@@ -1051,12 +1100,19 @@ begin
1051
1100
  param_node = parameter()
1052
1101
  completed = true
1053
1102
  prefix_node = @buffers.delete(:param_prefix)
1054
- unless prefix_node.nil?
1103
+ if prefix_node
1055
1104
  param_node <<= prefix_node
1056
1105
  unless prefix_node.complete
1057
1106
  trace('PN incomplete')
1058
1107
  completed = false
1059
1108
  end
1109
+ else
1110
+ prefix_node = prefix(nil)
1111
+ prefix_node.complete = true
1112
+
1113
+ trace('PN complete (no prefix)')
1114
+ param_node <<= prefix_node
1115
+ completed = true
1060
1116
  end
1061
1117
 
1062
1118
  value_node = @buffers.delete(:param_value)
@@ -1112,12 +1168,19 @@ begin
1112
1168
  param_node = parameter()
1113
1169
  completed = true
1114
1170
  prefix_node = @buffers.delete(:param_prefix)
1115
- unless prefix_node.nil?
1171
+ if prefix_node
1116
1172
  param_node <<= prefix_node
1117
1173
  unless prefix_node.complete
1118
1174
  trace('PN incomplete')
1119
1175
  completed = false
1120
1176
  end
1177
+ else
1178
+ prefix_node = prefix(nil)
1179
+ prefix_node.complete = true
1180
+
1181
+ trace('PN complete (no prefix)')
1182
+ param_node <<= prefix_node
1183
+ completed = true
1121
1184
  end
1122
1185
 
1123
1186
  value_node = @buffers.delete(:param_value)
@@ -1553,12 +1616,19 @@ begin
1553
1616
  param_node = parameter()
1554
1617
  completed = true
1555
1618
  prefix_node = @buffers.delete(:param_prefix)
1556
- unless prefix_node.nil?
1619
+ if prefix_node
1557
1620
  param_node <<= prefix_node
1558
1621
  unless prefix_node.complete
1559
1622
  trace('PN incomplete')
1560
1623
  completed = false
1561
1624
  end
1625
+ else
1626
+ prefix_node = prefix(nil)
1627
+ prefix_node.complete = true
1628
+
1629
+ trace('PN complete (no prefix)')
1630
+ param_node <<= prefix_node
1631
+ completed = true
1562
1632
  end
1563
1633
 
1564
1634
  value_node = @buffers.delete(:param_value)
@@ -1649,12 +1719,19 @@ begin
1649
1719
  param_node = parameter()
1650
1720
  completed = true
1651
1721
  prefix_node = @buffers.delete(:param_prefix)
1652
- unless prefix_node.nil?
1722
+ if prefix_node
1653
1723
  param_node <<= prefix_node
1654
1724
  unless prefix_node.complete
1655
1725
  trace('PN incomplete')
1656
1726
  completed = false
1657
1727
  end
1728
+ else
1729
+ prefix_node = prefix(nil)
1730
+ prefix_node.complete = true
1731
+
1732
+ trace('PN complete (no prefix)')
1733
+ param_node <<= prefix_node
1734
+ completed = true
1658
1735
  end
1659
1736
 
1660
1737
  value_node = @buffers.delete(:param_value)
@@ -1690,12 +1767,19 @@ begin
1690
1767
  param_node = parameter()
1691
1768
  completed = true
1692
1769
  prefix_node = @buffers.delete(:param_prefix)
1693
- unless prefix_node.nil?
1770
+ if prefix_node
1694
1771
  param_node <<= prefix_node
1695
1772
  unless prefix_node.complete
1696
1773
  trace('PN incomplete')
1697
1774
  completed = false
1698
1775
  end
1776
+ else
1777
+ prefix_node = prefix(nil)
1778
+ prefix_node.complete = true
1779
+
1780
+ trace('PN complete (no prefix)')
1781
+ param_node <<= prefix_node
1782
+ completed = true
1699
1783
  end
1700
1784
 
1701
1785
  value_node = @buffers.delete(:param_value)
@@ -1740,12 +1824,19 @@ begin
1740
1824
  param_node = parameter()
1741
1825
  completed = true
1742
1826
  prefix_node = @buffers.delete(:param_prefix)
1743
- unless prefix_node.nil?
1827
+ if prefix_node
1744
1828
  param_node <<= prefix_node
1745
1829
  unless prefix_node.complete
1746
1830
  trace('PN incomplete')
1747
1831
  completed = false
1748
1832
  end
1833
+ else
1834
+ prefix_node = prefix(nil)
1835
+ prefix_node.complete = true
1836
+
1837
+ trace('PN complete (no prefix)')
1838
+ param_node <<= prefix_node
1839
+ completed = true
1749
1840
  end
1750
1841
 
1751
1842
  value_node = @buffers.delete(:param_value)
@@ -1925,12 +2016,19 @@ begin
1925
2016
  param_node = parameter()
1926
2017
  completed = true
1927
2018
  prefix_node = @buffers.delete(:param_prefix)
1928
- unless prefix_node.nil?
2019
+ if prefix_node
1929
2020
  param_node <<= prefix_node
1930
2021
  unless prefix_node.complete
1931
2022
  trace('PN incomplete')
1932
2023
  completed = false
1933
2024
  end
2025
+ else
2026
+ prefix_node = prefix(nil)
2027
+ prefix_node.complete = true
2028
+
2029
+ trace('PN complete (no prefix)')
2030
+ param_node <<= prefix_node
2031
+ completed = true
1934
2032
  end
1935
2033
 
1936
2034
  value_node = @buffers.delete(:param_value)
@@ -2031,12 +2129,19 @@ begin
2031
2129
  param_node = parameter()
2032
2130
  completed = true
2033
2131
  prefix_node = @buffers.delete(:param_prefix)
2034
- unless prefix_node.nil?
2132
+ if prefix_node
2035
2133
  param_node <<= prefix_node
2036
2134
  unless prefix_node.complete
2037
2135
  trace('PN incomplete')
2038
2136
  completed = false
2039
2137
  end
2138
+ else
2139
+ prefix_node = prefix(nil)
2140
+ prefix_node.complete = true
2141
+
2142
+ trace('PN complete (no prefix)')
2143
+ param_node <<= prefix_node
2144
+ completed = true
2040
2145
  end
2041
2146
 
2042
2147
  value_node = @buffers.delete(:param_value)
@@ -2137,12 +2242,19 @@ begin
2137
2242
  param_node = parameter()
2138
2243
  completed = true
2139
2244
  prefix_node = @buffers.delete(:param_prefix)
2140
- unless prefix_node.nil?
2245
+ if prefix_node
2141
2246
  param_node <<= prefix_node
2142
2247
  unless prefix_node.complete
2143
2248
  trace('PN incomplete')
2144
2249
  completed = false
2145
2250
  end
2251
+ else
2252
+ prefix_node = prefix(nil)
2253
+ prefix_node.complete = true
2254
+
2255
+ trace('PN complete (no prefix)')
2256
+ param_node <<= prefix_node
2257
+ completed = true
2146
2258
  end
2147
2259
 
2148
2260
  value_node = @buffers.delete(:param_value)
@@ -2198,12 +2310,19 @@ begin
2198
2310
  param_node = parameter()
2199
2311
  completed = true
2200
2312
  prefix_node = @buffers.delete(:param_prefix)
2201
- unless prefix_node.nil?
2313
+ if prefix_node
2202
2314
  param_node <<= prefix_node
2203
2315
  unless prefix_node.complete
2204
2316
  trace('PN incomplete')
2205
2317
  completed = false
2206
2318
  end
2319
+ else
2320
+ prefix_node = prefix(nil)
2321
+ prefix_node.complete = true
2322
+
2323
+ trace('PN complete (no prefix)')
2324
+ param_node <<= prefix_node
2325
+ completed = true
2207
2326
  end
2208
2327
 
2209
2328
  value_node = @buffers.delete(:param_value)
@@ -2259,12 +2378,19 @@ begin
2259
2378
  param_node = parameter()
2260
2379
  completed = true
2261
2380
  prefix_node = @buffers.delete(:param_prefix)
2262
- unless prefix_node.nil?
2381
+ if prefix_node
2263
2382
  param_node <<= prefix_node
2264
2383
  unless prefix_node.complete
2265
2384
  trace('PN incomplete')
2266
2385
  completed = false
2267
2386
  end
2387
+ else
2388
+ prefix_node = prefix(nil)
2389
+ prefix_node.complete = true
2390
+
2391
+ trace('PN complete (no prefix)')
2392
+ param_node <<= prefix_node
2393
+ completed = true
2268
2394
  end
2269
2395
 
2270
2396
  value_node = @buffers.delete(:param_value)
@@ -2757,12 +2883,19 @@ begin
2757
2883
  param_node = parameter()
2758
2884
  completed = true
2759
2885
  prefix_node = @buffers.delete(:param_prefix)
2760
- unless prefix_node.nil?
2886
+ if prefix_node
2761
2887
  param_node <<= prefix_node
2762
2888
  unless prefix_node.complete
2763
2889
  trace('PN incomplete')
2764
2890
  completed = false
2765
2891
  end
2892
+ else
2893
+ prefix_node = prefix(nil)
2894
+ prefix_node.complete = true
2895
+
2896
+ trace('PN complete (no prefix)')
2897
+ param_node <<= prefix_node
2898
+ completed = true
2766
2899
  end
2767
2900
 
2768
2901
  value_node = @buffers.delete(:param_value)
@@ -2853,12 +2986,19 @@ begin
2853
2986
  param_node = parameter()
2854
2987
  completed = true
2855
2988
  prefix_node = @buffers.delete(:param_prefix)
2856
- unless prefix_node.nil?
2989
+ if prefix_node
2857
2990
  param_node <<= prefix_node
2858
2991
  unless prefix_node.complete
2859
2992
  trace('PN incomplete')
2860
2993
  completed = false
2861
2994
  end
2995
+ else
2996
+ prefix_node = prefix(nil)
2997
+ prefix_node.complete = true
2998
+
2999
+ trace('PN complete (no prefix)')
3000
+ param_node <<= prefix_node
3001
+ completed = true
2862
3002
  end
2863
3003
 
2864
3004
  value_node = @buffers.delete(:param_value)
@@ -2894,12 +3034,19 @@ begin
2894
3034
  param_node = parameter()
2895
3035
  completed = true
2896
3036
  prefix_node = @buffers.delete(:param_prefix)
2897
- unless prefix_node.nil?
3037
+ if prefix_node
2898
3038
  param_node <<= prefix_node
2899
3039
  unless prefix_node.complete
2900
3040
  trace('PN incomplete')
2901
3041
  completed = false
2902
3042
  end
3043
+ else
3044
+ prefix_node = prefix(nil)
3045
+ prefix_node.complete = true
3046
+
3047
+ trace('PN complete (no prefix)')
3048
+ param_node <<= prefix_node
3049
+ completed = true
2903
3050
  end
2904
3051
 
2905
3052
  value_node = @buffers.delete(:param_value)
@@ -2944,12 +3091,19 @@ begin
2944
3091
  param_node = parameter()
2945
3092
  completed = true
2946
3093
  prefix_node = @buffers.delete(:param_prefix)
2947
- unless prefix_node.nil?
3094
+ if prefix_node
2948
3095
  param_node <<= prefix_node
2949
3096
  unless prefix_node.complete
2950
3097
  trace('PN incomplete')
2951
3098
  completed = false
2952
3099
  end
3100
+ else
3101
+ prefix_node = prefix(nil)
3102
+ prefix_node.complete = true
3103
+
3104
+ trace('PN complete (no prefix)')
3105
+ param_node <<= prefix_node
3106
+ completed = true
2953
3107
  end
2954
3108
 
2955
3109
  value_node = @buffers.delete(:param_value)
@@ -3129,12 +3283,19 @@ begin
3129
3283
  param_node = parameter()
3130
3284
  completed = true
3131
3285
  prefix_node = @buffers.delete(:param_prefix)
3132
- unless prefix_node.nil?
3286
+ if prefix_node
3133
3287
  param_node <<= prefix_node
3134
3288
  unless prefix_node.complete
3135
3289
  trace('PN incomplete')
3136
3290
  completed = false
3137
3291
  end
3292
+ else
3293
+ prefix_node = prefix(nil)
3294
+ prefix_node.complete = true
3295
+
3296
+ trace('PN complete (no prefix)')
3297
+ param_node <<= prefix_node
3298
+ completed = true
3138
3299
  end
3139
3300
 
3140
3301
  value_node = @buffers.delete(:param_value)
@@ -3235,12 +3396,19 @@ begin
3235
3396
  param_node = parameter()
3236
3397
  completed = true
3237
3398
  prefix_node = @buffers.delete(:param_prefix)
3238
- unless prefix_node.nil?
3399
+ if prefix_node
3239
3400
  param_node <<= prefix_node
3240
3401
  unless prefix_node.complete
3241
3402
  trace('PN incomplete')
3242
3403
  completed = false
3243
3404
  end
3405
+ else
3406
+ prefix_node = prefix(nil)
3407
+ prefix_node.complete = true
3408
+
3409
+ trace('PN complete (no prefix)')
3410
+ param_node <<= prefix_node
3411
+ completed = true
3244
3412
  end
3245
3413
 
3246
3414
  value_node = @buffers.delete(:param_value)
@@ -3341,12 +3509,19 @@ begin
3341
3509
  param_node = parameter()
3342
3510
  completed = true
3343
3511
  prefix_node = @buffers.delete(:param_prefix)
3344
- unless prefix_node.nil?
3512
+ if prefix_node
3345
3513
  param_node <<= prefix_node
3346
3514
  unless prefix_node.complete
3347
3515
  trace('PN incomplete')
3348
3516
  completed = false
3349
3517
  end
3518
+ else
3519
+ prefix_node = prefix(nil)
3520
+ prefix_node.complete = true
3521
+
3522
+ trace('PN complete (no prefix)')
3523
+ param_node <<= prefix_node
3524
+ completed = true
3350
3525
  end
3351
3526
 
3352
3527
  value_node = @buffers.delete(:param_value)
@@ -3402,12 +3577,19 @@ begin
3402
3577
  param_node = parameter()
3403
3578
  completed = true
3404
3579
  prefix_node = @buffers.delete(:param_prefix)
3405
- unless prefix_node.nil?
3580
+ if prefix_node
3406
3581
  param_node <<= prefix_node
3407
3582
  unless prefix_node.complete
3408
3583
  trace('PN incomplete')
3409
3584
  completed = false
3410
3585
  end
3586
+ else
3587
+ prefix_node = prefix(nil)
3588
+ prefix_node.complete = true
3589
+
3590
+ trace('PN complete (no prefix)')
3591
+ param_node <<= prefix_node
3592
+ completed = true
3411
3593
  end
3412
3594
 
3413
3595
  value_node = @buffers.delete(:param_value)
@@ -3463,12 +3645,19 @@ begin
3463
3645
  param_node = parameter()
3464
3646
  completed = true
3465
3647
  prefix_node = @buffers.delete(:param_prefix)
3466
- unless prefix_node.nil?
3648
+ if prefix_node
3467
3649
  param_node <<= prefix_node
3468
3650
  unless prefix_node.complete
3469
3651
  trace('PN incomplete')
3470
3652
  completed = false
3471
3653
  end
3654
+ else
3655
+ prefix_node = prefix(nil)
3656
+ prefix_node.complete = true
3657
+
3658
+ trace('PN complete (no prefix)')
3659
+ param_node <<= prefix_node
3660
+ completed = true
3472
3661
  end
3473
3662
 
3474
3663
  value_node = @buffers.delete(:param_value)
@@ -26,12 +26,19 @@
26
26
  param_node = parameter()
27
27
  completed = true
28
28
  prefix_node = @buffers.delete(:param_prefix)
29
- unless prefix_node.nil?
29
+ if prefix_node
30
30
  param_node <<= prefix_node
31
31
  unless prefix_node.complete
32
32
  trace('PN incomplete')
33
33
  completed = false
34
34
  end
35
+ else
36
+ prefix_node = prefix(nil)
37
+ prefix_node.complete = true
38
+
39
+ trace('PN complete (no prefix)')
40
+ param_node <<= prefix_node
41
+ completed = true
35
42
  end
36
43
 
37
44
  value_node = @buffers.delete(:param_value)