kdl 0.1.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/kdl/kdl.tab.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #
2
2
  # DO NOT MODIFY!!!!
3
- # This file is automatically generated by Racc 1.4.16
3
+ # This file is automatically generated by Racc 1.5.2
4
4
  # from Racc grammar file "".
5
5
  #
6
6
 
@@ -8,8 +8,14 @@ require 'racc/parser.rb'
8
8
  module KDL
9
9
  class Parser < Racc::Parser
10
10
 
11
- module_eval(<<'...end kdl.yy/module_eval...', 'kdl.yy', 59)
12
- def parse(str)
11
+ module_eval(<<'...end kdl.yy/module_eval...', 'kdl.yy', 69)
12
+
13
+ def parse(str, options = {})
14
+ if options.fetch(:parse_types, true)
15
+ @type_parsers = ::KDL::Types::MAPPING.merge(options.fetch(:type_parsers, {}))
16
+ else
17
+ @type_parsers = {}
18
+ end
13
19
  @tokenizer = ::KDL::Tokenizer.new(str)
14
20
  do_parse
15
21
  end
@@ -23,121 +29,140 @@ module_eval(<<'...end kdl.yy/module_eval...', 'kdl.yy', 59)
23
29
  ##### State transition tables begin ###
24
30
 
25
31
  racc_action_table = [
26
- -2, 39, 16, 17, 16, 17, -25, 55, 27, 50,
27
- 6, 7, 16, 17, 33, 21, 8, 15, 16, 41,
28
- 43, 44, 45, 48, 49, 47, 39, 15, -36, 16,
29
- 17, 25, 7, 37, 10, 33, 30, 8, 27, 33,
30
- 62, nil, nil, nil, 15, 16, 41, 43, 44, 45,
31
- 48, 49, 47, 6, 7, 50, 6, 7, nil, 8,
32
- nil, 30, 8, 6, 7, 6, 7, nil, 30, 8,
33
- nil, 8, 6, 7, 6, 7, 6, 7, 8, nil,
34
- 8, nil, 8, 61, 43, 44, 45, 48, 49, 47,
35
- 6, 7, nil, nil, nil, nil, 8 ]
32
+ -2, 10, 19, 20, 21, 19, 20, 21, 6, 7,
33
+ 6, 7, 45, 25, 18, 38, 8, 18, 8, 17,
34
+ 58, 32, 17, 19, 47, 48, 52, 53, 56, 57,
35
+ 55, 45, 38, -43, 62, 18, 19, 20, 21, 38,
36
+ 43, -29, -30, 19, 20, 21, 64, 74, 18, 19,
37
+ 20, 21, nil, 17, 75, 18, 19, 20, 21, nil,
38
+ 17, 18, 19, 47, 48, 52, 53, 56, 57, 55,
39
+ nil, nil, 58, nil, 18, 66, 67, 52, 53, 56,
40
+ 57, 55, 30, 7, nil, nil, 18, 6, 7, 35,
41
+ 8, 32, 6, 7, 35, 8, 6, 7, nil, 35,
42
+ 8, 6, 7, nil, 8, 6, 7, 6, 7, 8,
43
+ 6, 7, nil, 8, nil, 8, nil, nil, 8, 66,
44
+ 67, 52, 53, 56, 57, 55, 19, 20, 21 ]
36
45
 
