racc 1.5.2 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (122) hide show
  1. checksums.yaml +4 -4
  2. data/README.ja.rdoc +0 -1
  3. data/README.rdoc +6 -7
  4. data/{rdoc → doc}/en/NEWS.en.rdoc +0 -0
  5. data/{rdoc → doc}/en/grammar.en.rdoc +27 -31
  6. data/doc/en/grammar2.en.rdoc +219 -0
  7. data/{rdoc → doc}/ja/NEWS.ja.rdoc +0 -0
  8. data/{rdoc → doc}/ja/command.ja.html +0 -0
  9. data/{rdoc → doc}/ja/debug.ja.rdoc +0 -0
  10. data/{rdoc → doc}/ja/grammar.ja.rdoc +0 -0
  11. data/{rdoc → doc}/ja/index.ja.html +0 -0
  12. data/{rdoc → doc}/ja/parser.ja.rdoc +0 -0
  13. data/{rdoc → doc}/ja/usage.ja.html +0 -0
  14. data/ext/racc/cparse/cparse.c +1 -1
  15. data/ext/racc/cparse/extconf.rb +1 -0
  16. data/lib/racc/info.rb +1 -1
  17. data/lib/racc/parser-text.rb +1 -1
  18. data/lib/racc/parser.rb +1 -1
  19. data/lib/racc/parserfilegenerator.rb +0 -44
  20. data/lib/racc/statetransitiontable.rb +2 -8
  21. metadata +15 -121
  22. data/Rakefile +0 -79
  23. data/ext/racc/com/headius/racc/Cparse.java +0 -849
  24. data/lib/racc/pre-setup +0 -13
  25. data/sample/array.y +0 -67
  26. data/sample/array2.y +0 -59
  27. data/sample/calc-ja.y +0 -66
  28. data/sample/calc.y +0 -65
  29. data/sample/conflict.y +0 -15
  30. data/sample/hash.y +0 -60
  31. data/sample/lalr.y +0 -17
  32. data/sample/lists.y +0 -57
  33. data/sample/syntax.y +0 -46
  34. data/sample/yyerr.y +0 -46
  35. data/test/assets/cadenza.y +0 -170
  36. data/test/assets/cast.y +0 -926
  37. data/test/assets/chk.y +0 -126
  38. data/test/assets/conf.y +0 -16
  39. data/test/assets/csspool.y +0 -729
  40. data/test/assets/digraph.y +0 -29
  41. data/test/assets/echk.y +0 -118
  42. data/test/assets/edtf.y +0 -583
  43. data/test/assets/err.y +0 -60
  44. data/test/assets/error_recovery.y +0 -35
  45. data/test/assets/expect.y +0 -7
  46. data/test/assets/firstline.y +0 -4
  47. data/test/assets/huia.y +0 -318
  48. data/test/assets/ichk.y +0 -102
  49. data/test/assets/intp.y +0 -546
  50. data/test/assets/journey.y +0 -47
  51. data/test/assets/liquor.y +0 -313
  52. data/test/assets/machete.y +0 -423
  53. data/test/assets/macruby.y +0 -2197
  54. data/test/assets/mailp.y +0 -437
  55. data/test/assets/mediacloth.y +0 -599
  56. data/test/assets/mof.y +0 -649
  57. data/test/assets/namae.y +0 -302
  58. data/test/assets/nasl.y +0 -626
  59. data/test/assets/newsyn.y +0 -25
  60. data/test/assets/noend.y +0 -4
  61. data/test/assets/nokogiri-css.y +0 -255
  62. data/test/assets/nonass.y +0 -41
  63. data/test/assets/normal.y +0 -27
  64. data/test/assets/norule.y +0 -4
  65. data/test/assets/nullbug1.y +0 -25
  66. data/test/assets/nullbug2.y +0 -15
  67. data/test/assets/opal.y +0 -1807
  68. data/test/assets/opt.y +0 -123
  69. data/test/assets/percent.y +0 -35
  70. data/test/assets/php_serialization.y +0 -98
  71. data/test/assets/recv.y +0 -97
  72. data/test/assets/riml.y +0 -665
  73. data/test/assets/rrconf.y +0 -14
  74. data/test/assets/ruby18.y +0 -1943
  75. data/test/assets/ruby19.y +0 -2174
  76. data/test/assets/ruby20.y +0 -2350
  77. data/test/assets/ruby21.y +0 -2359
  78. data/test/assets/ruby22.y +0 -2381
  79. data/test/assets/scan.y +0 -72
  80. data/test/assets/syntax.y +0 -50
  81. data/test/assets/tp_plus.y +0 -622
  82. data/test/assets/twowaysql.y +0 -278
  83. data/test/assets/unterm.y +0 -5
  84. data/test/assets/useless.y +0 -12
  85. data/test/assets/yyerr.y +0 -46
  86. data/test/bench.y +0 -36
  87. data/test/helper.rb +0 -115
  88. data/test/infini.y +0 -8
  89. data/test/regress/cadenza +0 -796
  90. data/test/regress/cast +0 -3428
  91. data/test/regress/csspool +0 -2314
  92. data/test/regress/edtf +0 -1794
  93. data/test/regress/huia +0 -1392
  94. data/test/regress/journey +0 -222
  95. data/test/regress/liquor +0 -885
  96. data/test/regress/machete +0 -833
  97. data/test/regress/mediacloth +0 -1463
  98. data/test/regress/mof +0 -1368
  99. data/test/regress/namae +0 -634
  100. data/test/regress/nasl +0 -2058
  101. data/test/regress/nokogiri-css +0 -836
  102. data/test/regress/opal +0 -6431
  103. data/test/regress/php_serialization +0 -336
  104. data/test/regress/riml +0 -3283
  105. data/test/regress/ruby18 +0 -6344
  106. data/test/regress/ruby22 +0 -7460
  107. data/test/regress/tp_plus +0 -1933
  108. data/test/regress/twowaysql +0 -556
  109. data/test/scandata/brace +0 -7
  110. data/test/scandata/gvar +0 -1
  111. data/test/scandata/normal +0 -4
  112. data/test/scandata/percent +0 -18
  113. data/test/scandata/slash +0 -10
  114. data/test/src.intp +0 -34
  115. data/test/start.y +0 -20
  116. data/test/test_chk_y.rb +0 -52
  117. data/test/test_grammar_file_parser.rb +0 -15
  118. data/test/test_racc_command.rb +0 -339
  119. data/test/test_scan_y.rb +0 -52
  120. data/test/testscanner.rb +0 -51
  121. data/web/racc.en.rhtml +0 -42
  122. data/web/racc.ja.rhtml +0 -51
