racc 1.4.15 → 1.4.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/COPYING +22 -515
- data/Manifest.txt +3 -9
- data/README.ja.rdoc +3 -4
- data/README.rdoc +4 -4
- data/Rakefile +13 -55
- data/bin/racc +2 -4
- data/ext/racc/{cparse.c → cparse/cparse.c} +64 -31
- data/ext/racc/cparse/extconf.rb +8 -0
- data/lib/racc/exception.rb +3 -5
- data/lib/racc/grammar.rb +5 -7
- data/lib/racc/grammarfileparser.rb +4 -3
- data/lib/racc/info.rb +4 -6
- data/lib/racc/iset.rb +2 -2
- data/lib/racc/logfilegenerator.rb +2 -2
- data/lib/racc/parser-text.rb +14 -11
- data/lib/racc/parser.rb +14 -11
- data/lib/racc/parserfilegenerator.rb +5 -7
- data/lib/racc/state.rb +11 -13
- data/test/assets/intp.y +4 -4
- data/test/assets/mailp.y +27 -27
- data/test/assets/mof.y +12 -12
- data/test/assets/nullbug2.y +2 -2
- data/test/assets/recv.y +20 -20
- data/test/assets/syntax.y +1 -1
- data/test/assets/twowaysql.y +1 -1
- data/test/helper.rb +46 -35
- data/test/regress/cadenza +60 -60
- data/test/regress/cast +8 -8
- data/test/regress/csspool +167 -167
- data/test/regress/edtf +115 -115
- data/test/regress/huia +75 -75
- data/test/regress/journey +12 -12
- data/test/regress/liquor +54 -54
- data/test/regress/machete +37 -37
- data/test/regress/mediacloth +83 -83
- data/test/regress/mof +60 -60
- data/test/regress/namae +29 -29
- data/test/regress/nasl +174 -174
- data/test/regress/nokogiri-css +59 -59
- data/test/regress/opal +352 -352
- data/test/regress/php_serialization +20 -20
- data/test/regress/riml +261 -261
- data/test/regress/ruby18 +353 -353
- data/test/regress/ruby22 +433 -433
- data/test/regress/tp_plus +125 -125
- data/test/regress/twowaysql +30 -30
- data/test/test_chk_y.rb +1 -0
- data/test/test_racc_command.rb +5 -24
- data/test/test_scan_y.rb +1 -0
- data/test/testscanner.rb +1 -1
- metadata +9 -76
- data/ext/racc/depend +0 -1
- data/ext/racc/extconf.rb +0 -7
- data/test/assets/bibtex.y +0 -141
- data/test/assets/rdblockparser.y +0 -576
- data/test/assets/rdinlineparser.y +0 -561
- data/test/regress/bibtex +0 -474
- data/test/regress/rdblockparser +0 -1061
- data/test/regress/rdinlineparser +0 -1243
data/test/regress/edtf
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# DO NOT MODIFY!!!!
|
3
|
-
# This file is automatically generated by Racc 1.4.
|
4
|
-
# from Racc
|
3
|
+
# This file is automatically generated by Racc 1.4.16.pre.1
|
4
|
+
# from Racc grammar file "".
|
5
5
|
#
|
6
6
|
|
7
7
|
require 'racc/parser.rb'
|
@@ -829,28 +829,28 @@ Racc_debug_parser = false
|
|
829
829
|
|
830
830
|
module_eval(<<'.,.,', 'edtf.y', 54)
|
831
831
|
def _reduce_8(val, _values, result)
|
832
|
-
result = Date.new(val[0]).year_precision!
|
832
|
+
result = Date.new(val[0]).year_precision!
|
833
833
|
result
|
834
834
|
end
|
835
835
|
.,.,
|
836
836
|
|
837
837
|
module_eval(<<'.,.,', 'edtf.y', 55)
|
838
838
|
def _reduce_9(val, _values, result)
|
839
|
-
result = Date.new(*val.flatten).month_precision!
|
839
|
+
result = Date.new(*val.flatten).month_precision!
|
840
840
|
result
|
841
841
|
end
|
842
842
|
.,.,
|
843
843
|
|
844
844
|
module_eval(<<'.,.,', 'edtf.y', 56)
|
845
845
|
def _reduce_10(val, _values, result)
|
846
|
-
result = Date.new(*val.flatten).day_precision!
|
846
|
+
result = Date.new(*val.flatten).day_precision!
|
847
847
|
result
|
848
848
|
end
|
849
849
|
.,.,
|
850
850
|
|
851
851
|
module_eval(<<'.,.,', 'edtf.y', 59)
|
852
852
|
def _reduce_11(val, _values, result)
|
853
|
-
result = -val[1]
|
853
|
+
result = -val[1]
|
854
854
|
result
|
855
855
|
end
|
856
856
|
.,.,
|
@@ -859,7 +859,7 @@ module_eval(<<'.,.,', 'edtf.y', 63)
|
|
859
859
|
def _reduce_12(val, _values, result)
|
860
860
|
result = DateTime.new(val[0].year, val[0].month, val[0].day, *val[2])
|
861
861
|
result.skip_timezone = (val[2].length == 3)
|
862
|
-
|
862
|
+
|
863
863
|
result
|
864
864
|
end
|
865
865
|
.,.,
|
@@ -868,14 +868,14 @@ module_eval(<<'.,.,', 'edtf.y', 63)
|
|
868
868
|
|
869
869
|
module_eval(<<'.,.,', 'edtf.y', 68)
|
870
870
|
def _reduce_14(val, _values, result)
|
871
|
-
result = val.flatten
|
871
|
+
result = val.flatten
|
872
872
|
result
|
873
873
|
end
|
874
874
|
.,.,
|
875
875
|
|
876
876
|
module_eval(<<'.,.,', 'edtf.y', 70)
|
877
877
|
def _reduce_15(val, _values, result)
|
878
|
-
result = val.values_at(0, 2, 4)
|
878
|
+
result = val.values_at(0, 2, 4)
|
879
879
|
result
|
880
880
|
end
|
881
881
|
.,.,
|
@@ -884,28 +884,28 @@ module_eval(<<'.,.,', 'edtf.y', 70)
|
|
884
884
|
|
885
885
|
module_eval(<<'.,.,', 'edtf.y', 73)
|
886
886
|
def _reduce_17(val, _values, result)
|
887
|
-
result = [24, 0, 0]
|
887
|
+
result = [24, 0, 0]
|
888
888
|
result
|
889
889
|
end
|
890
890
|
.,.,
|
891
891
|
|
892
892
|
module_eval(<<'.,.,', 'edtf.y', 75)
|
893
893
|
def _reduce_18(val, _values, result)
|
894
|
-
result = 0
|
894
|
+
result = 0
|
895
895
|
result
|
896
896
|
end
|
897
897
|
.,.,
|
898
898
|
|
899
899
|
module_eval(<<'.,.,', 'edtf.y', 76)
|
900
900
|
def _reduce_19(val, _values, result)
|
901
|
-
result = -1 * val[1]
|
901
|
+
result = -1 * val[1]
|
902
902
|
result
|
903
903
|
end
|
904
904
|
.,.,
|
905
905
|
|
906
906
|
module_eval(<<'.,.,', 'edtf.y', 77)
|
907
907
|
def _reduce_20(val, _values, result)
|
908
|
-
result = val[1]
|
908
|
+
result = val[1]
|
909
909
|
result
|
910
910
|
end
|
911
911
|
.,.,
|
@@ -914,28 +914,28 @@ module_eval(<<'.,.,', 'edtf.y', 77)
|
|
914
914
|
|
915
915
|
module_eval(<<'.,.,', 'edtf.y', 81)
|
916
916
|
def _reduce_22(val, _values, result)
|
917
|
-
result = 0
|
917
|
+
result = 0
|
918
918
|
result
|
919
919
|
end
|
920
920
|
.,.,
|
921
921
|
|
922
922
|
module_eval(<<'.,.,', 'edtf.y', 85)
|
923
923
|
def _reduce_23(val, _values, result)
|
924
|
-
result = Rational(val[0] * 60 + val[2], 1440)
|
924
|
+
result = Rational(val[0] * 60 + val[2], 1440)
|
925
925
|
result
|
926
926
|
end
|
927
927
|
.,.,
|
928
928
|
|
929
929
|
module_eval(<<'.,.,', 'edtf.y', 86)
|
930
930
|
def _reduce_24(val, _values, result)
|
931
|
-
result = Rational(840, 1440)
|
931
|
+
result = Rational(840, 1440)
|
932
932
|
result
|
933
933
|
end
|
934
934
|
.,.,
|
935
935
|
|
936
936
|
module_eval(<<'.,.,', 'edtf.y', 87)
|
937
937
|
def _reduce_25(val, _values, result)
|
938
|
-
result = Rational(val[3], 1440)
|
938
|
+
result = Rational(val[3], 1440)
|
939
939
|
result
|
940
940
|
end
|
941
941
|
.,.,
|
@@ -943,7 +943,7 @@ module_eval(<<'.,.,', 'edtf.y', 87)
|
|
943
943
|
module_eval(<<'.,.,', 'edtf.y', 91)
|
944
944
|
def _reduce_26(val, _values, result)
|
945
945
|
result = val.zip([1000,100,10,1]).reduce(0) { |s,(a,b)| s += a * b }
|
946
|
-
|
946
|
+
|
947
947
|
result
|
948
948
|
end
|
949
949
|
.,.,
|
@@ -954,7 +954,7 @@ module_eval(<<'.,.,', 'edtf.y', 91)
|
|
954
954
|
|
955
955
|
module_eval(<<'.,.,', 'edtf.y', 97)
|
956
956
|
def _reduce_29(val, _values, result)
|
957
|
-
result = [val[0], val[2]]
|
957
|
+
result = [val[0], val[2]]
|
958
958
|
result
|
959
959
|
end
|
960
960
|
.,.,
|
@@ -965,7 +965,7 @@ module_eval(<<'.,.,', 'edtf.y', 104)
|
|
965
965
|
if result[2] > 31 || (result[2] > 30 && [2,4,6,9,11].include?(result[1])) || (result[2] > 29 && result[1] == 2)
|
966
966
|
raise ArgumentError, "invalid date (invalid days #{result[2]} for month #{result[1]})"
|
967
967
|
end
|
968
|
-
|
968
|
+
|
969
969
|
result
|
970
970
|
end
|
971
971
|
.,.,
|
@@ -988,7 +988,7 @@ module_eval(<<'.,.,', 'edtf.y', 127)
|
|
988
988
|
def _reduce_38(val, _values, result)
|
989
989
|
result = Date.new(val[0][0]).year_precision!
|
990
990
|
result.unspecified.year[2,2] = val[0][1]
|
991
|
-
|
991
|
+
|
992
992
|
result
|
993
993
|
end
|
994
994
|
.,.,
|
@@ -1002,7 +1002,7 @@ module_eval(<<'.,.,', 'edtf.y', 127)
|
|
1002
1002
|
module_eval(<<'.,.,', 'edtf.y', 138)
|
1003
1003
|
def _reduce_42(val, _values, result)
|
1004
1004
|
result = [val[0,3].zip([1000,100,10]).reduce(0) { |s,(a,b)| s += a * b }, [false,true]]
|
1005
|
-
|
1005
|
+
|
1006
1006
|
result
|
1007
1007
|
end
|
1008
1008
|
.,.,
|
@@ -1010,7 +1010,7 @@ module_eval(<<'.,.,', 'edtf.y', 138)
|
|
1010
1010
|
module_eval(<<'.,.,', 'edtf.y', 142)
|
1011
1011
|
def _reduce_43(val, _values, result)
|
1012
1012
|
result = [val[0,2].zip([1000,100]).reduce(0) { |s,(a,b)| s += a * b }, [true, true]]
|
1013
|
-
|
1013
|
+
|
1014
1014
|
result
|
1015
1015
|
end
|
1016
1016
|
.,.,
|
@@ -1019,7 +1019,7 @@ module_eval(<<'.,.,', 'edtf.y', 146)
|
|
1019
1019
|
def _reduce_44(val, _values, result)
|
1020
1020
|
result = Date.new(val[0]).unspecified!(:month)
|
1021
1021
|
result.precision = :month
|
1022
|
-
|
1022
|
+
|
1023
1023
|
result
|
1024
1024
|
end
|
1025
1025
|
.,.,
|
@@ -1027,7 +1027,7 @@ module_eval(<<'.,.,', 'edtf.y', 146)
|
|
1027
1027
|
module_eval(<<'.,.,', 'edtf.y', 151)
|
1028
1028
|
def _reduce_45(val, _values, result)
|
1029
1029
|
result = Date.new(*val[0]).unspecified!(:day)
|
1030
|
-
|
1030
|
+
|
1031
1031
|
result
|
1032
1032
|
end
|
1033
1033
|
.,.,
|
@@ -1035,7 +1035,7 @@ module_eval(<<'.,.,', 'edtf.y', 151)
|
|
1035
1035
|
module_eval(<<'.,.,', 'edtf.y', 155)
|
1036
1036
|
def _reduce_46(val, _values, result)
|
1037
1037
|
result = Date.new(val[0]).unspecified!([:day,:month])
|
1038
|
-
|
1038
|
+
|
1039
1039
|
result
|
1040
1040
|
end
|
1041
1041
|
.,.,
|
@@ -1043,7 +1043,7 @@ module_eval(<<'.,.,', 'edtf.y', 155)
|
|
1043
1043
|
module_eval(<<'.,.,', 'edtf.y', 160)
|
1044
1044
|
def _reduce_47(val, _values, result)
|
1045
1045
|
result = Interval.new(val[0], val[2])
|
1046
|
-
|
1046
|
+
|
1047
1047
|
result
|
1048
1048
|
end
|
1049
1049
|
.,.,
|
@@ -1066,7 +1066,7 @@ module_eval(<<'.,.,', 'edtf.y', 171)
|
|
1066
1066
|
def _reduce_55(val, _values, result)
|
1067
1067
|
result = Date.new(val[1])
|
1068
1068
|
result.precision = :year
|
1069
|
-
|
1069
|
+
|
1070
1070
|
result
|
1071
1071
|
end
|
1072
1072
|
.,.,
|
@@ -1075,7 +1075,7 @@ module_eval(<<'.,.,', 'edtf.y', 176)
|
|
1075
1075
|
def _reduce_56(val, _values, result)
|
1076
1076
|
result = Date.new(-1 * val[2])
|
1077
1077
|
result.precision = :year
|
1078
|
-
|
1078
|
+
|
1079
1079
|
result
|
1080
1080
|
end
|
1081
1081
|
.,.,
|
@@ -1083,14 +1083,14 @@ module_eval(<<'.,.,', 'edtf.y', 176)
|
|
1083
1083
|
module_eval(<<'.,.,', 'edtf.y', 183)
|
1084
1084
|
def _reduce_57(val, _values, result)
|
1085
1085
|
result = val.zip([10000,1000,100,10,1]).reduce(0) { |s,(a,b)| s += a * b }
|
1086
|
-
|
1086
|
+
|
1087
1087
|
result
|
1088
1088
|
end
|
1089
1089
|
.,.,
|
1090
1090
|
|
1091
1091
|
module_eval(<<'.,.,', 'edtf.y', 185)
|
1092
1092
|
def _reduce_58(val, _values, result)
|
1093
|
-
result = 10 * val[0] + val[1]
|
1093
|
+
result = 10 * val[0] + val[1]
|
1094
1094
|
result
|
1095
1095
|
end
|
1096
1096
|
.,.,
|
@@ -1099,35 +1099,35 @@ module_eval(<<'.,.,', 'edtf.y', 190)
|
|
1099
1099
|
def _reduce_59(val, _values, result)
|
1100
1100
|
result = Season.new(val[0], val[2])
|
1101
1101
|
val[3].each { |ua| result.send(ua) }
|
1102
|
-
|
1102
|
+
|
1103
1103
|
result
|
1104
1104
|
end
|
1105
1105
|
.,.,
|
1106
1106
|
|
1107
1107
|
module_eval(<<'.,.,', 'edtf.y', 194)
|
1108
1108
|
def _reduce_60(val, _values, result)
|
1109
|
-
result = 21
|
1109
|
+
result = 21
|
1110
1110
|
result
|
1111
1111
|
end
|
1112
1112
|
.,.,
|
1113
1113
|
|
1114
1114
|
module_eval(<<'.,.,', 'edtf.y', 195)
|
1115
1115
|
def _reduce_61(val, _values, result)
|
1116
|
-
result = 22
|
1116
|
+
result = 22
|
1117
1117
|
result
|
1118
1118
|
end
|
1119
1119
|
.,.,
|
1120
1120
|
|
1121
1121
|
module_eval(<<'.,.,', 'edtf.y', 196)
|
1122
1122
|
def _reduce_62(val, _values, result)
|
1123
|
-
result = 23
|
1123
|
+
result = 23
|
1124
1124
|
result
|
1125
1125
|
end
|
1126
1126
|
.,.,
|
1127
1127
|
|
1128
1128
|
module_eval(<<'.,.,', 'edtf.y', 197)
|
1129
1129
|
def _reduce_63(val, _values, result)
|
1130
|
-
result = 24
|
1130
|
+
result = 24
|
1131
1131
|
result
|
1132
1132
|
end
|
1133
1133
|
.,.,
|
@@ -1150,7 +1150,7 @@ module_eval(<<'.,.,', 'edtf.y', 197)
|
|
1150
1150
|
|
1151
1151
|
module_eval(<<'.,.,', 'edtf.y', 215)
|
1152
1152
|
def _reduce_72(val, _values, result)
|
1153
|
-
result = val[0]; result.qualifier = val[1]
|
1153
|
+
result = val[0]; result.qualifier = val[1]
|
1154
1154
|
result
|
1155
1155
|
end
|
1156
1156
|
.,.,
|
@@ -1158,7 +1158,7 @@ module_eval(<<'.,.,', 'edtf.y', 215)
|
|
1158
1158
|
module_eval(<<'.,.,', 'edtf.y', 221)
|
1159
1159
|
def _reduce_73(val, _values, result)
|
1160
1160
|
result = Date.new(val[0].year * 10 ** val[2]).year_precision!
|
1161
|
-
|
1161
|
+
|
1162
1162
|
result
|
1163
1163
|
end
|
1164
1164
|
.,.,
|
@@ -1166,7 +1166,7 @@ module_eval(<<'.,.,', 'edtf.y', 221)
|
|
1166
1166
|
module_eval(<<'.,.,', 'edtf.y', 225)
|
1167
1167
|
def _reduce_74(val, _values, result)
|
1168
1168
|
result = Date.new(val[1] * 10 ** val[3]).year_precision!
|
1169
|
-
|
1169
|
+
|
1170
1170
|
result
|
1171
1171
|
end
|
1172
1172
|
.,.,
|
@@ -1174,14 +1174,14 @@ module_eval(<<'.,.,', 'edtf.y', 225)
|
|
1174
1174
|
module_eval(<<'.,.,', 'edtf.y', 229)
|
1175
1175
|
def _reduce_75(val, _values, result)
|
1176
1176
|
result = Date.new(-1 * val[2] * 10 ** val[4]).year_precision!
|
1177
|
-
|
1177
|
+
|
1178
1178
|
result
|
1179
1179
|
end
|
1180
1180
|
.,.,
|
1181
1181
|
|
1182
1182
|
module_eval(<<'.,.,', 'edtf.y', 234)
|
1183
1183
|
def _reduce_76(val, _values, result)
|
1184
|
-
result = val[0]; result.calendar = val[1]
|
1184
|
+
result = val[0]; result.calendar = val[1]
|
1185
1185
|
result
|
1186
1186
|
end
|
1187
1187
|
.,.,
|
@@ -1190,7 +1190,7 @@ module_eval(<<'.,.,', 'edtf.y', 240)
|
|
1190
1190
|
def _reduce_77(val, _values, result)
|
1191
1191
|
d = val[0,3].zip([1000,100,10]).reduce(0) { |s,(a,b)| s += a * b }
|
1192
1192
|
result = EDTF::Decade.new(d)
|
1193
|
-
|
1193
|
+
|
1194
1194
|
result
|
1195
1195
|
end
|
1196
1196
|
.,.,
|
@@ -1199,84 +1199,84 @@ module_eval(<<'.,.,', 'edtf.y', 245)
|
|
1199
1199
|
def _reduce_78(val, _values, result)
|
1200
1200
|
d = val[0,2].zip([1000,100]).reduce(0) { |s,(a,b)| s += a * b }
|
1201
1201
|
result = EDTF::Century.new(d)
|
1202
|
-
|
1202
|
+
|
1203
1203
|
result
|
1204
1204
|
end
|
1205
1205
|
.,.,
|
1206
1206
|
|
1207
1207
|
module_eval(<<'.,.,', 'edtf.y', 251)
|
1208
1208
|
def _reduce_79(val, _values, result)
|
1209
|
-
result = val[1].choice!
|
1209
|
+
result = val[1].choice!
|
1210
1210
|
result
|
1211
1211
|
end
|
1212
1212
|
.,.,
|
1213
1213
|
|
1214
1214
|
module_eval(<<'.,.,', 'edtf.y', 253)
|
1215
1215
|
def _reduce_80(val, _values, result)
|
1216
|
-
result = val[1]
|
1216
|
+
result = val[1]
|
1217
1217
|
result
|
1218
1218
|
end
|
1219
1219
|
.,.,
|
1220
1220
|
|
1221
1221
|
module_eval(<<'.,.,', 'edtf.y', 255)
|
1222
1222
|
def _reduce_81(val, _values, result)
|
1223
|
-
result = EDTF::Set.new(val[0]).earlier!
|
1223
|
+
result = EDTF::Set.new(val[0]).earlier!
|
1224
1224
|
result
|
1225
1225
|
end
|
1226
1226
|
.,.,
|
1227
1227
|
|
1228
1228
|
module_eval(<<'.,.,', 'edtf.y', 256)
|
1229
1229
|
def _reduce_82(val, _values, result)
|
1230
|
-
result = EDTF::Set.new([val[0]] + val[2] + [val[4]]).earlier!.later!
|
1230
|
+
result = EDTF::Set.new([val[0]] + val[2] + [val[4]]).earlier!.later!
|
1231
1231
|
result
|
1232
1232
|
end
|
1233
1233
|
.,.,
|
1234
1234
|
|
1235
1235
|
module_eval(<<'.,.,', 'edtf.y', 257)
|
1236
1236
|
def _reduce_83(val, _values, result)
|
1237
|
-
result = EDTF::Set.new([val[0]] + val[2]).earlier!
|
1237
|
+
result = EDTF::Set.new([val[0]] + val[2]).earlier!
|
1238
1238
|
result
|
1239
1239
|
end
|
1240
1240
|
.,.,
|
1241
1241
|
|
1242
1242
|
module_eval(<<'.,.,', 'edtf.y', 258)
|
1243
1243
|
def _reduce_84(val, _values, result)
|
1244
|
-
result = EDTF::Set.new([val[0]] + [val[2]]).earlier!.later!
|
1244
|
+
result = EDTF::Set.new([val[0]] + [val[2]]).earlier!.later!
|
1245
1245
|
result
|
1246
1246
|
end
|
1247
1247
|
.,.,
|
1248
1248
|
|
1249
1249
|
module_eval(<<'.,.,', 'edtf.y', 259)
|
1250
1250
|
def _reduce_85(val, _values, result)
|
1251
|
-
result = EDTF::Set.new(val[0] + [val[2]]).later!
|
1251
|
+
result = EDTF::Set.new(val[0] + [val[2]]).later!
|
1252
1252
|
result
|
1253
1253
|
end
|
1254
1254
|
.,.,
|
1255
1255
|
|
1256
1256
|
module_eval(<<'.,.,', 'edtf.y', 260)
|
1257
1257
|
def _reduce_86(val, _values, result)
|
1258
|
-
result = EDTF::Set.new(*val[0])
|
1258
|
+
result = EDTF::Set.new(*val[0])
|
1259
1259
|
result
|
1260
1260
|
end
|
1261
1261
|
.,.,
|
1262
1262
|
|
1263
1263
|
module_eval(<<'.,.,', 'edtf.y', 261)
|
1264
1264
|
def _reduce_87(val, _values, result)
|
1265
|
-
result = EDTF::Set.new(val[0]).later!
|
1265
|
+
result = EDTF::Set.new(val[0]).later!
|
1266
1266
|
result
|
1267
1267
|
end
|
1268
1268
|
.,.,
|
1269
1269
|
|
1270
1270
|
module_eval(<<'.,.,', 'edtf.y', 264)
|
1271
1271
|
def _reduce_88(val, _values, result)
|
1272
|
-
result = [val[0]].flatten
|
1272
|
+
result = [val[0]].flatten
|
1273
1273
|
result
|
1274
1274
|
end
|
1275
1275
|
.,.,
|
1276
1276
|
|
1277
1277
|
module_eval(<<'.,.,', 'edtf.y', 265)
|
1278
1278
|
def _reduce_89(val, _values, result)
|
1279
|
-
result = val[0] + [val[2]].flatten
|
1279
|
+
result = val[0] + [val[2]].flatten
|
1280
1280
|
result
|
1281
1281
|
end
|
1282
1282
|
.,.,
|
@@ -1293,49 +1293,49 @@ module_eval(<<'.,.,', 'edtf.y', 265)
|
|
1293
1293
|
|
1294
1294
|
module_eval(<<'.,.,', 'edtf.y', 277)
|
1295
1295
|
def _reduce_95(val, _values, result)
|
1296
|
-
result = val[1]
|
1296
|
+
result = val[1]
|
1297
1297
|
result
|
1298
1298
|
end
|
1299
1299
|
.,.,
|
1300
1300
|
|
1301
1301
|
module_eval(<<'.,.,', 'edtf.y', 279)
|
1302
1302
|
def _reduce_96(val, _values, result)
|
1303
|
-
result = Date.new(*val[0]).year_precision!
|
1303
|
+
result = Date.new(*val[0]).year_precision!
|
1304
1304
|
result
|
1305
1305
|
end
|
1306
1306
|
.,.,
|
1307
1307
|
|
1308
1308
|
module_eval(<<'.,.,', 'edtf.y', 280)
|
1309
1309
|
def _reduce_97(val, _values, result)
|
1310
|
-
result = Date.new(*val[0]).month_precision!
|
1310
|
+
result = Date.new(*val[0]).month_precision!
|
1311
1311
|
result
|
1312
1312
|
end
|
1313
1313
|
.,.,
|
1314
1314
|
|
1315
1315
|
module_eval(<<'.,.,', 'edtf.y', 281)
|
1316
1316
|
def _reduce_98(val, _values, result)
|
1317
|
-
result = Date.new(val[0]).year_precision!
|
1317
|
+
result = Date.new(val[0]).year_precision!
|
1318
1318
|
result
|
1319
1319
|
end
|
1320
1320
|
.,.,
|
1321
1321
|
|
1322
1322
|
module_eval(<<'.,.,', 'edtf.y', 284)
|
1323
1323
|
def _reduce_99(val, _values, result)
|
1324
|
-
result = (Date.new(val[0]).day_precision! .. Date.new(val[2]).day_precision!)
|
1324
|
+
result = (Date.new(val[0]).day_precision! .. Date.new(val[2]).day_precision!)
|
1325
1325
|
result
|
1326
1326
|
end
|
1327
1327
|
.,.,
|
1328
1328
|
|
1329
1329
|
module_eval(<<'.,.,', 'edtf.y', 285)
|
1330
1330
|
def _reduce_100(val, _values, result)
|
1331
|
-
result = (Date.new(val[0]).month_precision! .. Date.new(val[2]).month_precision!)
|
1331
|
+
result = (Date.new(val[0]).month_precision! .. Date.new(val[2]).month_precision!)
|
1332
1332
|
result
|
1333
1333
|
end
|
1334
1334
|
.,.,
|
1335
1335
|
|
1336
1336
|
module_eval(<<'.,.,', 'edtf.y', 286)
|
1337
1337
|
def _reduce_101(val, _values, result)
|
1338
|
-
result = (Date.new(val[0]).year_precision! .. Date.new(val[2]).year_precision!)
|
1338
|
+
result = (Date.new(val[0]).year_precision! .. Date.new(val[2]).year_precision!)
|
1339
1339
|
result
|
1340
1340
|
end
|
1341
1341
|
.,.,
|
@@ -1344,7 +1344,7 @@ module_eval(<<'.,.,', 'edtf.y', 292)
|
|
1344
1344
|
def _reduce_102(val, _values, result)
|
1345
1345
|
result = Date.new(val[0][0], val[2], val[4])
|
1346
1346
|
result.unspecified.year[2,2] = val[0][1]
|
1347
|
-
|
1347
|
+
|
1348
1348
|
result
|
1349
1349
|
end
|
1350
1350
|
.,.,
|
@@ -1354,7 +1354,7 @@ module_eval(<<'.,.,', 'edtf.y', 297)
|
|
1354
1354
|
result = Date.new(val[0][0], 1, val[5])
|
1355
1355
|
result.unspecified.year[2,2] = val[0][1]
|
1356
1356
|
result.unspecified!(:month)
|
1357
|
-
|
1357
|
+
|
1358
1358
|
result
|
1359
1359
|
end
|
1360
1360
|
.,.,
|
@@ -1364,7 +1364,7 @@ module_eval(<<'.,.,', 'edtf.y', 303)
|
|
1364
1364
|
result = Date.new(val[0][0], 1, 1)
|
1365
1365
|
result.unspecified.year[2,2] = val[0][1]
|
1366
1366
|
result.unspecified!([:month, :day])
|
1367
|
-
|
1367
|
+
|
1368
1368
|
result
|
1369
1369
|
end
|
1370
1370
|
.,.,
|
@@ -1374,7 +1374,7 @@ module_eval(<<'.,.,', 'edtf.y', 309)
|
|
1374
1374
|
result = Date.new(val[0][0], val[2], 1)
|
1375
1375
|
result.unspecified.year[2,2] = val[0][1]
|
1376
1376
|
result.unspecified!(:day)
|
1377
|
-
|
1377
|
+
|
1378
1378
|
result
|
1379
1379
|
end
|
1380
1380
|
.,.,
|
@@ -1383,7 +1383,7 @@ module_eval(<<'.,.,', 'edtf.y', 315)
|
|
1383
1383
|
def _reduce_106(val, _values, result)
|
1384
1384
|
result = Date.new(val[0], 1, val[5])
|
1385
1385
|
result.unspecified!(:month)
|
1386
|
-
|
1386
|
+
|
1387
1387
|
result
|
1388
1388
|
end
|
1389
1389
|
.,.,
|
@@ -1392,35 +1392,35 @@ module_eval(<<'.,.,', 'edtf.y', 315)
|
|
1392
1392
|
|
1393
1393
|
module_eval(<<'.,.,', 'edtf.y', 322)
|
1394
1394
|
def _reduce_108(val, _values, result)
|
1395
|
-
result = uoa(val[1], val[3])
|
1395
|
+
result = uoa(val[1], val[3])
|
1396
1396
|
result
|
1397
1397
|
end
|
1398
1398
|
.,.,
|
1399
1399
|
|
1400
1400
|
module_eval(<<'.,.,', 'edtf.y', 325)
|
1401
1401
|
def _reduce_109(val, _values, result)
|
1402
|
-
result = val[0].year_precision!
|
1402
|
+
result = val[0].year_precision!
|
1403
1403
|
result
|
1404
1404
|
end
|
1405
1405
|
.,.,
|
1406
1406
|
|
1407
1407
|
module_eval(<<'.,.,', 'edtf.y', 326)
|
1408
1408
|
def _reduce_110(val, _values, result)
|
1409
|
-
result = val[0][0].month_precision!
|
1409
|
+
result = val[0][0].month_precision!
|
1410
1410
|
result
|
1411
1411
|
end
|
1412
1412
|
.,.,
|
1413
1413
|
|
1414
1414
|
module_eval(<<'.,.,', 'edtf.y', 327)
|
1415
1415
|
def _reduce_111(val, _values, result)
|
1416
|
-
result = val[0].day_precision!
|
1416
|
+
result = val[0].day_precision!
|
1417
1417
|
result
|
1418
1418
|
end
|
1419
1419
|
.,.,
|
1420
1420
|
|
1421
1421
|
module_eval(<<'.,.,', 'edtf.y', 329)
|
1422
1422
|
def _reduce_112(val, _values, result)
|
1423
|
-
result = uoa(Date.new(val[0]), val[1], :year)
|
1423
|
+
result = uoa(Date.new(val[0]), val[1], :year)
|
1424
1424
|
result
|
1425
1425
|
end
|
1426
1426
|
.,.,
|
@@ -1428,7 +1428,7 @@ module_eval(<<'.,.,', 'edtf.y', 329)
|
|
1428
1428
|
module_eval(<<'.,.,', 'edtf.y', 333)
|
1429
1429
|
def _reduce_113(val, _values, result)
|
1430
1430
|
result = [uoa(val[0].change(:month => val[2]), val[3], [:month, :year])]
|
1431
|
-
|
1431
|
+
|
1432
1432
|
result
|
1433
1433
|
end
|
1434
1434
|
.,.,
|
@@ -1436,7 +1436,7 @@ module_eval(<<'.,.,', 'edtf.y', 333)
|
|
1436
1436
|
module_eval(<<'.,.,', 'edtf.y', 336)
|
1437
1437
|
def _reduce_114(val, _values, result)
|
1438
1438
|
result = [uoa(Date.new(val[0], val[2]), val[3], [:year, :month])]
|
1439
|
-
|
1439
|
+
|
1440
1440
|
result
|
1441
1441
|
end
|
1442
1442
|
.,.,
|
@@ -1444,7 +1444,7 @@ module_eval(<<'.,.,', 'edtf.y', 336)
|
|
1444
1444
|
module_eval(<<'.,.,', 'edtf.y', 339)
|
1445
1445
|
def _reduce_115(val, _values, result)
|
1446
1446
|
result = [uoa(Date.new(val[0], val[2]), val[4], [:month]), true]
|
1447
|
-
|
1447
|
+
|
1448
1448
|
result
|
1449
1449
|
end
|
1450
1450
|
.,.,
|
@@ -1452,7 +1452,7 @@ module_eval(<<'.,.,', 'edtf.y', 339)
|
|
1452
1452
|
module_eval(<<'.,.,', 'edtf.y', 342)
|
1453
1453
|
def _reduce_116(val, _values, result)
|
1454
1454
|
result = [uoa(val[0].change(:month => val[2]), val[4], [:month]), true]
|
1455
|
-
|
1455
|
+
|
1456
1456
|
result
|
1457
1457
|
end
|
1458
1458
|
.,.,
|
@@ -1460,7 +1460,7 @@ module_eval(<<'.,.,', 'edtf.y', 342)
|
|
1460
1460
|
module_eval(<<'.,.,', 'edtf.y', 348)
|
1461
1461
|
def _reduce_117(val, _values, result)
|
1462
1462
|
result = uoa(val[0][0].change(:day => val[2]), val[3], val[0][1] ? [:day] : nil)
|
1463
|
-
|
1463
|
+
|
1464
1464
|
result
|
1465
1465
|
end
|
1466
1466
|
.,.,
|
@@ -1468,7 +1468,7 @@ module_eval(<<'.,.,', 'edtf.y', 348)
|
|
1468
1468
|
module_eval(<<'.,.,', 'edtf.y', 351)
|
1469
1469
|
def _reduce_118(val, _values, result)
|
1470
1470
|
result = uoa(val[0][0].change(:day => val[2]), val[4], [:day])
|
1471
|
-
|
1471
|
+
|
1472
1472
|
result
|
1473
1473
|
end
|
1474
1474
|
.,.,
|
@@ -1476,7 +1476,7 @@ module_eval(<<'.,.,', 'edtf.y', 351)
|
|
1476
1476
|
module_eval(<<'.,.,', 'edtf.y', 354)
|
1477
1477
|
def _reduce_119(val, _values, result)
|
1478
1478
|
result = uoa(uoa(Date.new(val[0], val[2], val[5]), val[4], :month), val[6], :day)
|
1479
|
-
|
1479
|
+
|
1480
1480
|
result
|
1481
1481
|
end
|
1482
1482
|
.,.,
|
@@ -1484,7 +1484,7 @@ module_eval(<<'.,.,', 'edtf.y', 354)
|
|
1484
1484
|
module_eval(<<'.,.,', 'edtf.y', 357)
|
1485
1485
|
def _reduce_120(val, _values, result)
|
1486
1486
|
result = uoa(Date.new(val[0][0], val[0][1], val[2]), val[3])
|
1487
|
-
|
1487
|
+
|
1488
1488
|
result
|
1489
1489
|
end
|
1490
1490
|
.,.,
|
@@ -1492,7 +1492,7 @@ module_eval(<<'.,.,', 'edtf.y', 357)
|
|
1492
1492
|
module_eval(<<'.,.,', 'edtf.y', 360)
|
1493
1493
|
def _reduce_121(val, _values, result)
|
1494
1494
|
result = uoa(Date.new(val[0][0], val[0][1], val[2]), val[4], [:day])
|
1495
|
-
|
1495
|
+
|
1496
1496
|
result
|
1497
1497
|
end
|
1498
1498
|
.,.,
|
@@ -1500,7 +1500,7 @@ module_eval(<<'.,.,', 'edtf.y', 360)
|
|
1500
1500
|
module_eval(<<'.,.,', 'edtf.y', 363)
|
1501
1501
|
def _reduce_122(val, _values, result)
|
1502
1502
|
result = uoa(Date.new(val[0], val[2], val[4]), val[6], [:month, :day])
|
1503
|
-
|
1503
|
+
|
1504
1504
|
result
|
1505
1505
|
end
|
1506
1506
|
.,.,
|
@@ -1510,7 +1510,7 @@ module_eval(<<'.,.,', 'edtf.y', 366)
|
|
1510
1510
|
result = Date.new(val[0], val[2], val[4])
|
1511
1511
|
result = uoa(result, val[6], [:day])
|
1512
1512
|
result = uoa(result, val[8], [:month, :day])
|
1513
|
-
|
1513
|
+
|
1514
1514
|
result
|
1515
1515
|
end
|
1516
1516
|
.,.,
|
@@ -1519,7 +1519,7 @@ module_eval(<<'.,.,', 'edtf.y', 371)
|
|
1519
1519
|
def _reduce_124(val, _values, result)
|
1520
1520
|
result = val[0].change(:month => val[2], :day => val[4])
|
1521
1521
|
result = uoa(result, val[6], [:month, :day])
|
1522
|
-
|
1522
|
+
|
1523
1523
|
result
|
1524
1524
|
end
|
1525
1525
|
.,.,
|
@@ -1529,14 +1529,14 @@ module_eval(<<'.,.,', 'edtf.y', 375)
|
|
1529
1529
|
result = val[0].change(:month => val[2], :day => val[4])
|
1530
1530
|
result = uoa(result, val[6], [:day])
|
1531
1531
|
result = uoa(result, val[8], [:month, :day])
|
1532
|
-
|
1532
|
+
|
1533
1533
|
result
|
1534
1534
|
end
|
1535
1535
|
.,.,
|
1536
1536
|
|
1537
1537
|
module_eval(<<'.,.,', 'edtf.y', 386)
|
1538
1538
|
def _reduce_126(val, _values, result)
|
1539
|
-
result = []
|
1539
|
+
result = []
|
1540
1540
|
result
|
1541
1541
|
end
|
1542
1542
|
.,.,
|
@@ -1545,7 +1545,7 @@ module_eval(<<'.,.,', 'edtf.y', 386)
|
|
1545
1545
|
|
1546
1546
|
module_eval(<<'.,.,', 'edtf.y', 390)
|
1547
1547
|
def _reduce_128(val, _values, result)
|
1548
|
-
result = 0
|
1548
|
+
result = 0
|
1549
1549
|
result
|
1550
1550
|
end
|
1551
1551
|
.,.,
|
@@ -1572,28 +1572,28 @@ module_eval(<<'.,.,', 'edtf.y', 390)
|
|
1572
1572
|
|
1573
1573
|
module_eval(<<'.,.,', 'edtf.y', 396)
|
1574
1574
|
def _reduce_139(val, _values, result)
|
1575
|
-
result = val[1]
|
1575
|
+
result = val[1]
|
1576
1576
|
result
|
1577
1577
|
end
|
1578
1578
|
.,.,
|
1579
1579
|
|
1580
1580
|
module_eval(<<'.,.,', 'edtf.y', 397)
|
1581
1581
|
def _reduce_140(val, _values, result)
|
1582
|
-
result = 10
|
1582
|
+
result = 10
|
1583
1583
|
result
|
1584
1584
|
end
|
1585
1585
|
.,.,
|
1586
1586
|
|
1587
1587
|
module_eval(<<'.,.,', 'edtf.y', 398)
|
1588
1588
|
def _reduce_141(val, _values, result)
|
1589
|
-
result = 11
|
1589
|
+
result = 11
|
1590
1590
|
result
|
1591
1591
|
end
|
1592
1592
|
.,.,
|
1593
1593
|
|
1594
1594
|
module_eval(<<'.,.,', 'edtf.y', 399)
|
1595
1595
|
def _reduce_142(val, _values, result)
|
1596
|
-
result = 12
|
1596
|
+
result = 12
|
1597
1597
|
result
|
1598
1598
|
end
|
1599
1599
|
.,.,
|
@@ -1602,49 +1602,49 @@ module_eval(<<'.,.,', 'edtf.y', 399)
|
|
1602
1602
|
|
1603
1603
|
module_eval(<<'.,.,', 'edtf.y', 403)
|
1604
1604
|
def _reduce_144(val, _values, result)
|
1605
|
-
result = 13
|
1605
|
+
result = 13
|
1606
1606
|
result
|
1607
1607
|
end
|
1608
1608
|
.,.,
|
1609
1609
|
|
1610
1610
|
module_eval(<<'.,.,', 'edtf.y', 406)
|
1611
1611
|
def _reduce_145(val, _values, result)
|
1612
|
-
result = val[1]
|
1612
|
+
result = val[1]
|
1613
1613
|
result
|
1614
1614
|
end
|
1615
1615
|
.,.,
|
1616
1616
|
|
1617
1617
|
module_eval(<<'.,.,', 'edtf.y', 407)
|
1618
1618
|
def _reduce_146(val, _values, result)
|
1619
|
-
result = 10 + val[1]
|
1619
|
+
result = 10 + val[1]
|
1620
1620
|
result
|
1621
1621
|
end
|
1622
1622
|
.,.,
|
1623
1623
|
|
1624
1624
|
module_eval(<<'.,.,', 'edtf.y', 408)
|
1625
1625
|
def _reduce_147(val, _values, result)
|
1626
|
-
result = 20
|
1626
|
+
result = 20
|
1627
1627
|
result
|
1628
1628
|
end
|
1629
1629
|
.,.,
|
1630
1630
|
|
1631
1631
|
module_eval(<<'.,.,', 'edtf.y', 409)
|
1632
1632
|
def _reduce_148(val, _values, result)
|
1633
|
-
result = 21
|
1633
|
+
result = 21
|
1634
1634
|
result
|
1635
1635
|
end
|
1636
1636
|
.,.,
|
1637
1637
|
|
1638
1638
|
module_eval(<<'.,.,', 'edtf.y', 410)
|
1639
1639
|
def _reduce_149(val, _values, result)
|
1640
|
-
result = 22
|
1640
|
+
result = 22
|
1641
1641
|
result
|
1642
1642
|
end
|
1643
1643
|
.,.,
|
1644
1644
|
|
1645
1645
|
module_eval(<<'.,.,', 'edtf.y', 411)
|
1646
1646
|
def _reduce_150(val, _values, result)
|
1647
|
-
result = 23
|
1647
|
+
result = 23
|
1648
1648
|
result
|
1649
1649
|
end
|
1650
1650
|
.,.,
|
@@ -1657,42 +1657,42 @@ module_eval(<<'.,.,', 'edtf.y', 411)
|
|
1657
1657
|
|
1658
1658
|
module_eval(<<'.,.,', 'edtf.y', 419)
|
1659
1659
|
def _reduce_154(val, _values, result)
|
1660
|
-
result = 24
|
1660
|
+
result = 24
|
1661
1661
|
result
|
1662
1662
|
end
|
1663
1663
|
.,.,
|
1664
1664
|
|
1665
1665
|
module_eval(<<'.,.,', 'edtf.y', 420)
|
1666
1666
|
def _reduce_155(val, _values, result)
|
1667
|
-
result = 25
|
1667
|
+
result = 25
|
1668
1668
|
result
|
1669
1669
|
end
|
1670
1670
|
.,.,
|
1671
1671
|
|
1672
1672
|
module_eval(<<'.,.,', 'edtf.y', 421)
|
1673
1673
|
def _reduce_156(val, _values, result)
|
1674
|
-
result = 26
|
1674
|
+
result = 26
|
1675
1675
|
result
|
1676
1676
|
end
|
1677
1677
|
.,.,
|
1678
1678
|
|
1679
1679
|
module_eval(<<'.,.,', 'edtf.y', 422)
|
1680
1680
|
def _reduce_157(val, _values, result)
|
1681
|
-
result = 27
|
1681
|
+
result = 27
|
1682
1682
|
result
|
1683
1683
|
end
|
1684
1684
|
.,.,
|
1685
1685
|
|
1686
1686
|
module_eval(<<'.,.,', 'edtf.y', 423)
|
1687
1687
|
def _reduce_158(val, _values, result)
|
1688
|
-
result = 28
|
1688
|
+
result = 28
|
1689
1689
|
result
|
1690
1690
|
end
|
1691
1691
|
.,.,
|
1692
1692
|
|
1693
1693
|
module_eval(<<'.,.,', 'edtf.y', 424)
|
1694
1694
|
def _reduce_159(val, _values, result)
|
1695
|
-
result = 29
|
1695
|
+
result = 29
|
1696
1696
|
result
|
1697
1697
|
end
|
1698
1698
|
.,.,
|
@@ -1701,7 +1701,7 @@ module_eval(<<'.,.,', 'edtf.y', 424)
|
|
1701
1701
|
|
1702
1702
|
module_eval(<<'.,.,', 'edtf.y', 428)
|
1703
1703
|
def _reduce_161(val, _values, result)
|
1704
|
-
result = 30
|
1704
|
+
result = 30
|
1705
1705
|
result
|
1706
1706
|
end
|
1707
1707
|
.,.,
|
@@ -1710,7 +1710,7 @@ module_eval(<<'.,.,', 'edtf.y', 428)
|
|
1710
1710
|
|
1711
1711
|
module_eval(<<'.,.,', 'edtf.y', 432)
|
1712
1712
|
def _reduce_163(val, _values, result)
|
1713
|
-
result = 31
|
1713
|
+
result = 31
|
1714
1714
|
result
|
1715
1715
|
end
|
1716
1716
|
.,.,
|
@@ -1719,21 +1719,21 @@ module_eval(<<'.,.,', 'edtf.y', 432)
|
|
1719
1719
|
|
1720
1720
|
module_eval(<<'.,.,', 'edtf.y', 436)
|
1721
1721
|
def _reduce_165(val, _values, result)
|
1722
|
-
result = 30 + val[1]
|
1722
|
+
result = 30 + val[1]
|
1723
1723
|
result
|
1724
1724
|
end
|
1725
1725
|
.,.,
|
1726
1726
|
|
1727
1727
|
module_eval(<<'.,.,', 'edtf.y', 437)
|
1728
1728
|
def _reduce_166(val, _values, result)
|
1729
|
-
result = 40 + val[1]
|
1729
|
+
result = 40 + val[1]
|
1730
1730
|
result
|
1731
1731
|
end
|
1732
1732
|
.,.,
|
1733
1733
|
|
1734
1734
|
module_eval(<<'.,.,', 'edtf.y', 438)
|
1735
1735
|
def _reduce_167(val, _values, result)
|
1736
|
-
result = 50 + val[1]
|
1736
|
+
result = 50 + val[1]
|
1737
1737
|
result
|
1738
1738
|
end
|
1739
1739
|
.,.,
|
@@ -1744,14 +1744,14 @@ module_eval(<<'.,.,', 'edtf.y', 438)
|
|
1744
1744
|
|
1745
1745
|
module_eval(<<'.,.,', 'edtf.y', 445)
|
1746
1746
|
def _reduce_170(val, _values, result)
|
1747
|
-
result = val[0]
|
1747
|
+
result = val[0]
|
1748
1748
|
result
|
1749
1749
|
end
|
1750
1750
|
.,.,
|
1751
1751
|
|
1752
1752
|
module_eval(<<'.,.,', 'edtf.y', 446)
|
1753
1753
|
def _reduce_171(val, _values, result)
|
1754
|
-
result = 10 * val[0] + val[1]
|
1754
|
+
result = 10 * val[0] + val[1]
|
1755
1755
|
result
|
1756
1756
|
end
|
1757
1757
|
.,.,
|
@@ -1759,7 +1759,7 @@ module_eval(<<'.,.,', 'edtf.y', 446)
|
|
1759
1759
|
module_eval(<<'.,.,', 'edtf.y', 449)
|
1760
1760
|
def _reduce_172(val, _values, result)
|
1761
1761
|
result = val.zip([100,10,1]).reduce(0) { |s,(a,b)| s += a * b }
|
1762
|
-
|
1762
|
+
|
1763
1763
|
result
|
1764
1764
|
end
|
1765
1765
|
.,.,
|
@@ -1767,21 +1767,21 @@ module_eval(<<'.,.,', 'edtf.y', 449)
|
|
1767
1767
|
module_eval(<<'.,.,', 'edtf.y', 453)
|
1768
1768
|
def _reduce_173(val, _values, result)
|
1769
1769
|
result = val.zip([1000,100,10,1]).reduce(0) { |s,(a,b)| s += a * b }
|
1770
|
-
|
1770
|
+
|
1771
1771
|
result
|
1772
1772
|
end
|
1773
1773
|
.,.,
|
1774
1774
|
|
1775
1775
|
module_eval(<<'.,.,', 'edtf.y', 457)
|
1776
1776
|
def _reduce_174(val, _values, result)
|
1777
|
-
result = val[0]
|
1777
|
+
result = val[0]
|
1778
1778
|
result
|
1779
1779
|
end
|
1780
1780
|
.,.,
|
1781
1781
|
|
1782
1782
|
module_eval(<<'.,.,', 'edtf.y', 458)
|
1783
1783
|
def _reduce_175(val, _values, result)
|
1784
|
-
result = 10 * val[0] + val[1]
|
1784
|
+
result = 10 * val[0] + val[1]
|
1785
1785
|
result
|
1786
1786
|
end
|
1787
1787
|
.,.,
|
@@ -1791,4 +1791,4 @@ def _reduce_none(val, _values, result)
|
|
1791
1791
|
end
|
1792
1792
|
|
1793
1793
|
end # class Parser
|
1794
|
-
|
1794
|
+
end # module EDTF
|