37
46
  racc_action_check = [
38
- 3, 39, 2, 2, 32, 32, 41, 42, 39, 26,
39
- 3, 3, 5, 5, 27, 10, 3, 2, 25, 25,
40
- 25, 25, 25, 25, 25, 25, 25, 5, 25, 56,
41
- 56, 13, 13, 25, 1, 15, 13, 13, 13, 37,
42
- 56, nil, nil, nil, 56, 54, 54, 54, 54, 54,
43
- 54, 54, 54, 57, 57, 54, 23, 23, nil, 57,
44
- nil, 23, 23, 24, 24, 28, 28, nil, 24, 24,
45
- nil, 28, 30, 30, 50, 50, 52, 52, 30, nil,
46
- 50, nil, 52, 55, 55, 55, 55, 55, 55, 55,
47
- 0, 0, nil, nil, nil, nil, 0 ]
47
+ 3, 1, 2, 2, 2, 5, 5, 5, 0, 0,
48
+ 3, 3, 45, 10, 2, 17, 0, 5, 3, 2,
49
+ 31, 45, 5, 30, 30, 30, 30, 30, 30, 30,
50
+ 30, 30, 32, 30, 39, 30, 68, 68, 68, 43,
51
+ 30, 47, 48, 69, 69, 69, 49, 68, 68, 37,
52
+ 37, 37, nil, 68, 69, 69, 14, 14, 14, nil,
53
+ 69, 37, 63, 63, 63, 63, 63, 63, 63, 63,
54
+ nil, nil, 63, nil, 63, 64, 64, 64, 64, 64,
55
+ 64, 64, 15, 15, nil, nil, 64, 28, 28, 15,
56
+ 15, 15, 29, 29, 28, 28, 33, 33, nil, 29,
57
+ 29, 35, 35, nil, 33, 58, 58, 60, 60, 35,
58
+ 70, 70, nil, 58, nil, 60, nil, nil, 70, 51,
59
+ 51, 51, 51, 51, 51, 51, 18, 18, 18 ]
48
60
 
49
61
  racc_action_pointer = [
50
- 80, 34, 0, 0, nil, 10, nil, nil, nil, nil,
51
- 15, nil, nil, 21, nil, 25, nil, nil, nil, nil,
52
- nil, nil, nil, 46, 53, 16, -3, 4, 55, nil,
53
- 62, nil, 2, nil, nil, nil, nil, 29, nil, -9,
54
- nil, -8, -7, nil, nil, nil, nil, nil, nil, nil,
55
- 64, nil, 66, nil, 43, 80, 27, 43, nil, nil,
56
- nil, nil, nil ]
62
+ -2, 1, 0, 0, nil, 3, nil, nil, nil, nil,
63
+ 13, nil, nil, nil, 54, 72, nil, 5, 124, nil,
64
+ nil, nil, nil, nil, nil, nil, nil, nil, 77, 82,
65
+ 21, 8, 22, 86, nil, 91, nil, 47, nil, 19,
66
+ nil, nil, nil, 29, nil, 2, nil, 25, 26, 30,
67
+ nil, 116, nil, nil, nil, nil, nil, nil, 95, nil,
68
+ 97, nil, nil, 60, 72, nil, nil, nil, 34, 41,
69
+ 100, nil, nil, nil, nil, nil ]
57
70
 
58
71
  racc_action_default = [
59
- -44, -45, -1, -43, -3, -45, -37, -38, -39, -40,
60
- -45, -6, -7, -44, -11, -44, -24, -25, -41, -4,
61
- -5, 63, -8, -45, -45, -37, -45, -44, -20, -21,
62
- -22, -35, -45, -36, -9, -10, -12, -44, -14, -45,
63
- -19, -27, -45, -28, -29, -30, -31, -32, -33, -34,
64
- -44, -18, -23, -16, -45, -45, -45, -43, -13, -15,
65
- -26, -27, -17 ]
72
+ -51, -52, -1, -50, -3, -52, -44, -45, -46, -47,
73
+ -52, -6, -7, -8, -52, -51, -13, -51, -52, -28,
74
+ -29, -30, -48, -4, -5, 76, -9, -10, -52, -52,
75
+ -44, -52, -51, -23, -24, -25, -42, -52, -43, -52,
76
+ -11, -12, -14, -51, -16, -52, -22, -34, -35, -52,
77
+ -32, -52, -36, -37, -38, -39, -40, -41, -51, -21,
78
+ -26, -18, -27, -52, -52, -33, -34, -35, -52, -52,
79
+ -50, -15, -17, -31, -20, -19 ]
66
80
 
