edtf 3.0.5 → 3.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 87a0f22cbe9f6c23a2a866e4b0ca189b2004032ab696838a5f654e8291d31c14
4
- data.tar.gz: 82248eca4a7355b0c909794d80b14cee7588e48f2f3159ad0969c9f04813107d
3
+ metadata.gz: 6ae495726f6cf31d59abe7287cf15cc0f1f9c4351b39cb1f0ace76f568db116c
4
+ data.tar.gz: 64c86e16af98822eb03d043665f0f78c94afe0136d30c565026d165888b66058
5
5
  SHA512:
6
- metadata.gz: 36c62ad45ff45792ee3ec9fd5c45a7763476098bca5105577c65c16576f2f913641e016f1d9b01043bdf8ef9a1a5f68a52e438be9378e8b3c33eb0bf89bd9387
7
- data.tar.gz: dc3cefb8eb0033c9fd238fe08cbeebea902e27554c8d4cccdddcc188c1ac9cd73f3d76145c9a4fa721416e33a19ddb780167f11c966acbb54047be1f0b736a5b
6
+ metadata.gz: 363365cb65e9e8c0bb27d067ad16ebd3878f711662bebc89d64dc59be0f22cb96ce878730fce0f28a7a444b468f9547c296ed4ff739a2878edb2c63dbedbc0ba
7
+ data.tar.gz: aa3647e4949f4da126069e955104208b99da67688d822fa2b6f20943919cbbeaca4adb84b76ed95f7bd6b9fc8db1fc5d088a24d0de2ea1528e9653d904acdf82
@@ -61,9 +61,9 @@ module EDTF
61
61
  false
62
62
  end
63
63
 
64
- def each
64
+ def each(&block)
65
65
  if block_given?
66
- to_range.each(&Proc.new)
66
+ to_range.each(&block)
67
67
  else
68
68
  to_enum
69
69
  end
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.4.14
4
- # from Racc grammer file "".
3
+ # This file is automatically generated by Racc 1.5.0
4
+ # from Racc grammar file "".
5
5
  #
6
6
 
7
7
  require 'racc/parser.rb'
@@ -11,7 +11,7 @@ require 'strscan'
11
11
  module EDTF
12
12
  class Parser < Racc::Parser
13
13
 
14
- module_eval(<<'...end parser.y/module_eval...', 'parser.y', 447)
14
+ module_eval(<<'...end parser.y/module_eval...', 'parser.y', 453)
15
15
 
16
16
  @defaults = {
17
17
  :level => 2,
@@ -355,39 +355,39 @@ racc_action_pointer = [
355
355
  388, nil, nil, 384, nil, nil, nil ]
356
356
 
357
357
  racc_action_default = [
358
- -179, -179, -1, -2, -3, -4, -5, -6, -7, -8,
359
- -23, -179, -179, -33, -34, -35, -36, -37, -179, -39,
360
- -40, -41, -42, -43, -179, -52, -54, -55, -179, -67,
361
- -70, -71, -72, -73, -74, -179, -179, -110, -179, -112,
362
- -113, -114, -131, -132, -133, -134, -135, -136, -137, -138,
363
- -139, -140, -141, -179, -179, -79, -179, -115, -179, -179,
364
- -179, -24, -179, -44, -179, -179, -75, -179, -179, -179,
365
- -58, -179, -173, -179, -6, -7, -8, -39, -179, -84,
366
- -89, -90, -91, -93, -94, -95, -96, -97, -179, -179,
367
- -179, -179, -179, -179, -179, -179, -179, -179, -179, 327,
368
- -9, -10, -179, -13, -179, -30, -179, -179, -155, -26,
369
- -28, -179, -129, -179, -179, -179, -179, -27, -29, -179,
370
- -179, -179, -156, -163, -179, -165, -179, -179, -179, -179,
371
- -179, -76, -177, -179, -179, -179, -6, -50, -51, -52,
372
- -53, -54, -56, -57, -61, -59, -179, -174, -179, -179,
373
- -101, -100, -99, -82, -179, -179, -6, -7, -98, -83,
374
- -179, -179, -179, -179, -129, -179, -129, -179, -11, -15,
375
- -179, -179, -179, -179, -150, -151, -152, -153, -148, -154,
376
- -149, -117, -47, -62, -130, -63, -64, -65, -66, -142,
377
- -143, -144, -145, -179, -179, -179, -123, -48, -157, -158,
378
- -159, -160, -161, -162, -164, -166, -179, -179, -25, -45,
379
- -80, -46, -81, -178, -38, -179, -179, -179, -179, -175,
380
- -77, -179, -104, -179, -103, -179, -102, -86, -87, -88,
381
- -92, -179, -179, -179, -111, -179, -116, -179, -179, -179,
382
- -120, -179, -16, -179, -179, -179, -146, -17, -18, -179,
383
- -179, -31, -179, -167, -179, -179, -179, -172, -179, -179,
384
- -118, -179, -179, -124, -105, -179, -179, -78, -176, -47,
385
- -179, -28, -29, -119, -179, -179, -121, -179, -179, -147,
386
- -179, -179, -179, -171, -168, -169, -170, -179, -179, -109,
387
- -129, -179, -179, -108, -106, -179, -60, -179, -85, -179,
388
- -179, -20, -179, -179, -179, -12, -32, -179, -49, -122,
389
- -125, -179, -107, -127, -179, -179, -22, -179, -179, -179,
390
- -179, -21, -19, -179, -126, -128, -14 ]
358
+ -180, -180, -1, -2, -3, -4, -5, -6, -7, -8,
359
+ -23, -180, -180, -33, -34, -35, -36, -37, -180, -39,
360
+ -40, -41, -42, -43, -180, -52, -54, -55, -180, -67,
361
+ -70, -71, -72, -73, -74, -180, -180, -111, -180, -113,
362
+ -114, -115, -132, -133, -134, -135, -136, -137, -138, -139,
363
+ -140, -141, -142, -180, -180, -79, -180, -116, -180, -180,
364
+ -180, -24, -180, -44, -180, -180, -75, -180, -180, -180,
365
+ -58, -180, -174, -180, -6, -7, -8, -39, -180, -84,
366
+ -89, -90, -91, -93, -94, -95, -96, -97, -180, -180,
367
+ -180, -180, -180, -180, -180, -180, -180, -180, -180, 327,
368
+ -9, -10, -180, -13, -180, -30, -180, -180, -156, -26,
369
+ -28, -180, -130, -180, -180, -180, -180, -27, -29, -180,
370
+ -180, -180, -157, -164, -180, -166, -180, -180, -180, -180,
371
+ -180, -76, -178, -180, -106, -180, -6, -50, -51, -52,
372
+ -53, -54, -56, -57, -61, -59, -180, -175, -180, -180,
373
+ -101, -100, -99, -82, -180, -180, -6, -7, -98, -83,
374
+ -180, -180, -180, -180, -130, -180, -130, -180, -11, -15,
375
+ -180, -180, -180, -180, -151, -152, -153, -154, -149, -155,
376
+ -150, -118, -47, -62, -131, -63, -64, -65, -66, -143,
377
+ -144, -145, -146, -180, -180, -180, -124, -48, -158, -159,
378
+ -160, -161, -162, -163, -165, -167, -180, -180, -25, -45,
379
+ -80, -46, -81, -179, -38, -180, -180, -180, -180, -176,
380
+ -77, -180, -104, -180, -103, -180, -102, -86, -87, -88,
381
+ -92, -180, -180, -180, -112, -180, -117, -180, -180, -180,
382
+ -121, -180, -16, -180, -180, -180, -147, -17, -18, -180,
383
+ -180, -31, -180, -168, -180, -180, -180, -173, -180, -180,
384
+ -119, -180, -180, -125, -105, -180, -180, -78, -177, -47,
385
+ -180, -28, -29, -120, -180, -180, -122, -180, -180, -148,
386
+ -180, -180, -180, -172, -169, -170, -171, -180, -180, -110,
387
+ -130, -180, -180, -109, -107, -180, -60, -180, -85, -180,
388
+ -180, -20, -180, -180, -180, -12, -32, -180, -49, -123,
389
+ -126, -180, -108, -128, -180, -180, -22, -180, -180, -180,
390
+ -180, -21, -19, -180, -127, -129, -14 ]
391
391
 