data/test/regress/edtf DELETED
@@ -1,1794 +0,0 @@
1
- #
2
- # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.5.0
4
- # from Racc grammar file "".
5
- #
6
-
7
- require 'racc/parser.rb'
8
-
9
- require 'strscan'
10
-
11
- module EDTF
12
- class Parser < Racc::Parser
13
-
14
- module_eval(<<'...end edtf.y/module_eval...', 'edtf.y', 468)
15
-
16
- @defaults = {
17
- :level => 2,
18
- :debug => false
19
- }.freeze
20
-
21
- class << self; attr_reader :defaults; end
22
-
23
- attr_reader :options
24
-
25
- def initialize(options = {})
26
- @options = Parser.defaults.merge(options)
27
- end
28
-
29
- def debug?
30
- !!(options[:debug] || ENV['DEBUG'])
31
- end
32
-
33
- def parse(input)
34
- parse!(input)
35
- rescue => e
36
- warn e.message if debug?
37
- nil
38
- end
39
-
40
- def parse!(input)
41
- @yydebug = debug?
42
- @src = StringScanner.new(input)
43
- do_parse
44
- end
45
-
46
- def on_error(tid, value, stack)
47
- raise ArgumentError,
48
- "failed to parse date: unexpected '#{value}' at #{stack.inspect}"
49
- end
50
-
51
- def apply_uncertainty(date, uncertainty, scope = nil)
52
- uncertainty.each do |u|
53
- scope.nil? ? date.send(u) : date.send(u, scope)
54
- end
55
- date
56
- end
57
-
58
- alias uoa apply_uncertainty
59
-
60
- def next_token
61
- case
62
- when @src.eos?
63
- nil
64
- # when @src.scan(/\s+/)
65
- # ignore whitespace
66
- when @src.scan(/\(/)
67
- ['(', @src.matched]
68
- # when @src.scan(/\)\?~-/)
69
- # [:PUA, [:uncertain!, :approximate!]]
70
- # when @src.scan(/\)\?-/)
71
- # [:PUA, [:uncertain!]]
72
- # when @src.scan(/\)~-/)
73
- # [:PUA, [:approximate!]]
74
- when @src.scan(/\)/)
75
- [')', @src.matched]
76
- when @src.scan(/\[/)
77
- ['[', @src.matched]
78
- when @src.scan(/\]/)
79
- [']', @src.matched]
80
- when @src.scan(/\{/)
81
- ['{', @src.matched]
82
- when @src.scan(/\}/)
83
- ['}', @src.matched]
84
- when @src.scan(/T/)
85
- [:T, @src.matched]
86
- when @src.scan(/Z/)
87
- [:Z, @src.matched]
88
- when @src.scan(/\?~/)
89
- [:UA, [:uncertain!, :approximate!]]
90
- when @src.scan(/\?/)
91
- [:UA, [:uncertain!]]
92
- when @src.scan(/~/)
93
- [:UA, [:approximate!]]
94
- when @src.scan(/open/i)
95
- [:OPEN, :open]
96
- when @src.scan(/unkn?own/i) # matches 'unkown' typo too
97
- [:UNKNOWN, :unknown]
98
- when @src.scan(/u/)
99
- [:U, @src.matched]
100
- when @src.scan(/x/i)
101
- [:X, @src.matched]
102
- when @src.scan(/y/)
103
- [:LONGYEAR, @src.matched]
104
- when @src.scan(/e/)
105
- [:E, @src.matched]
106
- when @src.scan(/\+/)
107
- ['+', @src.matched]
108
- when @src.scan(/-\(/)
109
- ['-(', @src.matched]
110
- when @src.scan(/-/)
111
- ['-', @src.matched]
112
- when @src.scan(/:/)
113
- [':', @src.matched]
114
- when @src.scan(/\//)
115
- ['/', @src.matched]
116
- when @src.scan(/\s*\.\.\s*/)
117
- [:DOTS, '..']
118
- when @src.scan(/\s*,\s*/)
119
- [',', ',']
120
- when @src.scan(/\^\w+/)
121
- ['^', @src.matched[1..-1]]
122
- when @src.scan(/\d/)
123
- [@src.matched, @src.matched.to_i]
124
- else @src.scan(/./)
125
- [:UNMATCHED, @src.rest]
126
- end
127
- end
128
-
129
-
130
- # -*- racc -*-
131
- ...end edtf.y/module_eval...
132
- ##### State transition tables begin ###
133
-
134
- racc_action_table = [
135
- 129, 128, 52, 111, 51, 112, 149, 208, 207, 57,
136
- -50, 43, 45, 40, 55, 42, 54, 44, 43, 45,
137
- 40, -48, 42, 53, 44, 64, 58, 46, 47, 48,
138
- 49, 50, 128, 56, 46, 47, 48, 49, 50, 207,
139
- 57, 65, 43, 45, 40, 55, 42, 157, 44, 43,
140
- 45, 40, 55, 42, 214, 44, 92, 58, 46, 47,
141
- 48, 49, 50, 66, 56, 46, 47, 48, 49, 50,
142
- 25, 56, 26, 93, 94, 67, 108, 12, -65, 43,
143
- 45, 40, -66, 42, 159, 44, 110, 33, 111, 34,
144
- 112, 95, 36, 25, 141, 46, 47, 48, 49, 50,
145
- 12, 58, 43, 45, 40, 101, 42, 103, 44, 104,
146
- 96, 148, 55, 133, 147, 36, 124, 125, 46, 47,
147
- 48, 49, 50, 87, 165, 111, 12, 112, 43, 45,
148
- 40, 56, 42, 146, 44, 166, 111, 150, 112, 218,
149
- 167, 36, 152, 153, 46, 47, 48, 49, 50, 87,
150
- 108, 111, 12, 112, 43, 45, 40, 188, 42, 186,
151
- 44, 187, 111, 190, 112, 154, 111, 36, 112, 156,
152
- 46, 47, 48, 49, 50, 69, 158, 43, 45, 189,
153
- 191, 42, 12, 44, 43, 45, 40, 200, 42, 201,
154
- 44, 168, 177, 46, 47, 48, 49, 50, 233, 178,
155
- 46, 47, 48, 49, 50, 12, 180, 43, 45, 40,
156
- 111, 42, 112, 44, 232, 234, 111, 240, 112, 239,
157
- 36, 192, 193, 46, 47, 48, 49, 50, 12, 202,
158
- 43, 45, 40, 118, 42, 117, 44, 104, 118, 121,
159
- 117, 209, 104, 36, 121, 210, 46, 47, 48, 49,
160
- 50, 12, 212, 43, 45, 40, 244, 42, 239, 44,
161
- 213, 43, 45, 40, 215, 42, 36, 44, 229, 46,
162
- 47, 48, 49, 50, 180, 180, 236, 46, 47, 48,
163
- 49, 50, 43, 45, 40, 253, 42, 254, 44, 43,
164
- 45, 40, 255, 42, 258, 44, 261, 264, 46, 47,
165
- 48, 49, 50, 124, 125, 46, 47, 48, 49, 50,
166
- 43, 45, 40, 265, 42, 192, 44, 43, 45, 266,
167
- 269, 42, 270, 44, 275, 280, 46, 47, 48, 49,
168
- 50, 284, 285, 46, 47, 48, 49, 50, 43, 45,
169
- 40, 286, 42, 290, 44, 43, 45, 292, 293, 42,
170
- 295, 44, 296, 297, 46, 47, 48, 49, 50, 300,
171
- 301, 46, 47, 48, 49, 50, 43, 45, 40, 180,
172
- 42, 303, 44, 43, 45, 40, 304, 42, 305, 44,
173
- 281, 306, 46, 47, 48, 49, 50, 307, 308, 46,
174
- 47, 48, 49, 50, 43, 45, 175, 311, 42, 312,
175
- 44, 43, 45, 40, 313, 42, 314, 44, 316, 317,
176
- 46, 47, 48, 49, 50, 318, 319, 46, 47, 48,
177
- 49, 50, 43, 45, nil, nil, 42, nil, 44, 43,
178
- 45, nil, nil, 42, nil, 44, nil, nil, 46, 47,
179
- 48, 49, 50, nil, nil, 46, 47, 48, 49, 50,
180
- 172, 194, 170, nil, 171, nil, 173, 43, 45, 40,
181
- nil, 42, nil, 44, nil, nil, 195, 196, 197, 198,
182
- 199, nil, nil, 46, 47, 48, 49, 50, 43, 45,
183
- 40, nil, 42, nil, 44, 43, 45, 40, nil, 42,
184
- nil, 44, nil, nil, 46, 47, 48, 49, 50, nil,
185
- nil, 46, 47, 48, 49, 50, 43, 45, 40, nil,
186
- 42, nil, 44, 43, 45, nil, nil, 42, nil, 44,
187
- nil, nil, 46, 47, 48, 49, 50, nil, nil, 46,
188
- 47, 48, 49, 50, 43, 45, 40, nil, 42, nil,
189
- 44, 43, 45, 40, nil, 42, nil, 44, nil, nil,
190
- 46, 47, 48, 49, 50, nil, nil, 46, 47, 48,
191
- 49, 50, 43, 45, 40, nil, 42, nil, 44, 43,
192
- 45, 40, nil, 42, nil, 44, nil, nil, 46, 47,
193
- 48, 49, 50, nil, nil, 46, 47, 48, 49, 50,
194
- 43, 45, nil, nil, 42, nil, 44, 43, 45, 40,
195
- nil, 42, nil, 44, nil, nil, 46, 47, 48, 49,
196
- 50, nil, nil, 46, 47, 48, 49, 50, 43, 45,
197
- 40, nil, 42, nil, 44, 43, 45, 273, nil, 42,
198
- nil, 44, nil, nil, 46, 47, 48, 49, 50, nil,
199
- nil, 46, 47, 48, 49, 50, 43, 45, 274, nil,
200
- 42, nil, 44, 43, 45, 276, nil, 42, nil, 44,
201
- nil, nil, 46, 47, 48, 49, 50, nil, nil, 46,
202
- 47, 48, 49, 50, 43, 45, 40, nil, 42, nil,
203
- 44, 43, 45, 40, nil, 42, nil, 44, nil, nil,
204
- 46, 47, 48, 49, 50, nil, nil, 46, 47, 48,
205
- 49, 50, 43, 45, 40, nil, 42, nil, 44, 43,
206
- 45, 40, nil, 42, nil, 44, nil, nil, 46, 47,
207
- 48, 49, 50, nil, nil, 46, 47, 48, 49, 50,
208
- 43, 45, 40, nil, 42, nil, 44, 43, 45, 315,
209
- nil, 42, nil, 44, nil, nil, 46, 47, 48, 49,
210
- 50, 116, nil, 46, 47, 48, 49, 50, 118, 250,
211
- 247, 118, 104, 117, 249, 104, 260, 121, nil, 281,
212
- nil, nil, nil, nil, 251, nil, 118, 288, 117, 118,
213
- 104, 117, 121, 104, 118, 121, 117, 118, 104, 117,
214
- 121, 104, nil, 121, 118, 250, 247, nil, 104, nil,
215
- 249, 118, 250, 247, nil, 104, nil, 249, nil, nil,
216
- 251, nil, 118, 250, 117, nil, 104, 251, 249, 118,
217
- 250, 310, nil, 104, nil, 249, nil, nil, 251, nil,
218
- 172, 169, 170, nil, 171, 251, 173, 182, 184, nil,
219
- 118, 181, 117, 183, 104, 118, 121, 117, 118, 104,
220
- 117, 121, 104, 118, 121, 117, 118, 104, 117, 121,
221
- 104, 118, 121, 117, nil, 104, nil, 121, 188, 271,
222
- 186, 118, 187, 117, 272, 104, nil, 121 ]
223
-
224
- racc_action_check = [
225
- 63, 63, 5, 56, 1, 56, 73, 127, 127, 73,
226
- 14, 63, 63, 63, 9, 63, 9, 63, 127, 127,
227
- 127, 5, 127, 5, 127, 16, 73, 63, 63, 63,
228
- 63, 63, 151, 9, 127, 127, 127, 127, 127, 224,
229
- 10, 17, 151, 151, 151, 89, 151, 89, 151, 224,
230
- 224, 224, 134, 224, 134, 224, 37, 10, 151, 151,
231
- 151, 151, 151, 18, 89, 224, 224, 224, 224, 224,
232
- 0, 134, 0, 37, 38, 22, 54, 0, 23, 0,
233
- 0, 0, 24, 0, 91, 0, 54, 0, 54, 0,
234
- 54, 38, 0, 67, 67, 0, 0, 0, 0, 0,
235
- 67, 91, 67, 67, 67, 52, 67, 52, 67, 52,
236
- 51, 72, 72, 66, 72, 67, 59, 60, 67, 67,
237
- 67, 67, 67, 33, 98, 66, 33, 66, 33, 33,
238
- 33, 72, 33, 71, 33, 98, 92, 74, 92, 147,
239
- 98, 33, 77, 78, 33, 33, 33, 33, 33, 34,
240
- 214, 147, 34, 147, 34, 34, 34, 112, 34, 112,
241
- 34, 112, 214, 113, 214, 79, 93, 34, 93, 88,
242
- 34, 34, 34, 34, 34, 26, 90, 26, 26, 113,
243
- 113, 26, 87, 26, 87, 87, 87, 121, 87, 121,
244
- 87, 99, 107, 26, 26, 26, 26, 26, 161, 108,
245
- 87, 87, 87, 87, 87, 153, 109, 153, 153, 153,
246
- 124, 153, 124, 153, 161, 161, 157, 166, 157, 166,
247
- 153, 115, 116, 153, 153, 153, 153, 153, 154, 123,
248
- 154, 154, 154, 58, 154, 58, 154, 58, 94, 58,
249
- 94, 128, 94, 154, 94, 129, 154, 154, 154, 154,
250
- 154, 265, 132, 265, 265, 265, 167, 265, 167, 265,
251
- 133, 12, 12, 12, 144, 12, 265, 12, 158, 265,
252
- 265, 265, 265, 265, 160, 162, 163, 12, 12, 12,
253
- 12, 12, 13, 13, 13, 169, 13, 178, 13, 36,
254
- 36, 36, 189, 36, 202, 36, 213, 218, 13, 13,
255
- 13, 13, 13, 220, 222, 36, 36, 36, 36, 36,
256
- 62, 62, 62, 225, 62, 230, 62, 64, 64, 232,
257
- 236, 64, 238, 64, 245, 253, 62, 62, 62, 62,
258
- 62, 256, 257, 64, 64, 64, 64, 64, 68, 68,
259
- 68, 260, 68, 264, 68, 69, 69, 267, 268, 69,
260
- 271, 69, 273, 274, 68, 68, 68, 68, 68, 280,
261
- 281, 69, 69, 69, 69, 69, 70, 70, 70, 283,
262
- 70, 284, 70, 75, 75, 75, 285, 75, 288, 75,
263
- 290, 292, 70, 70, 70, 70, 70, 293, 295, 75,
264
- 75, 75, 75, 75, 103, 103, 103, 300, 103, 304,
265
- 103, 104, 104, 104, 307, 104, 308, 104, 311, 312,
266
- 103, 103, 103, 103, 103, 313, 316, 104, 104, 104,
267
- 104, 104, 111, 111, nil, nil, 111, nil, 111, 117,
268
- 117, nil, nil, 117, nil, 117, nil, nil, 111, 111,
269
- 111, 111, 111, nil, nil, 117, 117, 117, 117, 117,
270
- 118, 118, 118, nil, 118, nil, 118, 126, 126, 126,
271
- nil, 126, nil, 126, nil, nil, 118, 118, 118, 118,
272
- 118, nil, nil, 126, 126, 126, 126, 126, 130, 130,
273
- 130, nil, 130, nil, 130, 143, 143, 143, nil, 143,
274
- nil, 143, nil, nil, 130, 130, 130, 130, 130, nil,
275
- nil, 143, 143, 143, 143, 143, 145, 145, 145, nil,
276
- 145, nil, 145, 146, 146, nil, nil, 146, nil, 146,
277
- nil, nil, 145, 145, 145, 145, 145, nil, nil, 146,
278
- 146, 146, 146, 146, 148, 148, 148, nil, 148, nil,
279
- 148, 149, 149, 149, nil, 149, nil, 149, nil, nil,
280
- 148, 148, 148, 148, 148, nil, nil, 149, 149, 149,
281
- 149, 149, 150, 150, 150, nil, 150, nil, 150, 205,
282
- 205, 205, nil, 205, nil, 205, nil, nil, 150, 150,
283
- 150, 150, 150, nil, nil, 205, 205, 205, 205, 205,
284
- 215, 215, nil, nil, 215, nil, 215, 216, 216, 216,
285
- nil, 216, nil, 216, nil, nil, 215, 215, 215, 215,
286
- 215, nil, nil, 216, 216, 216, 216, 216, 217, 217,
287
- 217, nil, 217, nil, 217, 240, 240, 240, nil, 240,
288
- nil, 240, nil, nil, 217, 217, 217, 217, 217, nil,
289
- nil, 240, 240, 240, 240, 240, 244, 244, 244, nil,
290
- 244, nil, 244, 247, 247, 247, nil, 247, nil, 247,
291
- nil, nil, 244, 244, 244, 244, 244, nil, nil, 247,
292
- 247, 247, 247, 247, 249, 249, 249, nil, 249, nil,
293
- 249, 250, 250, 250, nil, 250, nil, 250, nil, nil,
294
- 249, 249, 249, 249, 249, nil, nil, 250, 250, 250,
295
- 250, 250, 251, 251, 251, nil, 251, nil, 251, 262,
296
- 262, 262, nil, 262, nil, 262, nil, nil, 251, 251,
297
- 251, 251, 251, nil, nil, 262, 262, 262, 262, 262,
298
- 263, 263, 263, nil, 263, nil, 263, 310, 310, 310,
299
- nil, 310, nil, 310, nil, nil, 263, 263, 263, 263,
300
- 263, 57, nil, 310, 310, 310, 310, 310, 168, 168,
301
- 168, 57, 168, 57, 168, 57, 212, 57, nil, 254,
302
- nil, nil, nil, nil, 168, nil, 212, 261, 212, 254,
303
- 212, 254, 212, 254, 95, 254, 95, 261, 95, 261,
304
- 95, 261, nil, 261, 270, 270, 270, nil, 270, nil,
305
- 270, 275, 275, 275, nil, 275, nil, 275, nil, nil,
306
- 270, nil, 296, 296, 296, nil, 296, 275, 296, 297,
307
- 297, 297, nil, 297, nil, 297, nil, nil, 296, nil,
308
- 101, 101, 101, nil, 101, 297, 101, 110, 110, nil,
309
- 125, 110, 125, 110, 125, 159, 125, 159, 190, 159,
310
- 190, 159, 190, 191, 190, 191, 233, 191, 233, 191,
311
- 233, 234, 233, 234, nil, 234, nil, 234, 239, 239,
312
- 239, 255, 239, 255, 239, 255, nil, 255 ]
313
-
314
- racc_action_pointer = [
315
- 63, 4, nil, nil, nil, 0, nil, nil, nil, 2,
316
- 26, nil, 245, 266, -11, nil, 21, 18, 49, nil,
317
- nil, nil, 54, 78, 82, nil, 161, nil, nil, nil,
318
- nil, nil, nil, 112, 138, nil, 273, 42, 60, nil,
319
- nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
320
- nil, 110, 89, nil, 70, nil, -15, 745, 217, 102,
321
- 103, nil, 294, -5, 301, nil, 107, 86, 322, 329,
322
- 350, 129, 100, -5, 126, 357, nil, 117, 115, 137,
323
- nil, nil, nil, nil, nil, nil, nil, 168, 142, 33,
324
- 146, 70, 118, 148, 222, 768, nil, nil, 121, 176,
325
- nil, 814, nil, 378, 385, nil, nil, 180, 193, 194,
326
- 821, 406, 141, 149, nil, 209, 216, 413, 434, nil,
327
- nil, 169, nil, 199, 192, 824, 441, 2, 235, 240,
328
- 462, nil, 238, 254, 40, nil, nil, nil, nil, nil,
329
- nil, nil, nil, 469, 260, 490, 497, 133, 518, 525,
330
- 546, 26, nil, 191, 214, nil, nil, 198, 256, 829,
331
- 262, 184, 263, 246, nil, nil, 199, 238, 742, 270,
332
- nil, nil, nil, nil, nil, nil, nil, nil, 273, nil,
333
- nil, nil, nil, nil, nil, nil, nil, nil, nil, 280,
334
- 832, 837, nil, nil, nil, nil, nil, nil, nil, nil,
335
- nil, nil, 282, nil, nil, 553, nil, nil, nil, nil,
336
- nil, nil, 760, 282, 144, 574, 581, 602, 291, nil,
337
- 289, nil, 290, nil, 33, 285, nil, nil, nil, nil,
338
- 303, nil, 307, 840, 845, nil, 308, nil, 307, 852,
339
- 609, nil, nil, nil, 630, 309, nil, 637, nil, 658,
340
- 665, 686, nil, 307, 763, 855, 301, 302, nil, nil,
341
- 335, 771, 693, 714, 329, 237, nil, 317, 318, nil,
342
- 778, 335, nil, 337, 338, 785, nil, nil, nil, nil,
343
- 341, 354, nil, 357, 359, 364, nil, nil, 372, nil,
344
- 374, nil, 369, 375, nil, 370, 796, 803, nil, nil,
345
- 382, nil, nil, nil, 369, nil, nil, 374, 388, nil,
346
- 721, 390, 397, 403, nil, nil, 398, nil, nil, nil ]
347
-
348
- racc_action_default = [
349
- -176, -176, -1, -2, -3, -4, -5, -6, -7, -8,
350
- -9, -10, -176, -176, -34, -35, -36, -37, -38, -39,
351
- -40, -41, -176, -49, -51, -52, -176, -64, -67, -68,
352
- -69, -70, -71, -176, -176, -107, -176, -109, -110, -111,
353
- -128, -129, -130, -131, -132, -133, -134, -135, -136, -137,
354
- -138, -176, -176, -76, -176, -112, -176, -176, -176, -8,
355
- -9, -11, -176, -176, -176, -72, -176, -176, -55, -176,
356
- -170, -176, -8, -9, -10, -176, -38, -176, -81, -86,
357
- -87, -88, -90, -91, -92, -93, -94, -176, -176, -176,
358
- -176, -176, -176, -176, -176, -176, 320, -12, -13, -176,
359
- -16, -176, -31, -176, -176, -152, -27, -29, -176, -126,
360
- -176, -176, -176, -176, -28, -30, -176, -176, -176, -153,
361
- -160, -176, -162, -176, -176, -176, -176, -176, -176, -176,
362
- -73, -174, -176, -176, -8, -47, -48, -49, -50, -51,
363
- -53, -54, -58, -56, -176, -171, -176, -176, -98, -97,
364
- -96, -176, -79, -176, -176, -95, -80, -176, -176, -176,
365
- -126, -176, -126, -176, -14, -18, -176, -176, -176, -176,
366
- -147, -148, -149, -150, -145, -151, -146, -114, -44, -59,
367
- -127, -60, -61, -62, -63, -139, -140, -141, -142, -176,
368
- -176, -176, -120, -45, -154, -155, -156, -157, -158, -159,
369
- -161, -163, -176, -29, -30, -176, -26, -42, -77, -43,
370
- -78, -175, -176, -176, -176, -176, -172, -74, -176, -101,
371
- -176, -100, -176, -99, -176, -83, -84, -85, -89, -108,
372
- -176, -113, -176, -176, -176, -117, -176, -19, -176, -176,
373
- -176, -143, -20, -21, -176, -176, -32, -176, -164, -176,
374
- -176, -176, -169, -176, -176, -115, -176, -176, -121, -102,
375
- -176, -176, -75, -173, -44, -176, -116, -176, -176, -118,
376
- -176, -176, -144, -176, -176, -176, -168, -165, -166, -167,
377
- -176, -176, -106, -126, -176, -176, -105, -103, -176, -57,
378
- -176, -82, -176, -176, -23, -176, -176, -176, -15, -33,
379
- -176, -46, -119, -122, -176, -104, -124, -176, -176, -25,
380
- -176, -176, -176, -176, -24, -22, -176, -123, -125, -17 ]
381
-
382
- racc_goto_table = [
383
- 70, 179, 130, 13, 228, 11, 248, 115, 123, 226,
384
- 227, 113, 245, 5, 14, 9, 63, 11, 68, 10,
385
- 18, 132, 22, 23, 71, 1, 24, 59, 237, 243,
386
- 2, 60, 309, 309, 241, 241, 75, 75, 131, 77,
387
- 88, 3, 4, 70, 162, 163, 6, 160, 161, 61,
388
- 97, 89, 231, 98, 235, 91, 164, 99, 298, 100,
389
- 242, 143, 102, 299, 15, 126, 127, 144, 16, 17,
390
- 75, 142, 11, 145, 135, 204, 109, 174, 151, 203,
391
- 136, 138, 134, 27, 217, 185, 10, 18, 28, 140,
392
- 137, 174, 11, 139, 29, 30, 31, 32, 225, 90,
393
- 155, 105, 59, nil, nil, nil, 60, 176, 248, 230,
394
- nil, nil, nil, 248, 294, 228, nil, nil, nil, nil,
395
- 131, 291, nil, nil, nil, nil, nil, nil, nil, 205,
396
- 206, nil, nil, 211, 248, 248, nil, nil, nil, nil,
397
- 256, 257, nil, nil, nil, nil, 142, nil, 216, nil,
398
- nil, nil, nil, 262, 224, 223, 75, 75, nil, nil,
399
- nil, nil, 259, 219, 220, 220, nil, nil, 221, 222,
400
- nil, nil, nil, nil, nil, 302, nil, nil, nil, nil,
401
- nil, nil, nil, 267, 268, nil, nil, nil, nil, 131,
402
- nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
403
- nil, nil, nil, nil, 282, 283, nil, nil, 206, nil,
404
- nil, 287, nil, nil, 185, nil, nil, nil, 185, 263,
405
- 211, 174, nil, nil, nil, nil, nil, 206, nil, nil,
406
- nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
407
- nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
408
- nil, nil, 277, 278, 279, nil, nil, nil, nil, nil,
409
- nil, nil, nil, nil, nil, 211, 289, nil, 75, nil,
410
- nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
411
- nil, nil, nil, nil, 174 ]
412
-
413
- racc_goto_check = [
414
- 43, 45, 52, 23, 58, 11, 66, 26, 26, 57,
415
- 57, 24, 16, 5, 30, 9, 23, 11, 42, 10,
416
- 34, 24, 38, 40, 53, 1, 41, 9, 19, 19,
417
- 2, 10, 22, 22, 25, 25, 23, 23, 43, 54,
418
- 54, 3, 4, 43, 26, 26, 6, 24, 24, 7,
419
- 12, 9, 45, 13, 45, 10, 14, 15, 17, 18,
420
- 20, 42, 28, 29, 31, 23, 23, 53, 32, 33,
421
- 23, 23, 11, 23, 39, 26, 44, 43, 23, 24,
422
- 5, 30, 9, 46, 52, 43, 10, 34, 47, 38,
423
- 40, 43, 11, 41, 48, 49, 50, 51, 56, 61,
424
- 5, 65, 9, nil, nil, nil, 10, 23, 66, 26,
425
- nil, nil, nil, 66, 16, 58, nil, nil, nil, nil,
426
- 43, 57, nil, nil, nil, nil, nil, nil, nil, 23,
427
- 23, nil, nil, 23, 66, 66, nil, nil, nil, nil,
428
- 26, 26, nil, nil, nil, nil, 23, nil, 23, nil,
429
- nil, nil, nil, 52, 23, 11, 23, 23, nil, nil,
430
- nil, nil, 26, 9, 9, 9, nil, nil, 10, 10,
431
- nil, nil, nil, nil, nil, 45, nil, nil, nil, nil,
432
- nil, nil, nil, 26, 26, nil, nil, nil, nil, 43,
433
- nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
434
- nil, nil, nil, nil, 26, 26, nil, nil, 23, nil,
435
- nil, 26, nil, nil, 43, nil, nil, nil, 43, 23,
436
- 23, 43, nil, nil, nil, nil, nil, 23, nil, nil,
437
- nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
438
- nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
439
- nil, nil, 23, 23, 23, nil, nil, nil, nil, nil,
440
- nil, nil, nil, nil, nil, 23, 23, nil, 23, nil,
441
- nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
442
- nil, nil, nil, nil, 43 ]
443
-
444
- racc_goto_pointer = [
445
- nil, 25, 30, 41, 42, 13, 46, 37, nil, 15,
446
- 19, 5, -2, 1, -42, 5, -156, -217, 7, -138,
447
- -107, nil, -264, 3, -45, -132, -50, nil, 10, -212,
448
- 14, 64, 68, 69, 20, nil, nil, nil, 22, 7,
449
- 23, 26, -8, -26, 22, -108, 83, 88, 94, 95,
450
- 96, 97, -62, -2, 6, nil, -55, -144, -150, nil,
451
- nil, 63, nil, nil, nil, 49, -162, nil ]
452
-
453
- racc_goto_default = [
454
- nil, nil, nil, nil, nil, 84, nil, 7, 8, 72,
455
- 73, 74, nil, nil, nil, nil, nil, nil, nil, nil,
456
- nil, 238, 252, 62, 107, 106, nil, 114, nil, 246,
457
- 86, nil, nil, nil, 76, 19, 20, 21, nil, nil,
458
- 85, nil, nil, 41, nil, nil, nil, nil, nil, nil,
459
- nil, nil, nil, nil, nil, 78, 79, 80, 81, 82,
460
- 83, 35, 37, 38, 39, 119, 120, 122 ]
461
-
462
- racc_reduce_table = [
463
- 0, 0, :racc_error,
464
- 1, 38, :_reduce_none,
465
- 1, 38, :_reduce_none,
466
- 1, 38, :_reduce_none,
467
- 1, 39, :_reduce_none,
468
- 1, 39, :_reduce_none,
469
- 1, 42, :_reduce_none,
470
- 1, 42, :_reduce_none,
471
- 1, 44, :_reduce_8,
472
- 1, 44, :_reduce_9,
473
- 1, 44, :_reduce_10,
474
- 2, 45, :_reduce_11,
475
- 3, 43, :_reduce_12,
476
- 1, 49, :_reduce_none,
477
- 2, 49, :_reduce_14,
478
- 5, 50, :_reduce_15,
479
- 1, 50, :_reduce_none,
480
- 8, 55, :_reduce_17,
481
- 1, 51, :_reduce_18,
482
- 2, 51, :_reduce_19,
483
- 2, 51, :_reduce_20,
484
- 1, 57, :_reduce_none,
485
- 5, 57, :_reduce_22,
486
- 3, 56, :_reduce_23,
487
- 5, 56, :_reduce_24,
488
- 4, 56, :_reduce_25,
489
- 4, 46, :_reduce_26,
490
- 1, 61, :_reduce_none,
491
- 1, 63, :_reduce_none,
492
- 3, 47, :_reduce_29,
493
- 3, 48, :_reduce_30,
494
- 1, 52, :_reduce_none,
495
- 1, 53, :_reduce_none,
496
- 1, 54, :_reduce_none,
497
- 1, 40, :_reduce_none,
498
- 1, 40, :_reduce_none,
499
- 1, 40, :_reduce_none,
500
- 1, 40, :_reduce_none,
501
- 1, 67, :_reduce_38,
502
- 1, 67, :_reduce_none,
503
- 1, 67, :_reduce_none,
504
- 1, 67, :_reduce_none,
505
- 4, 71, :_reduce_42,
506
- 4, 71, :_reduce_43,
507
- 4, 72, :_reduce_44,
508
- 4, 73, :_reduce_45,
509
- 7, 74, :_reduce_46,
510
- 3, 68, :_reduce_47,
511
- 1, 75, :_reduce_none,
512
- 1, 75, :_reduce_none,
513
- 1, 75, :_reduce_none,
514
- 1, 75, :_reduce_none,
515
- 1, 75, :_reduce_none,
516
- 1, 76, :_reduce_none,
517
- 1, 76, :_reduce_none,
518
- 2, 69, :_reduce_55,
519
- 3, 69, :_reduce_56,
520
- 5, 79, :_reduce_57,
521
- 2, 79, :_reduce_58,
522
- 4, 70, :_reduce_59,
523
- 2, 81, :_reduce_60,
524
- 2, 81, :_reduce_61,
525
- 2, 81, :_reduce_62,
526
- 2, 81, :_reduce_63,
527
- 1, 41, :_reduce_none,
528
- 1, 41, :_reduce_none,
529
- 1, 41, :_reduce_none,
530
- 1, 41, :_reduce_none,
531
- 1, 41, :_reduce_none,
532
- 1, 41, :_reduce_none,
533
- 1, 41, :_reduce_none,
534
- 1, 41, :_reduce_none,
535
- 2, 83, :_reduce_72,
536
- 3, 88, :_reduce_73,
537
- 4, 88, :_reduce_74,
538
- 5, 88, :_reduce_75,
539
- 2, 87, :_reduce_76,
540
- 4, 86, :_reduce_77,
541
- 4, 86, :_reduce_78,
542
- 3, 84, :_reduce_79,
543
- 3, 85, :_reduce_80,
544
- 1, 91, :_reduce_81,
545
- 5, 91, :_reduce_82,
546
- 3, 91, :_reduce_83,
547
- 3, 91, :_reduce_84,
548
- 3, 91, :_reduce_85,
549
- 1, 91, :_reduce_86,
550
- 1, 91, :_reduce_87,
551
- 1, 93, :_reduce_88,
552
- 3, 93, :_reduce_89,
553
- 1, 95, :_reduce_none,
554
- 1, 95, :_reduce_none,
555
- 1, 96, :_reduce_none,
556
- 1, 96, :_reduce_none,
557
- 1, 96, :_reduce_none,
558
- 2, 92, :_reduce_95,
559
- 2, 94, :_reduce_96,
560
- 2, 94, :_reduce_97,
561
- 2, 94, :_reduce_98,
562
- 3, 97, :_reduce_99,
563
- 3, 97, :_reduce_100,
564
- 3, 97, :_reduce_101,
565
- 5, 78, :_reduce_102,
566
- 6, 78, :_reduce_103,
567
- 7, 78, :_reduce_104,
568
- 6, 78, :_reduce_105,
569
- 6, 78, :_reduce_106,
570
- 1, 77, :_reduce_none,
571
- 4, 77, :_reduce_108,
572
- 1, 98, :_reduce_109,
573
- 1, 98, :_reduce_110,
574
- 1, 98, :_reduce_111,
575
- 2, 99, :_reduce_112,
576
- 4, 100, :_reduce_113,
577
- 4, 100, :_reduce_114,
578
- 5, 100, :_reduce_115,
579
- 5, 100, :_reduce_116,
580
- 4, 101, :_reduce_117,
581
- 5, 101, :_reduce_118,
582
- 7, 101, :_reduce_119,
583
- 4, 101, :_reduce_120,
584
- 5, 101, :_reduce_121,
585
- 7, 101, :_reduce_122,
586
- 9, 101, :_reduce_123,
587
- 7, 101, :_reduce_124,
588
- 9, 101, :_reduce_125,
589
- 0, 82, :_reduce_126,
590
- 1, 82, :_reduce_none,
591
- 1, 60, :_reduce_128,
592
- 1, 60, :_reduce_none,
593
- 1, 80, :_reduce_none,
594
- 1, 80, :_reduce_none,
595
- 1, 80, :_reduce_none,
596
- 1, 80, :_reduce_none,
597
- 1, 80, :_reduce_none,
598
- 1, 80, :_reduce_none,
599
- 1, 80, :_reduce_none,
600
- 1, 80, :_reduce_none,
601
- 1, 80, :_reduce_none,
602
- 2, 62, :_reduce_139,
603
- 2, 62, :_reduce_140,
604
- 2, 62, :_reduce_141,
605
- 2, 62, :_reduce_142,
606
- 1, 58, :_reduce_none,
607
- 2, 58, :_reduce_144,
608
- 2, 102, :_reduce_145,
609
- 2, 102, :_reduce_146,
610
- 2, 102, :_reduce_147,
611
- 2, 102, :_reduce_148,
612
- 2, 102, :_reduce_149,
613
- 2, 102, :_reduce_150,
614
- 2, 65, :_reduce_none,
615
- 1, 65, :_reduce_none,
616
- 1, 103, :_reduce_none,
617
- 2, 103, :_reduce_154,
618
- 2, 103, :_reduce_155,
619
- 2, 103, :_reduce_156,
620
- 2, 103, :_reduce_157,
621
- 2, 103, :_reduce_158,
622
- 2, 103, :_reduce_159,
623
- 1, 104, :_reduce_none,
624
- 2, 104, :_reduce_161,
625
- 1, 64, :_reduce_none,
626
- 2, 64, :_reduce_163,
627
- 1, 59, :_reduce_none,
628
- 2, 59, :_reduce_165,
629
- 2, 59, :_reduce_166,
630
- 2, 59, :_reduce_167,
631
- 2, 66, :_reduce_none,
632
- 1, 66, :_reduce_none,
633
- 1, 90, :_reduce_170,
634
- 2, 90, :_reduce_171,
635
- 3, 90, :_reduce_172,
636
- 4, 90, :_reduce_173,
637
- 1, 89, :_reduce_174,
638
- 2, 89, :_reduce_175 ]
639
-
640
- racc_reduce_n = 176
641
-
642
- racc_shift_n = 320
643
-
644
- racc_token_table = {
645
- false => 0,
646
- :error => 1,
647
- :T => 2,
648
- :Z => 3,
649
- :E => 4,
650
- :X => 5,
651
- :U => 6,
652
- :UNKNOWN => 7,
653
- :OPEN => 8,
654
- :LONGYEAR => 9,
655
- :UNMATCHED => 10,
656
- :DOTS => 11,
657
- :UA => 12,
658
- :PUA => 13,
659
- "-" => 14,
660
- ":" => 15,
661
- "2" => 16,
662
- "4" => 17,
663
- "0" => 18,
664
- "+" => 19,
665
- "1" => 20,
666
- "/" => 21,
667
- "3" => 22,
668
- "^" => 23,
669
- "[" => 24,
670
- "]" => 25,
671
- "{" => 26,
672
- "}" => 27,
673
- "," => 28,
674
- "(" => 29,
675
- ")" => 30,
676
- "-(" => 31,
677
- "5" => 32,
678
- "6" => 33,
679
- "7" => 34,
680
- "8" => 35,
681
- "9" => 36 }
682
-
683
- racc_nt_base = 37
684
-
685
- racc_use_result_var = true
686
-
687
- Racc_arg = [
688
- racc_action_table,
689
- racc_action_check,
690
- racc_action_default,
691
- racc_action_pointer,
692
- racc_goto_table,
693
- racc_goto_check,
694
- racc_goto_default,
695
- racc_goto_pointer,
696
- racc_nt_base,
697
- racc_reduce_table,
698
- racc_token_table,
699
- racc_shift_n,
700
- racc_reduce_n,
701
- racc_use_result_var ]
702
-
703
- Racc_token_to_s_table = [
704
- "$end",
705
- "error",
706
- "T",
707
- "Z",
708
- "E",
709
- "X",
710
- "U",
711
- "UNKNOWN",
712
- "OPEN",
713
- "LONGYEAR",
714
- "UNMATCHED",
715
- "DOTS",
716
- "UA",
717
- "PUA",
718
- "\"-\"",
719
- "\":\"",
720
- "\"2\"",
721
- "\"4\"",
722
- "\"0\"",
723
- "\"+\"",
724
- "\"1\"",
725
- "\"/\"",
726
- "\"3\"",
727
- "\"^\"",
728
- "\"[\"",
729
- "\"]\"",
730
- "\"{\"",
731
- "\"}\"",
732
- "\",\"",
733
- "\"(\"",
734
- "\")\"",
735
- "\"-(\"",
736
- "\"5\"",
737
- "\"6\"",
738
- "\"7\"",
739
- "\"8\"",
740
- "\"9\"",
741
- "$start",
742
- "edtf",
743
- "level_0_expression",
744
- "level_1_expression",
745
- "level_2_expression",
746
- "date",
747
- "date_time",
748
- "positive_date",
749
- "negative_date",
750
- "year",
751
- "year_month",
752
- "year_month_day",
753
- "time",
754
- "base_time",
755
- "zone_offset",
756
- "hour",
757
- "minute",
758
- "second",
759
- "midnight",
760
- "zone_offset_hour",
761
- "positive_zone_offset",
762
- "d01_13",
763
- "d01_59",
764
- "digit",
765
- "month",
766
- "d01_12",
767
- "day",
768
- "d01_31",
769
- "d00_23",
770
- "d00_59",
771
- "unspecified",
772
- "level_1_interval",
773
- "long_year_simple",
774
- "season",
775
- "unspecified_year",
776
- "unspecified_month",
777
- "unspecified_day",
778
- "unspecified_day_and_month",
779
- "level_1_start",
780
- "level_1_end",
781
- "partial_uncertain_or_approximate",
782
- "partial_unspecified",
783
- "long_year",
784
- "positive_digit",
785
- "season_number",
786
- "ua",
787
- "season_qualified",
788
- "choice_list",
789
- "inclusive_list",
790
- "masked_precision",
791
- "date_and_calendar",
792
- "long_year_scientific",
793
- "integer",
794
- "int1_4",
795
- "list",
796
- "earlier",
797
- "list_elements",
798
- "later",
799
- "list_element",
800
- "atomic",
801
- "consecutives",
802
- "pua_base",
803
- "pua_year",
804
- "pua_year_month",
805
- "pua_year_month_day",
806
- "d01_23",
807
- "d01_29",
808
- "d01_30" ]
809
-
810
- Racc_debug_parser = false
811
-
812
- ##### State transition tables end #####
813
-
814
- # reduce 0 omitted
815
-
816
- # reduce 1 omitted
817
-
818
- # reduce 2 omitted
819
-
820
- # reduce 3 omitted
821
-
822
- # reduce 4 omitted
823
-
824
- # reduce 5 omitted
825
-
826
- # reduce 6 omitted
827
-
828
- # reduce 7 omitted
829
-
830
- module_eval(<<'.,.,', 'edtf.y', 54)
831
- def _reduce_8(val, _values, result)
832
- result = Date.new(val[0]).year_precision!
833
- result
834
- end
835
- .,.,
836
-
837
- module_eval(<<'.,.,', 'edtf.y', 55)
838
- def _reduce_9(val, _values, result)
839
- result = Date.new(*val.flatten).month_precision!
840
- result
841
- end
842
- .,.,
843
-
844
- module_eval(<<'.,.,', 'edtf.y', 56)
845
- def _reduce_10(val, _values, result)
846
- result = Date.new(*val.flatten).day_precision!
847
- result
848
- end
849
- .,.,
850
-
851
- module_eval(<<'.,.,', 'edtf.y', 59)
852
- def _reduce_11(val, _values, result)
853
- result = -val[1]
854
- result
855
- end
856
- .,.,
857
-
858
- module_eval(<<'.,.,', 'edtf.y', 63)
859
- def _reduce_12(val, _values, result)
860
- result = DateTime.new(val[0].year, val[0].month, val[0].day, *val[2])
861
- result.skip_timezone = (val[2].length == 3)
862
-
863
- result
864
- end
865
- .,.,
866
-
867
- # reduce 13 omitted
868
-
869
- module_eval(<<'.,.,', 'edtf.y', 68)
870
- def _reduce_14(val, _values, result)
871
- result = val.flatten
872
- result
873
- end
874
- .,.,
875
-
876
- module_eval(<<'.,.,', 'edtf.y', 70)
877
- def _reduce_15(val, _values, result)
878
- result = val.values_at(0, 2, 4)
879
- result
880
- end
881
- .,.,
882
-
883
- # reduce 16 omitted
884
-
885
- module_eval(<<'.,.,', 'edtf.y', 73)
886
- def _reduce_17(val, _values, result)
887
- result = [24, 0, 0]
888
- result
889
- end
890
- .,.,
891
-
892
- module_eval(<<'.,.,', 'edtf.y', 75)
893
- def _reduce_18(val, _values, result)
894
- result = 0
895
- result
896
- end
897
- .,.,
898
-
899
- module_eval(<<'.,.,', 'edtf.y', 76)
900
- def _reduce_19(val, _values, result)
901
- result = -1 * val[1]
902
- result
903
- end
904
- .,.,
905
-
906
- module_eval(<<'.,.,', 'edtf.y', 77)
907
- def _reduce_20(val, _values, result)
908
- result = val[1]
909
- result
910
- end
911
- .,.,
912
-
913
- # reduce 21 omitted
914
-
915
- module_eval(<<'.,.,', 'edtf.y', 81)
916
- def _reduce_22(val, _values, result)
917
- result = 0
918
- result
919
- end
920
- .,.,
921
-
922
- module_eval(<<'.,.,', 'edtf.y', 85)
923
- def _reduce_23(val, _values, result)
924
- result = Rational(val[0] * 60 + val[2], 1440)
925
- result
926
- end
927
- .,.,
928
-
929
- module_eval(<<'.,.,', 'edtf.y', 86)
930
- def _reduce_24(val, _values, result)
931
- result = Rational(840, 1440)
932
- result
933
- end
934
- .,.,
935
-
936
- module_eval(<<'.,.,', 'edtf.y', 87)
937
- def _reduce_25(val, _values, result)
938
- result = Rational(val[3], 1440)
939
- result
940
- end
941
- .,.,
942
-
943
- module_eval(<<'.,.,', 'edtf.y', 91)
944
- def _reduce_26(val, _values, result)
945
- result = val.zip([1000,100,10,1]).reduce(0) { |s,(a,b)| s += a * b }
946
-
947
- result
948
- end
949
- .,.,
950
-
951
- # reduce 27 omitted
952
-
953
- # reduce 28 omitted
954
-
955
- module_eval(<<'.,.,', 'edtf.y', 97)
956
- def _reduce_29(val, _values, result)
957
- result = [val[0], val[2]]
958
- result
959
- end
960
- .,.,
961
-
962
- module_eval(<<'.,.,', 'edtf.y', 104)
963
- def _reduce_30(val, _values, result)
964
- result = val[0] << val[2]
965
- if result[2] > 31 || (result[2] > 30 && [2,4,6,9,11].include?(result[1])) || (result[2] > 29 && result[1] == 2)
966
- raise ArgumentError, "invalid date (invalid days #{result[2]} for month #{result[1]})"
967
- end
968
-
969
- result
970
- end
971
- .,.,
972
-
973
- # reduce 31 omitted
974
-
975
- # reduce 32 omitted
976
-
977
- # reduce 33 omitted
978
-
979
- # reduce 34 omitted
980
-
981
- # reduce 35 omitted
982
-
983
- # reduce 36 omitted
984
-
985
- # reduce 37 omitted
986
-
987
- module_eval(<<'.,.,', 'edtf.y', 127)
988
- def _reduce_38(val, _values, result)
989
- result = Date.new(val[0][0]).year_precision!
990
- result.unspecified.year[2,2] = val[0][1]
991
-
992
- result
993
- end
994
- .,.,
995
-
996
- # reduce 39 omitted
997
-
998
- # reduce 40 omitted
999
-
1000
- # reduce 41 omitted
1001
-
1002
- module_eval(<<'.,.,', 'edtf.y', 138)
1003
- def _reduce_42(val, _values, result)
1004
- result = [val[0,3].zip([1000,100,10]).reduce(0) { |s,(a,b)| s += a * b }, [false,true]]
1005
-
1006
- result
1007
- end
1008
- .,.,
1009
-
1010
- module_eval(<<'.,.,', 'edtf.y', 142)
1011
- def _reduce_43(val, _values, result)
1012
- result = [val[0,2].zip([1000,100]).reduce(0) { |s,(a,b)| s += a * b }, [true, true]]
1013
-
1014
- result
1015
- end
1016
- .,.,
1017
-
1018
- module_eval(<<'.,.,', 'edtf.y', 146)
1019
- def _reduce_44(val, _values, result)
1020
- result = Date.new(val[0]).unspecified!(:month)
1021
- result.precision = :month
1022
-
1023
- result
1024
- end
1025
- .,.,
1026
-
1027
- module_eval(<<'.,.,', 'edtf.y', 151)
1028
- def _reduce_45(val, _values, result)
1029
- result = Date.new(*val[0]).unspecified!(:day)
1030
-
1031
- result
1032
- end
1033
- .,.,
1034
-
1035
- module_eval(<<'.,.,', 'edtf.y', 155)
1036
- def _reduce_46(val, _values, result)
1037
- result = Date.new(val[0]).unspecified!([:day,:month])
1038
-
1039
- result
1040
- end
1041
- .,.,
1042
-
1043
- module_eval(<<'.,.,', 'edtf.y', 160)
1044
- def _reduce_47(val, _values, result)
1045
- result = Interval.new(val[0], val[2])
1046
-
1047
- result
1048
- end
1049
- .,.,
1050
-
1051
- # reduce 48 omitted
1052
-
1053
- # reduce 49 omitted
1054
-
1055
- # reduce 50 omitted
1056
-
1057
- # reduce 51 omitted
1058
-
1059
- # reduce 52 omitted
1060
-
1061
- # reduce 53 omitted
1062
-
1063
- # reduce 54 omitted
1064
-
1065
- module_eval(<<'.,.,', 'edtf.y', 171)
1066
- def _reduce_55(val, _values, result)
1067
- result = Date.new(val[1])
1068
- result.precision = :year
1069
-
1070
- result
1071
- end
1072
- .,.,
1073
-
1074
- module_eval(<<'.,.,', 'edtf.y', 176)
1075
- def _reduce_56(val, _values, result)
1076
- result = Date.new(-1 * val[2])
1077
- result.precision = :year
1078
-
1079
- result
1080
- end
1081
- .,.,
1082
-
1083
- module_eval(<<'.,.,', 'edtf.y', 183)
1084
- def _reduce_57(val, _values, result)
1085
- result = val.zip([10000,1000,100,10,1]).reduce(0) { |s,(a,b)| s += a * b }
1086
-
1087
- result
1088
- end
1089
- .,.,
1090
-
1091
- module_eval(<<'.,.,', 'edtf.y', 185)
1092
- def _reduce_58(val, _values, result)
1093
- result = 10 * val[0] + val[1]
1094
- result
1095
- end
1096
- .,.,
1097
-
1098
- module_eval(<<'.,.,', 'edtf.y', 190)
1099
- def _reduce_59(val, _values, result)
1100
- result = Season.new(val[0], val[2])
1101
- val[3].each { |ua| result.send(ua) }
1102
-
1103
- result
1104
- end
1105
- .,.,
1106
-
1107
- module_eval(<<'.,.,', 'edtf.y', 194)
1108
- def _reduce_60(val, _values, result)
1109
- result = 21
1110
- result
1111
- end
1112
- .,.,
1113
-
1114
- module_eval(<<'.,.,', 'edtf.y', 195)
1115
- def _reduce_61(val, _values, result)
1116
- result = 22
1117
- result
1118
- end
1119
- .,.,
1120
-
1121
- module_eval(<<'.,.,', 'edtf.y', 196)
1122
- def _reduce_62(val, _values, result)
1123
- result = 23
1124
- result
1125
- end
1126
- .,.,
1127
-
1128
- module_eval(<<'.,.,', 'edtf.y', 197)
1129
- def _reduce_63(val, _values, result)
1130
- result = 24
1131
- result
1132
- end
1133
- .,.,
1134
-
1135
- # reduce 64 omitted
1136
-
1137
- # reduce 65 omitted
1138
-
1139
- # reduce 66 omitted
1140
-
1141
- # reduce 67 omitted
1142
-
1143
- # reduce 68 omitted
1144
-
1145
- # reduce 69 omitted
1146
-
1147
- # reduce 70 omitted
1148
-
1149
- # reduce 71 omitted
1150
-
1151
- module_eval(<<'.,.,', 'edtf.y', 215)
1152
- def _reduce_72(val, _values, result)
1153
- result = val[0]; result.qualifier = val[1]
1154
- result
1155
- end
1156
- .,.,
1157
-
1158
- module_eval(<<'.,.,', 'edtf.y', 221)
1159
- def _reduce_73(val, _values, result)
1160
- result = Date.new(val[0].year * 10 ** val[2]).year_precision!
1161
-
1162
- result
1163
- end
1164
- .,.,
1165
-
1166
- module_eval(<<'.,.,', 'edtf.y', 225)
1167
- def _reduce_74(val, _values, result)
1168
- result = Date.new(val[1] * 10 ** val[3]).year_precision!
1169
-
1170
- result
1171
- end
1172
- .,.,
1173
-
1174
- module_eval(<<'.,.,', 'edtf.y', 229)
1175
- def _reduce_75(val, _values, result)
1176
- result = Date.new(-1 * val[2] * 10 ** val[4]).year_precision!
1177
-
1178
- result
1179
- end
1180
- .,.,
1181
-
1182
- module_eval(<<'.,.,', 'edtf.y', 234)
1183
- def _reduce_76(val, _values, result)
1184
- result = val[0]; result.calendar = val[1]
1185
- result
1186
- end
1187
- .,.,
1188
-
1189
- module_eval(<<'.,.,', 'edtf.y', 240)
1190
- def _reduce_77(val, _values, result)
1191
- d = val[0,3].zip([1000,100,10]).reduce(0) { |s,(a,b)| s += a * b }
1192
- result = EDTF::Decade.new(d)
1193
-
1194
- result
1195
- end
1196
- .,.,
1197
-
1198
- module_eval(<<'.,.,', 'edtf.y', 245)
1199
- def _reduce_78(val, _values, result)
1200
- d = val[0,2].zip([1000,100]).reduce(0) { |s,(a,b)| s += a * b }
1201
- result = EDTF::Century.new(d)
1202
-
1203
- result
1204
- end
1205
- .,.,
1206
-
1207
- module_eval(<<'.,.,', 'edtf.y', 251)
1208
- def _reduce_79(val, _values, result)
1209
- result = val[1].choice!
1210
- result
1211
- end
1212
- .,.,
1213
-
1214
- module_eval(<<'.,.,', 'edtf.y', 253)
1215
- def _reduce_80(val, _values, result)
1216
- result = val[1]
1217
- result
1218
- end
1219
- .,.,
1220
-
1221
- module_eval(<<'.,.,', 'edtf.y', 255)
1222
- def _reduce_81(val, _values, result)
1223
- result = EDTF::Set.new(val[0]).earlier!
1224
- result
1225
- end
1226
- .,.,
1227
-
1228
- module_eval(<<'.,.,', 'edtf.y', 256)
1229
- def _reduce_82(val, _values, result)
1230
- result = EDTF::Set.new([val[0]] + val[2] + [val[4]]).earlier!.later!
1231
- result
1232
- end
1233
- .,.,
1234
-
1235
- module_eval(<<'.,.,', 'edtf.y', 257)
1236
- def _reduce_83(val, _values, result)
1237
- result = EDTF::Set.new([val[0]] + val[2]).earlier!
1238
- result
1239
- end
1240
- .,.,
1241
-
1242
- module_eval(<<'.,.,', 'edtf.y', 258)
1243
- def _reduce_84(val, _values, result)
1244
- result = EDTF::Set.new([val[0]] + [val[2]]).earlier!.later!
1245
- result
1246
- end
1247
- .,.,
1248
-
1249
- module_eval(<<'.,.,', 'edtf.y', 259)
1250
- def _reduce_85(val, _values, result)
1251
- result = EDTF::Set.new(val[0] + [val[2]]).later!
1252
- result
1253
- end
1254
- .,.,
1255
-
1256
- module_eval(<<'.,.,', 'edtf.y', 260)
1257
- def _reduce_86(val, _values, result)
1258
- result = EDTF::Set.new(*val[0])
1259
- result
1260
- end
1261
- .,.,
1262
-
1263
- module_eval(<<'.,.,', 'edtf.y', 261)
1264
- def _reduce_87(val, _values, result)
1265
- result = EDTF::Set.new(val[0]).later!
1266
- result
1267
- end
1268
- .,.,
1269
-
1270
- module_eval(<<'.,.,', 'edtf.y', 264)
1271
- def _reduce_88(val, _values, result)
1272
- result = [val[0]].flatten
1273
- result
1274
- end
1275
- .,.,
1276
-
1277
- module_eval(<<'.,.,', 'edtf.y', 265)
1278
- def _reduce_89(val, _values, result)
1279
- result = val[0] + [val[2]].flatten
1280
- result
1281
- end
1282
- .,.,
1283
-
1284
- # reduce 90 omitted
1285
-
1286
- # reduce 91 omitted
1287
-
1288
- # reduce 92 omitted
1289
-
1290
- # reduce 93 omitted
1291
-
1292
- # reduce 94 omitted
1293
-
1294
- module_eval(<<'.,.,', 'edtf.y', 277)
1295
- def _reduce_95(val, _values, result)
1296
- result = val[1]
1297
- result
1298
- end
1299
- .,.,
1300
-
1301
- module_eval(<<'.,.,', 'edtf.y', 279)
1302
- def _reduce_96(val, _values, result)
1303
- result = Date.new(*val[0]).year_precision!
1304
- result
1305
- end
1306
- .,.,
1307
-
1308
- module_eval(<<'.,.,', 'edtf.y', 280)
1309
- def _reduce_97(val, _values, result)
1310
- result = Date.new(*val[0]).month_precision!
1311
- result
1312
- end
1313
- .,.,
1314
-
1315
- module_eval(<<'.,.,', 'edtf.y', 281)
1316
- def _reduce_98(val, _values, result)
1317
- result = Date.new(val[0]).year_precision!
1318
- result
1319
- end
1320
- .,.,
1321
-
1322
- module_eval(<<'.,.,', 'edtf.y', 284)
1323
- def _reduce_99(val, _values, result)
1324
- result = (Date.new(val[0]).day_precision! .. Date.new(val[2]).day_precision!)
1325
- result
1326
- end
1327
- .,.,
1328
-
1329
- module_eval(<<'.,.,', 'edtf.y', 285)
1330
- def _reduce_100(val, _values, result)
1331
- result = (Date.new(val[0]).month_precision! .. Date.new(val[2]).month_precision!)
1332
- result
1333
- end
1334
- .,.,
1335
-
1336
- module_eval(<<'.,.,', 'edtf.y', 286)
1337
- def _reduce_101(val, _values, result)
1338
- result = (Date.new(val[0]).year_precision! .. Date.new(val[2]).year_precision!)
1339
- result
1340
- end
1341
- .,.,
1342
-
1343
- module_eval(<<'.,.,', 'edtf.y', 292)
1344
- def _reduce_102(val, _values, result)
1345
- result = Date.new(val[0][0], val[2], val[4])
1346
- result.unspecified.year[2,2] = val[0][1]
1347
-
1348
- result
1349
- end
1350
- .,.,
1351
-
1352
- module_eval(<<'.,.,', 'edtf.y', 297)
1353
- def _reduce_103(val, _values, result)
1354
- result = Date.new(val[0][0], 1, val[5])
1355
- result.unspecified.year[2,2] = val[0][1]
1356
- result.unspecified!(:month)
1357
-
1358
- result
1359
- end
1360
- .,.,
1361
-
1362
- module_eval(<<'.,.,', 'edtf.y', 303)
1363
- def _reduce_104(val, _values, result)
1364
- result = Date.new(val[0][0], 1, 1)
1365
- result.unspecified.year[2,2] = val[0][1]
1366
- result.unspecified!([:month, :day])
1367
-
1368
- result
1369
- end
1370
- .,.,
1371
-
1372
- module_eval(<<'.,.,', 'edtf.y', 309)
1373
- def _reduce_105(val, _values, result)
1374
- result = Date.new(val[0][0], val[2], 1)
1375
- result.unspecified.year[2,2] = val[0][1]
1376
- result.unspecified!(:day)
1377
-
1378
- result
1379
- end
1380
- .,.,
1381
-
1382
- module_eval(<<'.,.,', 'edtf.y', 315)
1383
- def _reduce_106(val, _values, result)
1384
- result = Date.new(val[0], 1, val[5])
1385
- result.unspecified!(:month)
1386
-
1387
- result
1388
- end
1389
- .,.,
1390
-
1391
- # reduce 107 omitted
1392
-
1393
- module_eval(<<'.,.,', 'edtf.y', 322)
1394
- def _reduce_108(val, _values, result)
1395
- result = uoa(val[1], val[3])
1396
- result
1397
- end
1398
- .,.,
1399
-
1400
- module_eval(<<'.,.,', 'edtf.y', 325)
1401
- def _reduce_109(val, _values, result)
1402
- result = val[0].year_precision!
1403
- result
1404
- end
1405
- .,.,
1406
-
1407
- module_eval(<<'.,.,', 'edtf.y', 326)
1408
- def _reduce_110(val, _values, result)
1409
- result = val[0][0].month_precision!
1410
- result
1411
- end
1412
- .,.,
1413
-
1414
- module_eval(<<'.,.,', 'edtf.y', 327)
1415
- def _reduce_111(val, _values, result)
1416
- result = val[0].day_precision!
1417
- result
1418
- end
1419
- .,.,
1420
-
1421
- module_eval(<<'.,.,', 'edtf.y', 329)
1422
- def _reduce_112(val, _values, result)
1423
- result = uoa(Date.new(val[0]), val[1], :year)
1424
- result
1425
- end
1426
- .,.,
1427
-
1428
- module_eval(<<'.,.,', 'edtf.y', 333)
1429
- def _reduce_113(val, _values, result)
1430
- result = [uoa(val[0].change(:month => val[2]), val[3], [:month, :year])]
1431
-
1432
- result
1433
- end
1434
- .,.,
1435
-
1436
- module_eval(<<'.,.,', 'edtf.y', 336)
1437
- def _reduce_114(val, _values, result)
1438
- result = [uoa(Date.new(val[0], val[2]), val[3], [:year, :month])]
1439
-
1440
- result
1441
- end
1442
- .,.,
1443
-
1444
- module_eval(<<'.,.,', 'edtf.y', 339)
1445
- def _reduce_115(val, _values, result)
1446
- result = [uoa(Date.new(val[0], val[2]), val[4], [:month]), true]
1447
-
1448
- result
1449
- end
1450
- .,.,
1451
-
1452
- module_eval(<<'.,.,', 'edtf.y', 342)
1453
- def _reduce_116(val, _values, result)
1454
- result = [uoa(val[0].change(:month => val[2]), val[4], [:month]), true]
1455
-
1456
- result
1457
- end
1458
- .,.,
1459
-
1460
- module_eval(<<'.,.,', 'edtf.y', 348)
1461
- def _reduce_117(val, _values, result)
1462
- result = uoa(val[0][0].change(:day => val[2]), val[3], val[0][1] ? [:day] : nil)
1463
-
1464
- result
1465
- end
1466
- .,.,
1467
-
1468
- module_eval(<<'.,.,', 'edtf.y', 351)
1469
- def _reduce_118(val, _values, result)
1470
- result = uoa(val[0][0].change(:day => val[2]), val[4], [:day])
1471
-
1472
- result
1473
- end
1474
- .,.,
1475
-
1476
- module_eval(<<'.,.,', 'edtf.y', 354)
1477
- def _reduce_119(val, _values, result)
1478
- result = uoa(uoa(Date.new(val[0], val[2], val[5]), val[4], :month), val[6], :day)
1479
-
1480
- result
1481
- end
1482
- .,.,
1483
-
1484
- module_eval(<<'.,.,', 'edtf.y', 357)
1485
- def _reduce_120(val, _values, result)
1486
- result = uoa(Date.new(val[0][0], val[0][1], val[2]), val[3])
1487
-
1488
- result
1489
- end
1490
- .,.,
1491
-
1492
- module_eval(<<'.,.,', 'edtf.y', 360)
1493
- def _reduce_121(val, _values, result)
1494
- result = uoa(Date.new(val[0][0], val[0][1], val[2]), val[4], [:day])
1495
-
1496
- result
1497
- end
1498
- .,.,
1499
-
1500
- module_eval(<<'.,.,', 'edtf.y', 363)
1501
- def _reduce_122(val, _values, result)
1502
- result = uoa(Date.new(val[0], val[2], val[4]), val[6], [:month, :day])
1503
-
1504
- result
1505
- end
1506
- .,.,
1507
-
1508
- module_eval(<<'.,.,', 'edtf.y', 366)
1509
- def _reduce_123(val, _values, result)
1510
- result = Date.new(val[0], val[2], val[4])
1511
- result = uoa(result, val[6], [:day])
1512
- result = uoa(result, val[8], [:month, :day])
1513
-
1514
- result
1515
- end
1516
- .,.,
1517
-
1518
- module_eval(<<'.,.,', 'edtf.y', 371)
1519
- def _reduce_124(val, _values, result)
1520
- result = val[0].change(:month => val[2], :day => val[4])
1521
- result = uoa(result, val[6], [:month, :day])
1522
-
1523
- result
1524
- end
1525
- .,.,
1526
-
1527
- module_eval(<<'.,.,', 'edtf.y', 375)
1528
- def _reduce_125(val, _values, result)
1529
- result = val[0].change(:month => val[2], :day => val[4])
1530
- result = uoa(result, val[6], [:day])
1531
- result = uoa(result, val[8], [:month, :day])
1532
-
1533
- result
1534
- end
1535
- .,.,
1536
-
1537
- module_eval(<<'.,.,', 'edtf.y', 386)
1538
- def _reduce_126(val, _values, result)
1539
- result = []
1540
- result
1541
- end
1542
- .,.,
1543
-
1544
- # reduce 127 omitted
1545
-
1546
- module_eval(<<'.,.,', 'edtf.y', 390)
1547
- def _reduce_128(val, _values, result)
1548
- result = 0
1549
- result
1550
- end
1551
- .,.,
1552
-
1553
- # reduce 129 omitted
1554
-
1555
- # reduce 130 omitted
1556
-
1557
- # reduce 131 omitted
1558
-
1559
- # reduce 132 omitted
1560
-
1561
- # reduce 133 omitted
1562
-
1563
- # reduce 134 omitted
1564
-
1565
- # reduce 135 omitted
1566
-
1567
- # reduce 136 omitted
1568
-
1569
- # reduce 137 omitted
1570
-
1571
- # reduce 138 omitted
1572
-
1573
- module_eval(<<'.,.,', 'edtf.y', 396)
1574
- def _reduce_139(val, _values, result)
1575
- result = val[1]
1576
- result
1577
- end
1578
- .,.,
1579
-
1580
- module_eval(<<'.,.,', 'edtf.y', 397)
1581
- def _reduce_140(val, _values, result)
1582
- result = 10
1583
- result
1584
- end
1585
- .,.,
1586
-
1587
- module_eval(<<'.,.,', 'edtf.y', 398)
1588
- def _reduce_141(val, _values, result)
1589
- result = 11
1590
- result
1591
- end
1592
- .,.,
1593
-
1594
- module_eval(<<'.,.,', 'edtf.y', 399)
1595
- def _reduce_142(val, _values, result)
1596
- result = 12
1597
- result
1598
- end
1599
- .,.,
1600
-
1601
- # reduce 143 omitted
1602
-
1603
- module_eval(<<'.,.,', 'edtf.y', 403)
1604
- def _reduce_144(val, _values, result)
1605
- result = 13
1606
- result
1607
- end
1608
- .,.,
1609
-
1610
- module_eval(<<'.,.,', 'edtf.y', 406)
1611
- def _reduce_145(val, _values, result)
1612
- result = val[1]
1613
- result
1614
- end
1615
- .,.,
1616
-
1617
- module_eval(<<'.,.,', 'edtf.y', 407)
1618
- def _reduce_146(val, _values, result)
1619
- result = 10 + val[1]
1620
- result
1621
- end
1622
- .,.,
1623
-
1624
- module_eval(<<'.,.,', 'edtf.y', 408)
1625
- def _reduce_147(val, _values, result)
1626
- result = 20
1627
- result
1628
- end
1629
- .,.,
1630
-
1631
- module_eval(<<'.,.,', 'edtf.y', 409)
1632
- def _reduce_148(val, _values, result)
1633
- result = 21
1634
- result
1635
- end
1636
- .,.,
1637
-
1638
- module_eval(<<'.,.,', 'edtf.y', 410)
1639
- def _reduce_149(val, _values, result)
1640
- result = 22
1641
- result
1642
- end
1643
- .,.,
1644
-
1645
- module_eval(<<'.,.,', 'edtf.y', 411)
1646
- def _reduce_150(val, _values, result)
1647
- result = 23
1648
- result
1649
- end
1650
- .,.,
1651
-
1652
- # reduce 151 omitted
1653
-
1654
- # reduce 152 omitted
1655
-
1656
- # reduce 153 omitted
1657
-
1658
- module_eval(<<'.,.,', 'edtf.y', 419)
1659
- def _reduce_154(val, _values, result)
1660
- result = 24
1661
- result
1662
- end
1663
- .,.,
1664
-
1665
- module_eval(<<'.,.,', 'edtf.y', 420)
1666
- def _reduce_155(val, _values, result)
1667
- result = 25
1668
- result
1669
- end
1670
- .,.,
1671
-
1672
- module_eval(<<'.,.,', 'edtf.y', 421)
1673
- def _reduce_156(val, _values, result)
1674
- result = 26
1675
- result
1676
- end
1677
- .,.,
1678
-
1679
- module_eval(<<'.,.,', 'edtf.y', 422)
1680
- def _reduce_157(val, _values, result)
1681
- result = 27
1682
- result
1683
- end
1684
- .,.,
1685
-
1686
- module_eval(<<'.,.,', 'edtf.y', 423)
1687
- def _reduce_158(val, _values, result)
1688
- result = 28
1689
- result
1690
- end
1691
- .,.,
1692
-
1693
- module_eval(<<'.,.,', 'edtf.y', 424)
1694
- def _reduce_159(val, _values, result)
1695
- result = 29
1696
- result
1697
- end
1698
- .,.,
1699
-
1700
- # reduce 160 omitted
1701
-
1702
- module_eval(<<'.,.,', 'edtf.y', 428)
1703
- def _reduce_161(val, _values, result)
1704
- result = 30
1705
- result
1706
- end
1707
- .,.,
1708
-
1709
- # reduce 162 omitted
1710
-
1711
- module_eval(<<'.,.,', 'edtf.y', 432)
1712
- def _reduce_163(val, _values, result)
1713
- result = 31
1714
- result
1715
- end
1716
- .,.,
1717
-
1718
- # reduce 164 omitted
1719
-
1720
- module_eval(<<'.,.,', 'edtf.y', 436)
1721
- def _reduce_165(val, _values, result)
1722
- result = 30 + val[1]
1723
- result
1724
- end
1725
- .,.,
1726
-
1727
- module_eval(<<'.,.,', 'edtf.y', 437)
1728
- def _reduce_166(val, _values, result)
1729
- result = 40 + val[1]
1730
- result
1731
- end
1732
- .,.,
1733
-
1734
- module_eval(<<'.,.,', 'edtf.y', 438)
1735
- def _reduce_167(val, _values, result)
1736
- result = 50 + val[1]
1737
- result
1738
- end
1739
- .,.,
1740
-
1741
- # reduce 168 omitted
1742
-
1743
- # reduce 169 omitted
1744
-
1745
- module_eval(<<'.,.,', 'edtf.y', 445)
1746
- def _reduce_170(val, _values, result)
1747
- result = val[0]
1748
- result
1749
- end
1750
- .,.,
1751
-
1752
- module_eval(<<'.,.,', 'edtf.y', 446)
1753
- def _reduce_171(val, _values, result)
1754
- result = 10 * val[0] + val[1]
1755
- result
1756
- end
1757
- .,.,
1758
-
1759
- module_eval(<<'.,.,', 'edtf.y', 449)
1760
- def _reduce_172(val, _values, result)
1761
- result = val.zip([100,10,1]).reduce(0) { |s,(a,b)| s += a * b }
1762
-
1763
- result
1764
- end
1765
- .,.,
1766
-
1767
- module_eval(<<'.,.,', 'edtf.y', 453)
1768
- def _reduce_173(val, _values, result)
1769
- result = val.zip([1000,100,10,1]).reduce(0) { |s,(a,b)| s += a * b }
1770
-
1771
- result
1772
- end
1773
- .,.,
1774
-
1775
- module_eval(<<'.,.,', 'edtf.y', 457)
1776
- def _reduce_174(val, _values, result)
1777
- result = val[0]
1778
- result
1779
- end
1780
- .,.,
1781
-
1782
- module_eval(<<'.,.,', 'edtf.y', 458)
1783
- def _reduce_175(val, _values, result)
1784
- result = 10 * val[0] + val[1]
1785
- result
1786
- end
1787
- .,.,
1788
-
1789
- def _reduce_none(val, _values, result)
1790
- val[0]
1791
- end
1792
-
1793
- end # class Parser
1794
- end # module EDTF