67
81
  racc_goto_table = [
68
- 18, 2, 4, 3, 19, 36, 32, 38, 42, 22,
69
- 23, 20, 1, 24, nil, nil, nil, nil, nil, 34,
70
- 35, nil, nil, nil, nil, 18, nil, nil, 54, nil,
71
- nil, 53, nil, 52, 58, 60, 59, 42, nil, nil,
72
- nil, nil, nil, nil, nil, nil, nil, nil, nil, 18,
73
- nil, 56, 4, 57, 18 ]
82
+ 22, 23, 24, 2, 3, 4, 39, 51, 5, 42,
83
+ 37, 44, 27, 1, 26, 28, 29, 65, 49, nil,
84
+ nil, nil, nil, nil, nil, 40, 41, nil, nil, nil,
85
+ 22, nil, nil, 61, nil, nil, 63, nil, nil, 60,
86
+ 51, 51, 71, 73, 72, nil, nil, nil, nil, nil,
87
+ nil, 49, nil, nil, nil, nil, nil, 22, nil, nil,
88
+ nil, 69, 70, 4, 23, 24, 68, 22 ]
74
89
 
75
90
  racc_goto_check = [
76
- 18, 2, 4, 3, 6, 13, 14, 15, 12, 9,
77
- 10, 7, 1, 11, nil, nil, nil, nil, nil, 9,
78
- 9, nil, nil, nil, nil, 18, nil, nil, 14, nil,
79
- nil, 6, nil, 3, 13, 13, 15, 12, nil, nil,
80
- nil, nil, nil, nil, nil, nil, nil, nil, nil, 18,
81
- nil, 2, 4, 3, 18 ]
91
+ 21, 6, 7, 2, 3, 4, 14, 9, 5, 15,
92
+ 16, 17, 11, 1, 8, 12, 13, 19, 14, nil,
93
+ nil, nil, nil, nil, nil, 11, 11, nil, nil, nil,
94
+ 21, nil, nil, 6, nil, nil, 16, nil, nil, 3,
95
+ 9, 9, 15, 15, 17, nil, nil, nil, nil, nil,
96
+ nil, 14, nil, nil, nil, nil, nil, 21, nil, nil,
97
+ nil, 2, 3, 4, 6, 7, 5, 21 ]
82
98
 
83
99
  racc_goto_pointer = [
84
- nil, 12, 1, 3, 2, nil, -1, 6, nil, -4,
85
- -3, 0, -17, -20, -9, -18, nil, nil, -3 ]
100
+ nil, 13, 3, 4, 5, 8, -4, -3, 0, -23,
101
+ nil, -3, 0, 1, -12, -21, -7, -19, nil, -34,
102
+ nil, -3 ]
86
103
 
87
104
  racc_goto_default = [
88
- nil, nil, nil, 28, 31, 5, 11, 12, 13, nil,
89
- 51, 40, 14, nil, 26, nil, 29, 46, 9 ]
105
+ nil, nil, nil, 33, 36, nil, 11, 12, 13, 14,
106
+ 15, nil, 59, 46, 16, nil, 31, nil, 34, 50,
107
+ 54, 9 ]
90
108
 