392
392
  racc_goto_table = [
393
393
  72, 118, 126, 12, 183, 131, 230, 253, 8, 250,
@@ -576,32 +576,33 @@ racc_reduce_table = [
576
576
  3, 98, :_reduce_103,
577
577
  3, 98, :_reduce_104,
578
578
  5, 79, :_reduce_105,
579
- 6, 79, :_reduce_106,
580
- 7, 79, :_reduce_107,
581
- 6, 79, :_reduce_108,
579
+ 3, 79, :_reduce_106,
580
+ 6, 79, :_reduce_107,
581
+ 7, 79, :_reduce_108,
582
582
  6, 79, :_reduce_109,
583
+ 6, 79, :_reduce_110,
583
584
  1, 78, :_reduce_none,
584
- 4, 78, :_reduce_111,
585
- 1, 99, :_reduce_112,
585
+ 4, 78, :_reduce_112,
586
586
  1, 99, :_reduce_113,
587
587
  1, 99, :_reduce_114,
588
- 2, 100, :_reduce_115,
589
- 4, 101, :_reduce_116,
588
+ 1, 99, :_reduce_115,
589
+ 2, 100, :_reduce_116,
590
590
  4, 101, :_reduce_117,
591
- 5, 101, :_reduce_118,
591
+ 4, 101, :_reduce_118,
592
592
  5, 101, :_reduce_119,
593
- 4, 102, :_reduce_120,
594
- 5, 102, :_reduce_121,
595
- 7, 102, :_reduce_122,
596
- 4, 102, :_reduce_123,
597
- 5, 102, :_reduce_124,
598
- 7, 102, :_reduce_125,
599
- 9, 102, :_reduce_126,
600
- 7, 102, :_reduce_127,
601
- 9, 102, :_reduce_128,
602
- 0, 83, :_reduce_129,
593
+ 5, 101, :_reduce_120,
594
+ 4, 102, :_reduce_121,
595
+ 5, 102, :_reduce_122,
596
+ 7, 102, :_reduce_123,
597
+ 4, 102, :_reduce_124,
598
+ 5, 102, :_reduce_125,
599
+ 7, 102, :_reduce_126,
600
+ 9, 102, :_reduce_127,
601
+ 7, 102, :_reduce_128,
602
+ 9, 102, :_reduce_129,
603
+ 0, 83, :_reduce_130,
603
604
  1, 83, :_reduce_none,
604
- 1, 59, :_reduce_131,
605
+ 1, 59, :_reduce_132,
605
606
  1, 59, :_reduce_none,
606
607
  1, 81, :_reduce_none,
607
608
  1, 81, :_reduce_none,
@@ -612,45 +613,45 @@ racc_reduce_table = [
612
613
  1, 81, :_reduce_none,
613
614
  1, 81, :_reduce_none,
614
615
  1, 81, :_reduce_none,
615
- 2, 61, :_reduce_142,
616
616
  2, 61, :_reduce_143,
617
617
  2, 61, :_reduce_144,
618
618
  2, 61, :_reduce_145,
619
+ 2, 61, :_reduce_146,
619
620
  1, 56, :_reduce_none,
620
- 2, 56, :_reduce_147,
621
- 2, 103, :_reduce_148,
621
+ 2, 56, :_reduce_148,
622
622
  2, 103, :_reduce_149,
623
623
  2, 103, :_reduce_150,
624
624
  2, 103, :_reduce_151,
625
625
  2, 103, :_reduce_152,
626
626
  2, 103, :_reduce_153,
627
+ 2, 103, :_reduce_154,
627
628
  2, 64, :_reduce_none,
628
629
  1, 64, :_reduce_none,
629
630
  1, 104, :_reduce_none,
630
- 2, 104, :_reduce_157,
631
631
  2, 104, :_reduce_158,
632
632
  2, 104, :_reduce_159,
633
633
  2, 104, :_reduce_160,
634
634
  2, 104, :_reduce_161,
635
635
  2, 104, :_reduce_162,
636
+ 2, 104, :_reduce_163,
636
637
  1, 105, :_reduce_none,
637
- 2, 105, :_reduce_164,
638
+ 2, 105, :_reduce_165,
638
639
  1, 63, :_reduce_none,
639
- 2, 63, :_reduce_166,
640
+ 2, 63, :_reduce_167,
640
641
  1, 57, :_reduce_none,
641
- 2, 57, :_reduce_168,
642
642
  2, 57, :_reduce_169,
643
643
  2, 57, :_reduce_170,
644
+ 2, 57, :_reduce_171,
644
645
  2, 65, :_reduce_none,
645
646
  1, 65, :_reduce_none,
646
- 1, 91, :_reduce_173,
647
- 2, 91, :_reduce_174,
648
- 3, 91, :_reduce_175,
649
- 4, 91, :_reduce_176,
650
- 1, 90, :_reduce_177,
651
- 2, 90, :_reduce_178 ]
647
+ 1, 91, :_reduce_174,
648
+ 2, 91, :_reduce_175,
649
+ 3, 91, :_reduce_176,
650
+ 4, 91, :_reduce_177,
651
+ 1, 90, :_reduce_178,
652
+ 2, 90, :_reduce_179 ]
652
653
 
653
- racc_reduce_n = 179
654
+ racc_reduce_n = 180
654
655
 
655
656
  racc_shift_n = 327
656
657
 
@@ -839,21 +840,21 @@ Racc_debug_parser = false
839
840
 
840
841
  module_eval(<<'.,.,', 'parser.y', 23)
841
842
  def _reduce_6(val, _values, result)
842
- result = Date.new(val[0]).year_precision!
843
+ result = Date.new(val[0]).year_precision!
843
844
  result
844
845
  end
845
846
  .,.,
846
847
 
847
848
  module_eval(<<'.,.,', 'parser.y', 24)
848
849
  def _reduce_7(val, _values, result)
849
- result = Date.new(*val.flatten).month_precision!
850
+ result = Date.new(*val.flatten).month_precision!
850
851
  result
851
852
  end
852
853
  .,.,
853
854
 
854
855
  module_eval(<<'.,.,', 'parser.y', 25)
855
856
  def _reduce_8(val, _values, result)
856
- result = Date.new(*val.flatten).day_precision!
857
+ result = Date.new(*val.flatten).day_precision!
857
858
  result
858
859
  end
859
860
  .,.,
@@ -862,7 +863,7 @@ module_eval(<<'.,.,', 'parser.y', 30)
862
863
  def _reduce_9(val, _values, result)
863
864
  result = DateTime.new(val[0].year, val[0].month, val[0].day, *val[2])
864
865
  result.skip_timezone = (val[2].length == 3)
865
-
866
+
866
867
  result
867
868
  end
868
869
  .,.,
@@ -871,14 +872,14 @@ module_eval(<<'.,.,', 'parser.y', 30)
871
872
 
872
873
  module_eval(<<'.,.,', 'parser.y', 35)
873
874
  def _reduce_11(val, _values, result)
874
- result = val.flatten
875
+ result = val.flatten
875
876
  result
876
877
  end
877
878
  .,.,
878
879
 
879
880
  module_eval(<<'.,.,', 'parser.y', 37)
880
881
  def _reduce_12(val, _values, result)
881
- result = val.values_at(0, 2, 4)
882
+ result = val.values_at(0, 2, 4)
882
883
  result
883
884
  end
884
885
  .,.,
@@ -887,28 +888,28 @@ module_eval(<<'.,.,', 'parser.y', 37)
887
888
 
888
889
  module_eval(<<'.,.,', 'parser.y', 40)
889
890
  def _reduce_14(val, _values, result)
890
- result = [24, 0, 0]
891
+ result = [24, 0, 0]
891
892
  result
892
893
  end
893
894
  .,.,
894
895
 
895
896
  module_eval(<<'.,.,', 'parser.y', 42)
896
897
  def _reduce_15(val, _values, result)
897
- result = 0
898
+ result = 0
898
899
  result
899
900
  end
900
901
  .,.,
901
902
 
902
903
  module_eval(<<'.,.,', 'parser.y', 43)
903
904
  def _reduce_16(val, _values, result)
904
- result = -1 * val[1]
905
+ result = -1 * val[1]
905
906
  result
906
907
  end
907
908
  .,.,
908
909
 
909
910
  module_eval(<<'.,.,', 'parser.y', 44)
910
911
  def _reduce_17(val, _values, result)
911
- result = val[1]
912
+ result = val[1]
912
913
  result
913
914
  end
914
915
  .,.,
@@ -917,28 +918,28 @@ module_eval(<<'.,.,', 'parser.y', 44)
917
918
 
918
919
  module_eval(<<'.,.,', 'parser.y', 48)
919
920
  def _reduce_19(val, _values, result)
920
- result = 0
921
+ result = 0
921
922
  result
922
923
  end
923
924
  .,.,
924
925
 
925
926
  module_eval(<<'.,.,', 'parser.y', 52)
926
927
  def _reduce_20(val, _values, result)
927
- result = Rational(val[0] * 60 + val[2], 1440)
928
+ result = Rational(val[0] * 60 + val[2], 1440)
928
929
  result
929
930
  end
930
931
  .,.,
931
932
 
932
933
  module_eval(<<'.,.,', 'parser.y', 53)
933
934
  def _reduce_21(val, _values, result)
934
- result = Rational(840, 1440)
935
+ result = Rational(840, 1440)
935
936
  result
936
937
  end
937
938
  .,.,
938
939
 
939
940
  module_eval(<<'.,.,', 'parser.y', 54)
940
941
  def _reduce_22(val, _values, result)
941
- result = Rational(val[3], 1440)
942
+ result = Rational(val[3], 1440)
942
943
  result
943
944
  end
944
945
  .,.,
@@ -947,7 +948,7 @@ module_eval(<<'.,.,', 'parser.y', 54)
947
948
 
948
949
  module_eval(<<'.,.,', 'parser.y', 58)
949
950
  def _reduce_24(val, _values, result)
950
- result = -val[1]
951
+ result = -val[1]
951
952
  result
952
953
  end
953
954
  .,.,
@@ -955,7 +956,7 @@ module_eval(<<'.,.,', 'parser.y', 58)
955
956
  module_eval(<<'.,.,', 'parser.y', 61)
956
957
  def _reduce_25(val, _values, result)
957
958
  result = val.zip([1000,100,10,1]).reduce(0) { |s,(a,b)| s += a * b }
958
-
959
+
959
960
  result
960
961
  end
961
962
  .,.,
@@ -966,7 +967,7 @@ module_eval(<<'.,.,', 'parser.y', 61)
966
967
 
967
968
  module_eval(<<'.,.,', 'parser.y', 67)
968
969
  def _reduce_28(val, _values, result)
969
- result = [val[0], val[2]]
970
+ result = [val[0], val[2]]
970
971
  result
971
972
  end
972
973
  .,.,
@@ -977,7 +978,7 @@ module_eval(<<'.,.,', 'parser.y', 74)
977
978
  if result[2] > 31 || (result[2] > 30 && [2,4,6,9,11].include?(result[1])) || (result[2] > 29 && result[1] == 2)
978
979
  raise ArgumentError, "invalid date (invalid days #{result[2]} for month #{result[1]})"
979
980
  end
980
-
981
+
981
982
  result
982
983
  end
983
984
  .,.,
@@ -1000,7 +1001,7 @@ module_eval(<<'.,.,', 'parser.y', 74)
1000
1001
 
1001
1002
  module_eval(<<'.,.,', 'parser.y', 93)
1002
1003
  def _reduce_38(val, _values, result)
1003
- result = EDTF::Unknown.new
1004
+ result = EDTF::Unknown.new
1004
1005
  result
1005
1006
  end
1006
1007
  .,.,
@@ -1009,7 +1010,7 @@ module_eval(<<'.,.,', 'parser.y', 99)
1009
1010
  def _reduce_39(val, _values, result)
1010
1011
  result = Date.new(val[0][0]).year_precision!
1011
1012
  result.unspecified.year[2,2] = val[0][1]
1012
-
1013
+
1013
1014
  result
1014
1015
  end
1015
1016
  .,.,
@@ -1026,7 +1027,7 @@ module_eval(<<'.,.,', 'parser.y', 110)
1026
1027
  def _reduce_44(val, _values, result)
1027
1028
  result = val[1]
1028
1029
  result[0] = -result[0]
1029
-
1030
+
1030
1031
  result
1031
1032
  end
1032
1033
  .,.,
@@ -1034,7 +1035,7 @@ module_eval(<<'.,.,', 'parser.y', 110)
1034
1035
  module_eval(<<'.,.,', 'parser.y', 117)
1035
1036
  def _reduce_45(val, _values, result)
1036
1037
  result = [val[0,3].zip([1000,100,10]).reduce(0) { |s,(a,b)| s += a * b }, [false,true]]
1037
-
1038
+
1038
1039
  result
1039
1040
  end
1040
1041
  .,.,
@@ -1042,7 +1043,7 @@ module_eval(<<'.,.,', 'parser.y', 117)
1042
1043
  module_eval(<<'.,.,', 'parser.y', 121)
1043
1044
  def _reduce_46(val, _values, result)
1044
1045
  result = [val[0,2].zip([1000,100]).reduce(0) { |s,(a,b)| s += a * b }, [true, true]]
1045
-
1046
+
1046
1047
  result
1047
1048
  end
1048
1049
  .,.,
@@ -1051,7 +1052,7 @@ module_eval(<<'.,.,', 'parser.y', 125)
1051
1052
  def _reduce_47(val, _values, result)
1052
1053
  result = Date.new(val[0]).unspecified!(:month)
1053
1054
  result.precision = :month
1054
-
1055
+
1055
1056
  result
1056
1057
  end
1057
1058
  .,.,
@@ -1059,7 +1060,7 @@ module_eval(<<'.,.,', 'parser.y', 125)
1059
1060
  module_eval(<<'.,.,', 'parser.y', 130)
1060
1061
  def _reduce_48(val, _values, result)
1061
1062
  result = Date.new(*val[0]).unspecified!(:day)
1062
-
1063
+
1063
1064
  result
1064
1065
  end
1065
1066
  .,.,
@@ -1067,7 +1068,7 @@ module_eval(<<'.,.,', 'parser.y', 130)
1067
1068
  module_eval(<<'.,.,', 'parser.y', 134)
1068
1069
  def _reduce_49(val, _values, result)
1069
1070
  result = Date.new(val[0]).unspecified!([:day,:month])
1070
-
1071
+
1071
1072
  result
1072
1073
  end
1073
1074
  .,.,
@@ -1075,7 +1076,7 @@ module_eval(<<'.,.,', 'parser.y', 134)
1075
1076
  module_eval(<<'.,.,', 'parser.y', 139)
1076
1077
  def _reduce_50(val, _values, result)
1077
1078
  result = Interval.new(val[0], val[2])
1078
-
1079
+
1079
1080
  result
1080
1081
  end
1081
1082
  .,.,
@@ -1098,7 +1099,7 @@ module_eval(<<'.,.,', 'parser.y', 150)
1098
1099
  def _reduce_58(val, _values, result)
1099
1100
  result = Date.new(val[1])
1100
1101
  result.precision = :year
1101
-
1102
+
1102
1103
  result
1103
1104
  end
1104
1105
  .,.,
@@ -1107,7 +1108,7 @@ module_eval(<<'.,.,', 'parser.y', 155)
1107
1108
  def _reduce_59(val, _values, result)
1108
1109
  result = Date.new(-1 * val[2])
1109
1110
  result.precision = :year
1110
-
1111
+
1111
1112
  result
1112
1113
  end
1113
1114
  .,.,
@@ -1115,14 +1116,14 @@ module_eval(<<'.,.,', 'parser.y', 155)
1115
1116
  module_eval(<<'.,.,', 'parser.y', 162)
1116
1117
  def _reduce_60(val, _values, result)
1117
1118
  result = val.zip([10000,1000,100,10,1]).reduce(0) { |s,(a,b)| s += a * b }
1118
-
1119
+
1119
1120
  result
1120
1121
  end
1121
1122
  .,.,
1122
1123
 
1123
1124
  module_eval(<<'.,.,', 'parser.y', 164)
1124
1125
  def _reduce_61(val, _values, result)
1125
- result = 10 * val[0] + val[1]
1126
+ result = 10 * val[0] + val[1]
1126
1127
  result
1127
1128
  end
1128
1129
  .,.,
@@ -1131,35 +1132,35 @@ module_eval(<<'.,.,', 'parser.y', 169)
1131
1132
  def _reduce_62(val, _values, result)
1132
1133
  result = Season.new(val[0], val[2])
1133
1134
  val[3].each { |ua| result.send(ua) }
1134
-
1135
+
1135
1136
  result
1136
1137
  end
1137
1138
  .,.,
1138
1139
 
1139
1140
  module_eval(<<'.,.,', 'parser.y', 173)
1140
1141
  def _reduce_63(val, _values, result)
1141
- result = 21
1142
+ result = 21
1142
1143
  result
1143
1144
  end
1144
1145
  .,.,
1145
1146
 
1146
1147
  module_eval(<<'.,.,', 'parser.y', 174)
1147
1148
  def _reduce_64(val, _values, result)
1148
- result = 22
1149
+ result = 22
1149
1150
  result
1150
1151
  end
1151
1152
  .,.,
1152
1153
 
1153
1154
  module_eval(<<'.,.,', 'parser.y', 175)
1154
1155
  def _reduce_65(val, _values, result)
1155
- result = 23
1156
+ result = 23
1156
1157
  result
1157
1158
  end
1158
1159
  .,.,
1159
1160
 
1160
1161
  module_eval(<<'.,.,', 'parser.y', 176)
1161
1162
  def _reduce_66(val, _values, result)
1162
- result = 24
1163
+ result = 24
1163
1164
  result
1164
1165
  end
1165
1166
  .,.,
@@ -1182,7 +1183,7 @@ module_eval(<<'.,.,', 'parser.y', 176)
1182
1183
 
1183
1184
  module_eval(<<'.,.,', 'parser.y', 194)
1184
1185
  def _reduce_75(val, _values, result)
1185
- result = val[0]; result.qualifier = val[1]
1186
+ result = val[0]; result.qualifier = val[1]
1186
1187
  result
1187
1188
  end
1188
1189
  .,.,
@@ -1190,7 +1191,7 @@ module_eval(<<'.,.,', 'parser.y', 194)
1190
1191
  module_eval(<<'.,.,', 'parser.y', 200)
1191
1192
  def _reduce_76(val, _values, result)
1192
1193
  result = Date.new(val[0].year * 10 ** val[2]).year_precision!
1193
-
1194
+
1194
1195
  result
1195
1196
  end
1196
1197
  .,.,
@@ -1198,7 +1199,7 @@ module_eval(<<'.,.,', 'parser.y', 200)
1198
1199
  module_eval(<<'.,.,', 'parser.y', 204)
1199
1200
  def _reduce_77(val, _values, result)
1200
1201
  result = Date.new(val[1] * 10 ** val[3]).year_precision!
1201
-
1202
+
1202
1203
  result
1203
1204
  end
1204
1205
  .,.,
@@ -1206,14 +1207,14 @@ module_eval(<<'.,.,', 'parser.y', 204)
1206
1207
  module_eval(<<'.,.,', 'parser.y', 208)
1207
1208
  def _reduce_78(val, _values, result)
1208
1209
  result = Date.new(-1 * val[2] * 10 ** val[4]).year_precision!
1209
-
1210
+
1210
1211
  result
1211
1212
  end
1212
1213
  .,.,
1213
1214
 
1214
1215
  module_eval(<<'.,.,', 'parser.y', 213)
1215
1216
  def _reduce_79(val, _values, result)
1216
- result = val[0]; result.calendar = val[1]
1217
+ result = val[0]; result.calendar = val[1]
1217
1218
  result
1218
1219
  end
1219
1220
  .,.,
@@ -1222,7 +1223,7 @@ module_eval(<<'.,.,', 'parser.y', 219)
1222
1223
  def _reduce_80(val, _values, result)
1223
1224
  d = val[0,3].zip([1000,100,10]).reduce(0) { |s,(a,b)| s += a * b }
1224
1225
  result = EDTF::Decade.new(d)
1225
-
1226
+
1226
1227
  result
1227
1228
  end
1228
1229
  .,.,
@@ -1231,84 +1232,84 @@ module_eval(<<'.,.,', 'parser.y', 224)
1231
1232
  def _reduce_81(val, _values, result)
1232
1233
  d = val[0,2].zip([1000,100]).reduce(0) { |s,(a,b)| s += a * b }
1233
1234
  result = EDTF::Century.new(d)
1234
-
1235
+
1235
1236
  result
1236
1237
  end
1237
1238
  .,.,
1238
1239
 
1239
1240
  module_eval(<<'.,.,', 'parser.y', 230)
1240
1241
  def _reduce_82(val, _values, result)
1241
- result = val[1].choice!
1242
+ result = val[1].choice!
1242
1243
  result
1243
1244
  end
1244
1245
  .,.,
1245
1246
 
1246
1247
  module_eval(<<'.,.,', 'parser.y', 232)
1247
1248
  def _reduce_83(val, _values, result)
1248
- result = val[1]
1249
+ result = val[1]
1249
1250
  result
1250
1251
  end
1251
1252
  .,.,
1252
1253
 
1253
1254
  module_eval(<<'.,.,', 'parser.y', 234)
1254
1255
  def _reduce_84(val, _values, result)
1255
- result = EDTF::Set.new(val[0]).earlier!
1256
+ result = EDTF::Set.new(val[0]).earlier!
1256
1257
  result
1257
1258
  end
1258
1259
  .,.,
1259
1260
 
1260
1261
  module_eval(<<'.,.,', 'parser.y', 235)
1261
1262
  def _reduce_85(val, _values, result)
1262
- result = EDTF::Set.new([val[0]] + val[2] + [val[4]]).earlier!.later!
1263
+ result = EDTF::Set.new([val[0]] + val[2] + [val[4]]).earlier!.later!
1263
1264
  result
1264
1265
  end
1265
1266
  .,.,
1266
1267
 
1267
1268
  module_eval(<<'.,.,', 'parser.y', 236)
1268
1269
  def _reduce_86(val, _values, result)
1269
- result = EDTF::Set.new([val[0]] + val[2]).earlier!
1270
+ result = EDTF::Set.new([val[0]] + val[2]).earlier!
1270
1271
  result
1271
1272
  end
1272
1273
  .,.,
1273
1274
 
1274
1275
  module_eval(<<'.,.,', 'parser.y', 237)
1275
1276
  def _reduce_87(val, _values, result)
1276
- result = EDTF::Set.new([val[0]] + [val[2]]).earlier!.later!
1277
+ result = EDTF::Set.new([val[0]] + [val[2]]).earlier!.later!
1277
1278
  result
1278
1279
  end
1279
1280
  .,.,
1280
1281
 
1281
1282
  module_eval(<<'.,.,', 'parser.y', 238)
1282
1283
  def _reduce_88(val, _values, result)
1283
- result = EDTF::Set.new(val[0] + [val[2]]).later!
1284
+ result = EDTF::Set.new(val[0] + [val[2]]).later!
1284
1285
  result
1285
1286
  end
1286
1287
  .,.,
1287
1288
 
1288
1289
  module_eval(<<'.,.,', 'parser.y', 239)
1289
1290
  def _reduce_89(val, _values, result)
1290
- result = EDTF::Set.new(*val[0])
1291
+ result = EDTF::Set.new(*val[0])
1291
1292
  result
1292
1293
  end
1293
1294
  .,.,
1294
1295
 
1295
1296
  module_eval(<<'.,.,', 'parser.y', 240)
1296
1297
  def _reduce_90(val, _values, result)
1297
- result = EDTF::Set.new(val[0]).later!
1298
+ result = EDTF::Set.new(val[0]).later!
1298
1299
  result
1299
1300
  end
1300
1301
  .,.,
1301
1302
 
1302
1303
  module_eval(<<'.,.,', 'parser.y', 243)
1303
1304
  def _reduce_91(val, _values, result)
1304
- result = [val[0]].flatten
1305
+ result = [val[0]].flatten
1305
1306
  result
1306
1307
  end
1307
1308
  .,.,
1308
1309
 
1309
1310
  module_eval(<<'.,.,', 'parser.y', 244)
1310
1311
  def _reduce_92(val, _values, result)
1311
- result = val[0] + [val[2]].flatten
1312
+ result = val[0] + [val[2]].flatten
1312
1313
  result
1313
1314
  end
1314
1315
  .,.,
@@ -1325,49 +1326,49 @@ module_eval(<<'.,.,', 'parser.y', 244)
1325
1326
 
1326
1327
  module_eval(<<'.,.,', 'parser.y', 256)
1327
1328
  def _reduce_98(val, _values, result)
1328
- result = val[1]
1329
+ result = val[1]
1329
1330
  result
1330
1331
  end
1331
1332
  .,.,
1332
1333
 
1333
1334
  module_eval(<<'.,.,', 'parser.y', 258)
1334
1335
  def _reduce_99(val, _values, result)
1335
- result = Date.new(*val[0]).day_precision!
1336
+ result = Date.new(*val[0]).day_precision!
1336
1337
  result
1337
1338
  end
1338
1339
  .,.,
1339
1340
 
1340
1341
  module_eval(<<'.,.,', 'parser.y', 259)
1341
1342
  def _reduce_100(val, _values, result)
1342
- result = Date.new(*val[0]).month_precision!
1343
+ result = Date.new(*val[0]).month_precision!
1343
1344
  result
1344
1345
  end
1345
1346
  .,.,
1346
1347
 
1347
1348
  module_eval(<<'.,.,', 'parser.y', 260)
1348
1349
  def _reduce_101(val, _values, result)
1349
- result = Date.new(val[0]).year_precision!
1350
+ result = Date.new(val[0]).year_precision!
1350
1351
  result
1351
1352
  end
1352
1353
  .,.,
1353
1354
 
1354
1355
  module_eval(<<'.,.,', 'parser.y', 263)
1355
1356
  def _reduce_102(val, _values, result)
1356
- result = (Date.new(val[0]).day_precision! .. Date.new(val[2]).day_precision!)
1357
+ result = (Date.new(val[0]).day_precision! .. Date.new(val[2]).day_precision!)
1357
1358
  result
1358
1359
  end
1359
1360
  .,.,
1360
1361
 
1361
1362
  module_eval(<<'.,.,', 'parser.y', 264)
1362
1363
  def _reduce_103(val, _values, result)
1363
- result = (Date.new(val[0]).month_precision! .. Date.new(val[2]).month_precision!)
1364
+ result = (Date.new(val[0]).month_precision! .. Date.new(val[2]).month_precision!)
1364
1365
  result
1365
1366
  end
1366
1367
  .,.,
1367
1368
 
1368
1369
  module_eval(<<'.,.,', 'parser.y', 265)
1369
1370
  def _reduce_104(val, _values, result)
1370
- result = (Date.new(val[0]).year_precision! .. Date.new(val[2]).year_precision!)
1371
+ result = (Date.new(val[0]).year_precision! .. Date.new(val[2]).year_precision!)
1371
1372
  result
1372
1373
  end
1373
1374
  .,.,
@@ -1376,214 +1377,222 @@ module_eval(<<'.,.,', 'parser.y', 271)
1376
1377
  def _reduce_105(val, _values, result)
1377
1378
  result = Date.new(val[0][0], val[2], val[4])
1378
1379
  result.unspecified.year[2,2] = val[0][1]
1379
-
1380
+
1380
1381
  result
1381
1382
  end
1382
1383
  .,.,
1383
1384
 
1384
1385
  module_eval(<<'.,.,', 'parser.y', 276)
1385
1386
  def _reduce_106(val, _values, result)
1386
- result = Date.new(val[0][0], 1, val[5])
1387
+ result = Date.new(val[0][0], val[2], 1)
1388
+ result.month_precision!
1387
1389
  result.unspecified.year[2,2] = val[0][1]
1388
- result.unspecified!(:month)
1389
-
1390
+
1390
1391
  result
1391
1392
  end
1392
1393
  .,.,
1393
1394
 
1394
1395
  module_eval(<<'.,.,', 'parser.y', 282)
1395
1396
  def _reduce_107(val, _values, result)
1396
- result = Date.new(val[0][0], 1, 1)
1397
+ result = Date.new(val[0][0], 1, val[5])
1397
1398
  result.unspecified.year[2,2] = val[0][1]
1398
- result.unspecified!([:month, :day])
1399
-
1399
+ result.unspecified!(:month)
1400
+
1400
1401
  result
1401
1402
  end
1402
1403
  .,.,
1403
1404
 
1404
1405
  module_eval(<<'.,.,', 'parser.y', 288)
1405
1406
  def _reduce_108(val, _values, result)
1406
- result = Date.new(val[0][0], val[2], 1)
1407
+ result = Date.new(val[0][0], 1, 1)
1407
1408
  result.unspecified.year[2,2] = val[0][1]
1408
- result.unspecified!(:day)
1409
-
1409
+ result.unspecified!([:month, :day])
1410
+
1410
1411
  result
1411
1412
  end
1412
1413
  .,.,
1413
1414
 
1414
1415
  module_eval(<<'.,.,', 'parser.y', 294)
1415
1416
  def _reduce_109(val, _values, result)
1416
- result = Date.new(val[0], 1, val[5])
1417
- result.unspecified!(:month)
1418
-
1417
+ result = Date.new(val[0][0], val[2], 1)
1418
+ result.unspecified.year[2,2] = val[0][1]
1419
+ result.unspecified!(:day)
1420
+
1419
1421
  result
1420
1422
  end
1421
1423
  .,.,
1422
1424
 
1423
- # reduce 110 omitted
1425
+ module_eval(<<'.,.,', 'parser.y', 300)
1426
+ def _reduce_110(val, _values, result)
1427
+ result = Date.new(val[0], 1, val[5])
1428
+ result.unspecified!(:month)
1424
1429
 
1425
- module_eval(<<'.,.,', 'parser.y', 301)
1426
- def _reduce_111(val, _values, result)
1427
- result = uoa(val[1], val[3])
1428
1430
  result
1429
1431
  end
1430
1432
  .,.,
1431
1433
 
1432
- module_eval(<<'.,.,', 'parser.y', 304)
1434
+ # reduce 111 omitted
1435
+
1436
+ module_eval(<<'.,.,', 'parser.y', 307)
1433
1437
  def _reduce_112(val, _values, result)
1434
- result = val[0].year_precision!
1438
+ result = uoa(val[1], val[3])
1435
1439
  result
1436
1440
  end
1437
1441
  .,.,
1438
1442
 
1439
- module_eval(<<'.,.,', 'parser.y', 305)
1443
+ module_eval(<<'.,.,', 'parser.y', 310)
1440
1444
  def _reduce_113(val, _values, result)
1441
- result = val[0][0].month_precision!
1445
+ result = val[0].year_precision!
1442
1446
  result
1443
1447
  end
1444
1448
  .,.,
1445
1449
 
1446
- module_eval(<<'.,.,', 'parser.y', 306)
1450
+ module_eval(<<'.,.,', 'parser.y', 311)
1447
1451
  def _reduce_114(val, _values, result)
1448
- result = val[0].day_precision!
1452
+ result = val[0][0].month_precision!
1449
1453
  result
1450
1454
  end
1451
1455
  .,.,
1452
1456
 
1453
- module_eval(<<'.,.,', 'parser.y', 308)
1457
+ module_eval(<<'.,.,', 'parser.y', 312)
1454
1458
  def _reduce_115(val, _values, result)
1455
- result = uoa(Date.new(val[0]), val[1], :year)
1459
+ result = val[0].day_precision!
1456
1460
  result
1457
1461
  end
1458
1462
  .,.,
1459
1463
 
1460
- module_eval(<<'.,.,', 'parser.y', 312)
1464
+ module_eval(<<'.,.,', 'parser.y', 314)
1461
1465
  def _reduce_116(val, _values, result)
1462
- result = [uoa(val[0].change(:month => val[2]), val[3], [:month, :year])]
1463
-
1466
+ result = uoa(Date.new(val[0]), val[1], :year)
1464
1467
  result
1465
1468
  end
1466
1469
  .,.,
1467
1470
 
1468
- module_eval(<<'.,.,', 'parser.y', 315)
1471
+ module_eval(<<'.,.,', 'parser.y', 318)
1469
1472
  def _reduce_117(val, _values, result)
1470
- result = [uoa(Date.new(val[0], val[2]), val[3], [:year, :month])]
1471
-
1473
+ result = [uoa(val[0].change(:month => val[2]), val[3], [:month, :year])]
1474
+
1472
1475
  result
1473
1476
  end
1474
1477
  .,.,
1475
1478
 
1476
- module_eval(<<'.,.,', 'parser.y', 318)
1479
+ module_eval(<<'.,.,', 'parser.y', 321)
1477
1480
  def _reduce_118(val, _values, result)
1478
- result = [uoa(Date.new(val[0], val[2]), val[4], [:month]), true]
1479
-
1481
+ result = [uoa(Date.new(val[0], val[2]), val[3], [:year, :month])]
1482
+
1480
1483
  result
1481
1484
  end
1482
1485
  .,.,
1483
1486
 
1484
- module_eval(<<'.,.,', 'parser.y', 321)
1487
+ module_eval(<<'.,.,', 'parser.y', 324)
1485
1488
  def _reduce_119(val, _values, result)
1486
- result = [uoa(val[0].change(:month => val[2]), val[4], [:month]), true]
1487
-
1489
+ result = [uoa(Date.new(val[0], val[2]), val[4], [:month]), true]
1490
+
1488
1491
  result
1489
1492
  end
1490
1493
  .,.,
1491
1494
 
1492
1495
  module_eval(<<'.,.,', 'parser.y', 327)
1493
1496
  def _reduce_120(val, _values, result)
1494
- result = uoa(val[0][0].change(:day => val[2]), val[3], val[0][1] ? [:day] : nil)
1495
-
1497
+ result = [uoa(val[0].change(:month => val[2]), val[4], [:month]), true]
1498
+
1496
1499
  result
1497
1500
  end
1498
1501
  .,.,
1499
1502
 
1500
- module_eval(<<'.,.,', 'parser.y', 330)
1503
+ module_eval(<<'.,.,', 'parser.y', 333)
1501
1504
  def _reduce_121(val, _values, result)
1502
- result = uoa(val[0][0].change(:day => val[2]), val[4], [:day])
1503
-
1505
+ result = uoa(val[0][0].change(:day => val[2]), val[3], val[0][1] ? [:day] : nil)
1506
+
1504
1507
  result
1505
1508
  end
1506
1509
  .,.,
1507
1510
 
1508
- module_eval(<<'.,.,', 'parser.y', 333)
1511
+ module_eval(<<'.,.,', 'parser.y', 336)
1509
1512
  def _reduce_122(val, _values, result)
1510
- result = uoa(uoa(Date.new(val[0], val[2], val[5]), val[4], :month), val[6], :day)
1511
-
1513
+ result = uoa(val[0][0].change(:day => val[2]), val[4], [:day])
1514
+
1512
1515
  result
1513
1516
  end
1514
1517
  .,.,
1515
1518
 
1516
- module_eval(<<'.,.,', 'parser.y', 336)
1519
+ module_eval(<<'.,.,', 'parser.y', 339)
1517
1520
  def _reduce_123(val, _values, result)
1518
- result = uoa(Date.new(val[0][0], val[0][1], val[2]), val[3])
1519
-
1521
+ result = uoa(uoa(Date.new(val[0], val[2], val[5]), val[4], :month), val[6], :day)
1522
+
1520
1523
  result
1521
1524
  end
1522
1525
  .,.,
1523
1526
 
1524
- module_eval(<<'.,.,', 'parser.y', 339)
1527
+ module_eval(<<'.,.,', 'parser.y', 342)
1525
1528
  def _reduce_124(val, _values, result)
1526
- result = uoa(Date.new(val[0][0], val[0][1], val[2]), val[4], [:day])
1527
-
1529
+ result = uoa(Date.new(val[0][0], val[0][1], val[2]), val[3])
1530
+
1528
1531
  result
1529
1532
  end
1530
1533
  .,.,
1531
1534
 
1532
- module_eval(<<'.,.,', 'parser.y', 342)
1535
+ module_eval(<<'.,.,', 'parser.y', 345)
1533
1536
  def _reduce_125(val, _values, result)
1534
- result = uoa(Date.new(val[0], val[2], val[4]), val[6], [:month, :day])
1535
-
1537
+ result = uoa(Date.new(val[0][0], val[0][1], val[2]), val[4], [:day])
1538
+
1536
1539
  result
1537
1540
  end
1538
1541
  .,.,
1539
1542
 
1540
- module_eval(<<'.,.,', 'parser.y', 345)
1543
+ module_eval(<<'.,.,', 'parser.y', 348)
1541
1544
  def _reduce_126(val, _values, result)
1545
+ result = uoa(Date.new(val[0], val[2], val[4]), val[6], [:month, :day])
1546
+
1547
+ result
1548
+ end
1549
+ .,.,
1550
+
1551
+ module_eval(<<'.,.,', 'parser.y', 351)
1552
+ def _reduce_127(val, _values, result)
1542
1553
  result = Date.new(val[0], val[2], val[4])
1543
1554
  result = uoa(result, val[6], [:day])
1544
1555
  result = uoa(result, val[8], [:month, :day])
1545
-
1556
+
1546
1557
  result
1547
1558
  end
1548
1559
  .,.,
1549
1560
 
1550
- module_eval(<<'.,.,', 'parser.y', 350)
1551
- def _reduce_127(val, _values, result)
1561
+ module_eval(<<'.,.,', 'parser.y', 356)
1562
+ def _reduce_128(val, _values, result)
1552
1563
  result = val[0].change(:month => val[2], :day => val[4])
1553
1564
  result = uoa(result, val[6], [:month, :day])
1554
-
1565
+
1555
1566
  result
1556
1567
  end
1557
1568
  .,.,
1558
1569
 
1559
- module_eval(<<'.,.,', 'parser.y', 354)
1560
- def _reduce_128(val, _values, result)
1570
+ module_eval(<<'.,.,', 'parser.y', 360)
1571
+ def _reduce_129(val, _values, result)
1561
1572
  result = val[0].change(:month => val[2], :day => val[4])
1562
1573
  result = uoa(result, val[6], [:day])
1563
1574
  result = uoa(result, val[8], [:month, :day])
1564
-
1575
+
1565
1576
  result
1566
1577
  end
1567
1578
  .,.,
1568
1579
 
1569
- module_eval(<<'.,.,', 'parser.y', 365)
1570
- def _reduce_129(val, _values, result)
1571
- result = []
1580
+ module_eval(<<'.,.,', 'parser.y', 371)
1581
+ def _reduce_130(val, _values, result)
1582
+ result = []
1572
1583
  result
1573
1584
  end
1574
1585
  .,.,
1575
1586
 
1576
- # reduce 130 omitted
1587
+ # reduce 131 omitted
1577
1588
 
1578
- module_eval(<<'.,.,', 'parser.y', 369)
1579
- def _reduce_131(val, _values, result)
1580
- result = 0
1589
+ module_eval(<<'.,.,', 'parser.y', 375)
1590
+ def _reduce_132(val, _values, result)
1591
+ result = 0
1581
1592
  result
1582
1593
  end
1583
1594
  .,.,
1584
1595
 
1585
- # reduce 132 omitted
1586
-
1587
1596
  # reduce 133 omitted
1588
1597
 
1589
1598
  # reduce 134 omitted
@@ -1602,218 +1611,220 @@ module_eval(<<'.,.,', 'parser.y', 369)
1602
1611
 
1603
1612
  # reduce 141 omitted
1604
1613
 
1605
- module_eval(<<'.,.,', 'parser.y', 375)
1606
- def _reduce_142(val, _values, result)
1607
- result = val[1]
1608
- result
1609
- end
1610
- .,.,
1614
+ # reduce 142 omitted
1611
1615
 
1612
- module_eval(<<'.,.,', 'parser.y', 376)
1616
+ module_eval(<<'.,.,', 'parser.y', 381)
1613
1617
  def _reduce_143(val, _values, result)
1614
- result = 10
1618
+ result = val[1]
1615
1619
  result
1616
1620
  end
1617
1621
  .,.,
1618
1622
 
1619
- module_eval(<<'.,.,', 'parser.y', 377)
1623
+ module_eval(<<'.,.,', 'parser.y', 382)
1620
1624
  def _reduce_144(val, _values, result)
1621
- result = 11
1625
+ result = 10
1622
1626
  result
1623
1627
  end
1624
1628
  .,.,
1625
1629
 
1626
- module_eval(<<'.,.,', 'parser.y', 378)
1630
+ module_eval(<<'.,.,', 'parser.y', 383)
1627
1631
  def _reduce_145(val, _values, result)
1628
- result = 12
1632
+ result = 11
1629
1633
  result
1630
1634
  end
1631
1635
  .,.,
1632
1636
 
1633
- # reduce 146 omitted
1634
-
1635
- module_eval(<<'.,.,', 'parser.y', 382)
1636
- def _reduce_147(val, _values, result)
1637
- result = 13
1637
+ module_eval(<<'.,.,', 'parser.y', 384)
1638
+ def _reduce_146(val, _values, result)
1639
+ result = 12
1638
1640
  result
1639
1641
  end
1640
1642
  .,.,
1641
1643
 
1642
- module_eval(<<'.,.,', 'parser.y', 385)
1644
+ # reduce 147 omitted
1645
+
1646
+ module_eval(<<'.,.,', 'parser.y', 388)
1643
1647
  def _reduce_148(val, _values, result)
1644
- result = val[1]
1648
+ result = 13
1645
1649
  result
1646
1650
  end
1647
1651
  .,.,
1648
1652
 
1649
- module_eval(<<'.,.,', 'parser.y', 386)
1653
+ module_eval(<<'.,.,', 'parser.y', 391)
1650
1654
  def _reduce_149(val, _values, result)
1651
- result = 10 + val[1]
1655
+ result = val[1]
1652
1656
  result
1653
1657
  end
1654
1658
  .,.,
1655
1659
 
1656
- module_eval(<<'.,.,', 'parser.y', 387)
1660
+ module_eval(<<'.,.,', 'parser.y', 392)
1657
1661
  def _reduce_150(val, _values, result)
1658
- result = 20
1662
+ result = 10 + val[1]
1659
1663
  result
1660
1664
  end
1661
1665
  .,.,
1662
1666
 
1663
- module_eval(<<'.,.,', 'parser.y', 388)
1667
+ module_eval(<<'.,.,', 'parser.y', 393)
1664
1668
  def _reduce_151(val, _values, result)
1665
- result = 21
1669
+ result = 20
1666
1670
  result
1667
1671
  end
1668
1672
  .,.,
1669
1673
 
1670
- module_eval(<<'.,.,', 'parser.y', 389)
1674
+ module_eval(<<'.,.,', 'parser.y', 394)
1671
1675
  def _reduce_152(val, _values, result)
1672
- result = 22
1676
+ result = 21
1673
1677
  result
1674
1678
  end
1675
1679
  .,.,
1676
1680
 
1677
- module_eval(<<'.,.,', 'parser.y', 390)
1681
+ module_eval(<<'.,.,', 'parser.y', 395)
1678
1682
  def _reduce_153(val, _values, result)
1679
- result = 23
1683
+ result = 22
1680
1684
  result
1681
1685
  end
1682
1686
  .,.,
1683
1687
 
1684
- # reduce 154 omitted
1688
+ module_eval(<<'.,.,', 'parser.y', 396)
1689
+ def _reduce_154(val, _values, result)
1690
+ result = 23
1691
+ result
1692
+ end
1693
+ .,.,
1685
1694
 
1686
1695
  # reduce 155 omitted
1687
1696
 
1688
1697
  # reduce 156 omitted
1689
1698
 
1690
- module_eval(<<'.,.,', 'parser.y', 398)
1691
- def _reduce_157(val, _values, result)
1692
- result = 24
1693
- result
1694
- end
1695
- .,.,
1699
+ # reduce 157 omitted
1696
1700
 
1697
- module_eval(<<'.,.,', 'parser.y', 399)
1701
+ module_eval(<<'.,.,', 'parser.y', 404)
1698
1702
  def _reduce_158(val, _values, result)
1699
- result = 25
1703
+ result = 24
1700
1704
  result
1701
1705
  end
1702
1706
  .,.,
1703
1707
 
1704
- module_eval(<<'.,.,', 'parser.y', 400)
1708
+ module_eval(<<'.,.,', 'parser.y', 405)
1705
1709
  def _reduce_159(val, _values, result)
1706
- result = 26
1710
+ result = 25
1707
1711
  result
1708
1712
  end
1709
1713
  .,.,
1710
1714
 
1711
- module_eval(<<'.,.,', 'parser.y', 401)
1715
+ module_eval(<<'.,.,', 'parser.y', 406)
1712
1716
  def _reduce_160(val, _values, result)
1713
- result = 27
1717
+ result = 26
1714
1718
  result
1715
1719
  end
1716
1720
  .,.,
1717
1721
 
1718
- module_eval(<<'.,.,', 'parser.y', 402)
1722
+ module_eval(<<'.,.,', 'parser.y', 407)
1719
1723
  def _reduce_161(val, _values, result)
1720
- result = 28
1724
+ result = 27
1721
1725
  result
1722
1726
  end
1723
1727
  .,.,
1724
1728
 
1725
- module_eval(<<'.,.,', 'parser.y', 403)
1729
+ module_eval(<<'.,.,', 'parser.y', 408)
1726
1730
  def _reduce_162(val, _values, result)
1727
- result = 29
1731
+ result = 28
1728
1732
  result
1729
1733
  end
1730
1734
  .,.,
1731
1735
 
1732
- # reduce 163 omitted
1733
-
1734
- module_eval(<<'.,.,', 'parser.y', 407)
1735
- def _reduce_164(val, _values, result)
1736
- result = 30
1736
+ module_eval(<<'.,.,', 'parser.y', 409)
1737
+ def _reduce_163(val, _values, result)
1738
+ result = 29
1737
1739
  result
1738
1740
  end
1739
1741
  .,.,
1740
1742
 
1741
- # reduce 165 omitted
1743
+ # reduce 164 omitted
1742
1744
 
1743
- module_eval(<<'.,.,', 'parser.y', 411)
1744
- def _reduce_166(val, _values, result)
1745
- result = 31
1745
+ module_eval(<<'.,.,', 'parser.y', 413)
1746
+ def _reduce_165(val, _values, result)
1747
+ result = 30
1746
1748
  result
1747
1749
  end
1748
1750
  .,.,
1749
1751
 
1750
- # reduce 167 omitted
1752
+ # reduce 166 omitted
1751
1753
 
1752
- module_eval(<<'.,.,', 'parser.y', 415)
1753
- def _reduce_168(val, _values, result)
1754
- result = 30 + val[1]
1754
+ module_eval(<<'.,.,', 'parser.y', 417)
1755
+ def _reduce_167(val, _values, result)
1756
+ result = 31
1755
1757
  result
1756
1758
  end
1757
1759
  .,.,
1758
1760
 
1759
- module_eval(<<'.,.,', 'parser.y', 416)
1761
+ # reduce 168 omitted
1762
+
1763
+ module_eval(<<'.,.,', 'parser.y', 421)
1760
1764
  def _reduce_169(val, _values, result)
1761
- result = 40 + val[1]
1765
+ result = 30 + val[1]
1762
1766
  result
1763
1767
  end
1764
1768
  .,.,
1765
1769
 
1766
- module_eval(<<'.,.,', 'parser.y', 417)
1770
+ module_eval(<<'.,.,', 'parser.y', 422)
1767
1771
  def _reduce_170(val, _values, result)
1768
- result = 50 + val[1]
1772
+ result = 40 + val[1]
1769
1773
  result
1770
1774
  end
1771
1775
  .,.,
1772
1776
 
1773
- # reduce 171 omitted
1774
-
1775
- # reduce 172 omitted
1776
-
1777
- module_eval(<<'.,.,', 'parser.y', 424)
1778
- def _reduce_173(val, _values, result)
1779
- result = val[0]
1777
+ module_eval(<<'.,.,', 'parser.y', 423)
1778
+ def _reduce_171(val, _values, result)
1779
+ result = 50 + val[1]
1780
1780
  result
1781
1781
  end
1782
1782
  .,.,
1783
1783
 
1784
- module_eval(<<'.,.,', 'parser.y', 425)
1784
+ # reduce 172 omitted
1785
+
1786
+ # reduce 173 omitted
1787
+
1788
+ module_eval(<<'.,.,', 'parser.y', 430)
1785
1789
  def _reduce_174(val, _values, result)
1786
- result = 10 * val[0] + val[1]
1790
+ result = val[0]
1787
1791
  result
1788
1792
  end
1789
1793
  .,.,
1790
1794
 
1791
- module_eval(<<'.,.,', 'parser.y', 428)
1795
+ module_eval(<<'.,.,', 'parser.y', 431)
1792
1796
  def _reduce_175(val, _values, result)
1793
- result = val.zip([100,10,1]).reduce(0) { |s,(a,b)| s += a * b }
1794
-
1797
+ result = 10 * val[0] + val[1]
1795
1798
  result
1796
1799
  end
1797
1800
  .,.,
1798
1801
 
1799
- module_eval(<<'.,.,', 'parser.y', 432)
1802
+ module_eval(<<'.,.,', 'parser.y', 434)
1800
1803
  def _reduce_176(val, _values, result)
1801
- result = val.zip([1000,100,10,1]).reduce(0) { |s,(a,b)| s += a * b }
1802
-
1804
+ result = val.zip([100,10,1]).reduce(0) { |s,(a,b)| s += a * b }
1805
+
1803
1806
  result
1804
1807
  end
1805
1808
  .,.,
1806
1809
 
1807
- module_eval(<<'.,.,', 'parser.y', 436)
1810
+ module_eval(<<'.,.,', 'parser.y', 438)
1808
1811
  def _reduce_177(val, _values, result)
1809
- result = val[0]
1812
+ result = val.zip([1000,100,10,1]).reduce(0) { |s,(a,b)| s += a * b }
1813
+
1810
1814
  result
1811
1815
  end
1812
1816
  .,.,
1813
1817
 
1814
- module_eval(<<'.,.,', 'parser.y', 437)
1818
+ module_eval(<<'.,.,', 'parser.y', 442)
1815
1819
  def _reduce_178(val, _values, result)
1816
- result = 10 * val[0] + val[1]
1820
+ result = val[0]
1821
+ result
1822
+ end
1823
+ .,.,
1824
+
1825
+ module_eval(<<'.,.,', 'parser.y', 443)
1826
+ def _reduce_179(val, _values, result)
1827
+ result = 10 * val[0] + val[1]
1817
1828
  result
1818
1829
  end
1819
1830
  .,.,
@@ -1823,4 +1834,4 @@ def _reduce_none(val, _values, result)
1823
1834
  end
1824
1835
 
1825
1836
  end # class Parser
1826
- end # module EDTF
1837
+ end # module EDTF