91
109
  racc_reduce_table = [
92
110
  0, 0, :racc_error,
93
- 1, 19, :_reduce_1,
94
- 1, 19, :_reduce_2,
95
- 1, 20, :_reduce_3,
96
- 2, 20, :_reduce_4,
97
- 2, 20, :_reduce_5,
98
- 2, 20, :_reduce_6,
99
- 2, 20, :_reduce_7,
100
- 2, 24, :_reduce_8,
101
- 3, 24, :_reduce_9,
102
- 3, 24, :_reduce_10,
103
- 1, 26, :_reduce_11,
104
- 3, 26, :_reduce_12,
105
- 5, 26, :_reduce_13,
106
- 3, 26, :_reduce_14,
107
- 5, 26, :_reduce_15,
108
- 3, 25, :_reduce_none,
109
- 4, 28, :_reduce_17,
110
- 2, 29, :_reduce_none,
111
- 2, 29, :_reduce_none,
112
- 1, 27, :_reduce_none,
113
- 1, 27, :_reduce_none,
114
- 1, 34, :_reduce_none,
115
- 2, 34, :_reduce_none,
116
- 1, 30, :_reduce_24,
117
- 1, 30, :_reduce_25,
118
- 3, 33, :_reduce_26,
119
- 1, 31, :_reduce_27,
120
- 1, 31, :_reduce_28,
121
- 1, 31, :_reduce_29,
122
- 1, 31, :_reduce_30,
123
- 1, 31, :_reduce_31,
124
- 1, 31, :_reduce_32,
125
- 1, 35, :_reduce_33,
126
- 1, 35, :_reduce_34,
127
- 1, 32, :_reduce_none,
128
- 1, 32, :_reduce_none,
129
- 1, 36, :_reduce_none,
111
+ 1, 21, :_reduce_1,
112
+ 1, 21, :_reduce_2,
113
+ 1, 22, :_reduce_3,
114
+ 2, 22, :_reduce_4,
115
+ 2, 22, :_reduce_5,
116
+ 2, 22, :_reduce_6,
117
+ 2, 22, :_reduce_7,
118
+ 1, 26, :_reduce_8,
119
+ 2, 26, :_reduce_9,
120
+ 2, 28, :_reduce_10,
121
+ 3, 28, :_reduce_11,
122
+ 3, 28, :_reduce_12,
123
+ 1, 30, :_reduce_13,
124
+ 3, 30, :_reduce_14,
125
+ 5, 30, :_reduce_15,
126
+ 3, 30, :_reduce_16,
127
+ 5, 30, :_reduce_17,
128
+ 3, 27, :_reduce_none,
129
+ 4, 32, :_reduce_19,
130
+ 4, 32, :_reduce_20,
131
+ 2, 33, :_reduce_none,
132
+ 2, 33, :_reduce_none,
133
+ 1, 31, :_reduce_none,
134
+ 1, 31, :_reduce_none,
135
+ 1, 38, :_reduce_none,
136
+ 2, 38, :_reduce_none,
137
+ 3, 29, :_reduce_27,
138
+ 1, 34, :_reduce_28,
139
+ 1, 34, :_reduce_29,
140
+ 1, 34, :_reduce_30,
141
+ 3, 37, :_reduce_31,
142
+ 1, 35, :_reduce_none,
143
+ 2, 35, :_reduce_33,
144
+ 1, 39, :_reduce_34,
145
+ 1, 39, :_reduce_35,
146
+ 1, 39, :_reduce_36,
147
+ 1, 39, :_reduce_37,
148
+ 1, 39, :_reduce_38,
149
+ 1, 39, :_reduce_39,
150
+ 1, 40, :_reduce_40,
151
+ 1, 40, :_reduce_41,
130
152
  1, 36, :_reduce_none,
131
153
  1, 36, :_reduce_none,
132
- 1, 21, :_reduce_none,
133
- 2, 21, :_reduce_none,
134
- 1, 23, :_reduce_none,
154
+ 1, 41, :_reduce_none,
155
+ 1, 41, :_reduce_none,
156
+ 1, 41, :_reduce_none,
135
157
  1, 23, :_reduce_none,
136
- 0, 22, :_reduce_44 ]
158
+ 2, 23, :_reduce_none,
159
+ 1, 25, :_reduce_none,
160
+ 1, 25, :_reduce_none,
161
+ 0, 24, :_reduce_51 ]
137
162
 
138
- racc_reduce_n = 45
163
+ racc_reduce_n = 52
139
164
 
140
- racc_shift_n = 63
165
+ racc_shift_n = 76
141
166
 
142
167
  racc_token_table = {
143
168
  false => 0,
@@ -152,14 +177,16 @@ racc_token_table = {
152
177
  :NULL => 9,
153
178
  :WS => 10,
154
179
  :NEWLINE => 11,
155
- :LPAREN => 12,
156
- :RPAREN => 13,
157
- :EQUALS => 14,
158
- :SEMICOLON => 15,
159
- :EOF => 16,
160
- :SLASHDASH => 17 }
180
+ :LBRACE => 12,
181
+ :RBRACE => 13,
182
+ :LPAREN => 14,
183
+ :RPAREN => 15,
184
+ :EQUALS => 16,
185
+ :SEMICOLON => 17,
186
+ :EOF => 18,
187
+ :SLASHDASH => 19 }
161
188
 
162
- racc_nt_base = 18
189
+ racc_nt_base = 20
163
190
 
164
191
  racc_use_result_var = false
165
192
 
@@ -192,6 +219,8 @@ Racc_token_to_s_table = [
192
219
  "NULL",
193
220
  "WS",
194
221
  "NEWLINE",
222
+ "LBRACE",
223
+ "RBRACE",
195
224
  "LPAREN",
196
225
  "RPAREN",
197
226
  "EQUALS",
@@ -206,6 +235,8 @@ Racc_token_to_s_table = [
206
235
  "linespace_star",
207
236
  "node",
208
237
  "empty_node",
238
+ "untyped_node",
239
+ "type",
209
240
  "node_decl",
210
241
  "node_term",
211
242
  "node_children",
@@ -215,6 +246,7 @@ Racc_token_to_s_table = [
215
246
  "ws_star",
216
247
  "property",
217
248
  "semicolon_term",
249
+ "untyped_value",
218
250
  "boolean",
219
251
  "linespace" ]
220
252
 
@@ -224,109 +256,121 @@ Racc_debug_parser = false
224
256
 
225
257
  # reduce 0 omitted
226
258
 
227
- module_eval(<<'.,.,', 'kdl.yy', 12)
259
+ module_eval(<<'.,.,', 'kdl.yy', 13)
228
260
  def _reduce_1(val, _values)
229
261
  KDL::Document.new(val[0])
230
262
  end
231
263
  .,.,
232
264
 
233
- module_eval(<<'.,.,', 'kdl.yy', 13)
265
+ module_eval(<<'.,.,', 'kdl.yy', 14)
234
266
  def _reduce_2(val, _values)
235
267
  KDL::Document.new([])
236
268
  end
237
269
  .,.,
238
270
 
239
- module_eval(<<'.,.,', 'kdl.yy', 15)
271
+ module_eval(<<'.,.,', 'kdl.yy', 16)
240
272
  def _reduce_3(val, _values)
241
273
  []
242
274
  end
243
275
  .,.,
244
276
 
245
- module_eval(<<'.,.,', 'kdl.yy', 16)
277
+ module_eval(<<'.,.,', 'kdl.yy', 17)
246
278
  def _reduce_4(val, _values)
247
279
  [val[1]]
248
280
  end
249
281
  .,.,
250
282
 
251
- module_eval(<<'.,.,', 'kdl.yy', 17)
283
+ module_eval(<<'.,.,', 'kdl.yy', 18)
252
284
  def _reduce_5(val, _values)
253
285
  []
254
286
  end
255
287
  .,.,
256
288
 
257
- module_eval(<<'.,.,', 'kdl.yy', 18)
289
+ module_eval(<<'.,.,', 'kdl.yy', 19)
258
290
  def _reduce_6(val, _values)
259
291
  [*val[0], val[1]]
260
292
  end
261
293
  .,.,
262
294
 
263
- module_eval(<<'.,.,', 'kdl.yy', 19)
295
+ module_eval(<<'.,.,', 'kdl.yy', 20)
264
296
  def _reduce_7(val, _values)
265
297
  val[0]
266
298
  end
267
299
  .,.,
268
300
 
269
- module_eval(<<'.,.,', 'kdl.yy', 20)
301
+ module_eval(<<'.,.,', 'kdl.yy', 21)
270
302
  def _reduce_8(val, _values)
271
303
  val[0]
272
304
  end
273
305
  .,.,
274
306
 
275
- module_eval(<<'.,.,', 'kdl.yy', 21)
307
+ module_eval(<<'.,.,', 'kdl.yy', 22)
276
308
  def _reduce_9(val, _values)
277
- val[0].tap { |x| x.children = val[1] }
309
+ val[1].as_type(val[0], @type_parsers.fetch(val[0], nil))
278
310
  end
279
311
  .,.,
280
312
 
281
- module_eval(<<'.,.,', 'kdl.yy', 22)
313
+ module_eval(<<'.,.,', 'kdl.yy', 23)
282
314
  def _reduce_10(val, _values)
283
- val[0]
315
+ val[0].tap { |x| x.children = nil }
284
316
  end
285
317
  .,.,
286
318
 
287
- module_eval(<<'.,.,', 'kdl.yy', 23)
319
+ module_eval(<<'.,.,', 'kdl.yy', 24)
288
320
  def _reduce_11(val, _values)
289
- KDL::Node.new(val[0])
321
+ val[0].tap { |x| x.children = val[1] }
290
322
  end
291
323
  .,.,
292
324
 
293
- module_eval(<<'.,.,', 'kdl.yy', 24)
325
+ module_eval(<<'.,.,', 'kdl.yy', 25)
294
326
  def _reduce_12(val, _values)
295
- val[0].tap { |x| x.arguments << val[2] }
327
+ val[0].tap { |x| x.children = nil }
296
328
  end
297
329
  .,.,
298
330
 
299
- module_eval(<<'.,.,', 'kdl.yy', 25)
331
+ module_eval(<<'.,.,', 'kdl.yy', 26)
300
332
  def _reduce_13(val, _values)
301
- val[0]
333
+ KDL::Node.new(val[0])
302
334
  end
303
335
  .,.,
304
336
 
305
- module_eval(<<'.,.,', 'kdl.yy', 26)
337
+ module_eval(<<'.,.,', 'kdl.yy', 27)
306
338
  def _reduce_14(val, _values)
307
- val[0].tap { |x| x.properties[val[2][0]] = val[2][1] }
339
+ val[0].tap { |x| x.arguments << val[2] }
308
340
  end
309
341
  .,.,
310
342
 
311
- module_eval(<<'.,.,', 'kdl.yy', 27)
343
+ module_eval(<<'.,.,', 'kdl.yy', 28)
312
344
  def _reduce_15(val, _values)
313
345
  val[0]
314
346
  end
315
347
  .,.,
316
348
 
317
- # reduce 16 omitted
318
-
319
349
  module_eval(<<'.,.,', 'kdl.yy', 29)
350
+ def _reduce_16(val, _values)
351
+ val[0].tap { |x| x.properties[val[2][0]] = val[2][1] }
352
+ end
353
+ .,.,
354
+
355
+ module_eval(<<'.,.,', 'kdl.yy', 30)
320
356
  def _reduce_17(val, _values)
321
- val[2]
357
+ val[0]
322
358
  end
323
359
  .,.,
324
360
 
325
361
  # reduce 18 omitted
326
362
 
327
- # reduce 19 omitted
363
+ module_eval(<<'.,.,', 'kdl.yy', 32)
364
+ def _reduce_19(val, _values)
365
+ val[2]
366
+ end
367
+ .,.,
328
368
 
329
- # reduce 20 omitted
369
+ module_eval(<<'.,.,', 'kdl.yy', 33)
370
+ def _reduce_20(val, _values)
371
+ []
372
+ end
373
+ .,.,
330
374
 
331
375
  # reduce 21 omitted
332
376
 
@@ -334,92 +378,118 @@ module_eval(<<'.,.,', 'kdl.yy', 29)
334
378
 
335
379
  # reduce 23 omitted
336
380
 
337
- module_eval(<<'.,.,', 'kdl.yy', 35)
338
- def _reduce_24(val, _values)
339
- val[0]
340
- end
341
- .,.,
381
+ # reduce 24 omitted
342
382
 
343
- module_eval(<<'.,.,', 'kdl.yy', 36)
344
- def _reduce_25(val, _values)
345
- val[0]
346
- end
347
- .,.,
383
+ # reduce 25 omitted
348
384
 
349
- module_eval(<<'.,.,', 'kdl.yy', 38)
350
- def _reduce_26(val, _values)
351
- [val[0], val[2]]
352
- end
353
- .,.,
385
+ # reduce 26 omitted
354
386
 
355
- module_eval(<<'.,.,', 'kdl.yy', 40)
387
+ module_eval(<<'.,.,', 'kdl.yy', 39)
356
388
  def _reduce_27(val, _values)
357
- KDL::Value::String.new(val[0])
389
+ val[1]
358
390
  end
359
391
  .,.,
360
392
 
361
393
  module_eval(<<'.,.,', 'kdl.yy', 41)
362
394
  def _reduce_28(val, _values)
363
- KDL::Value::String.new(val[0])
395
+ val[0].value
364
396
  end
365
397
  .,.,
366
398
 
367
399
  module_eval(<<'.,.,', 'kdl.yy', 42)
368
400
  def _reduce_29(val, _values)
369
- KDL::Value::Int.new(val[0])
401
+ val[0].value
370
402
  end
371
403
  .,.,
372
404
 
373
405
  module_eval(<<'.,.,', 'kdl.yy', 43)
374
406
  def _reduce_30(val, _values)
375
- KDL::Value::Float.new(val[0])
407
+ val[0].value
376
408
  end
377
409
  .,.,
378
410
 
379
- module_eval(<<'.,.,', 'kdl.yy', 44)
411
+ module_eval(<<'.,.,', 'kdl.yy', 45)
380
412
  def _reduce_31(val, _values)
413
+ [val[0], val[2]]
414
+ end
415
+ .,.,
416
+
417
+ # reduce 32 omitted
418
+
419
+ module_eval(<<'.,.,', 'kdl.yy', 48)
420
+ def _reduce_33(val, _values)
421
+ val[1].as_type(val[0], @type_parsers.fetch(val[0], nil))
422
+ end
423
+ .,.,
424
+
425
+ module_eval(<<'.,.,', 'kdl.yy', 50)
426
+ def _reduce_34(val, _values)
427
+ KDL::Value::String.new(val[0].value)
428
+ end
429
+ .,.,
430
+
431
+ module_eval(<<'.,.,', 'kdl.yy', 51)
432
+ def _reduce_35(val, _values)
433
+ KDL::Value::String.new(val[0].value)
434
+ end
435
+ .,.,
436
+
437
+ module_eval(<<'.,.,', 'kdl.yy', 52)
438
+ def _reduce_36(val, _values)
439
+ KDL::Value::Int.new(val[0].value)
440
+ end
441
+ .,.,
442
+
443
+ module_eval(<<'.,.,', 'kdl.yy', 53)
444
+ def _reduce_37(val, _values)
445
+ KDL::Value::Float.new(val[0].value, format: val[0].meta[:format])
446
+ end
447
+ .,.,
448
+
449
+ module_eval(<<'.,.,', 'kdl.yy', 54)
450
+ def _reduce_38(val, _values)
381
451
  KDL::Value::Boolean.new(val[0])
382
452
  end
383
453
  .,.,
384
454
 
385
- module_eval(<<'.,.,', 'kdl.yy', 45)
386
- def _reduce_32(val, _values)
455
+ module_eval(<<'.,.,', 'kdl.yy', 55)
456
+ def _reduce_39(val, _values)
387
457
  KDL::Value::Null
388
458
  end
389
459
  .,.,
390
460
 
391
- module_eval(<<'.,.,', 'kdl.yy', 47)
392
- def _reduce_33(val, _values)
461
+ module_eval(<<'.,.,', 'kdl.yy', 57)
462
+ def _reduce_40(val, _values)
393
463
  true
394
464
  end
395
465
  .,.,
396
466
 
397
- module_eval(<<'.,.,', 'kdl.yy', 48)
398
- def _reduce_34(val, _values)
467
+ module_eval(<<'.,.,', 'kdl.yy', 58)
468
+ def _reduce_41(val, _values)
399
469
  false
400
470
  end
401
471
  .,.,
402
472
 
403
- # reduce 35 omitted
473
+ # reduce 42 omitted
404
474
 
405
- # reduce 36 omitted
475
+ # reduce 43 omitted
406
476
 
407
- # reduce 37 omitted
477
+ # reduce 44 omitted
408
478
 
409
- # reduce 38 omitted
479
+ # reduce 45 omitted
410
480
 
411
- # reduce 39 omitted
481
+ # reduce 46 omitted
412
482
 
413
- # reduce 40 omitted
483
+ # reduce 47 omitted
414
484
 
415
- # reduce 41 omitted
485
+ # reduce 48 omitted
416
486
 
417
- # reduce 42 omitted
487
+ # reduce 49 omitted
418
488
 
419
- # reduce 43 omitted
489
+ # reduce 50 omitted
420
490
 
421
- module_eval(<<'.,.,', 'kdl.yy', 55)
422
- def _reduce_44(val, _values)
491
+ module_eval(<<'.,.,', 'kdl.yy', 65)
492
+ def _reduce_51(val, _values)
423
493
  nil
424
494
  end
425
495
  .,.,