racc 1.4.14 → 1.4.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +5 -5
  2. data/Manifest.txt +50 -0
  3. data/ext/racc/com/headius/racc/Cparse.java +66 -23
  4. data/ext/racc/cparse.c +1 -1
  5. data/ext/racc/depend +1 -1
  6. data/lib/racc/info.rb +2 -2
  7. data/test/assets/bibtex.y +141 -0
  8. data/test/assets/cadenza.y +170 -0
  9. data/test/assets/cast.y +926 -0
  10. data/test/assets/csspool.y +729 -0
  11. data/test/assets/edtf.y +583 -0
  12. data/test/assets/huia.y +318 -0
  13. data/test/assets/journey.y +47 -0
  14. data/test/assets/liquor.y +313 -0
  15. data/test/assets/machete.y +423 -0
  16. data/test/assets/macruby.y +2197 -0
  17. data/test/assets/mediacloth.y +599 -0
  18. data/test/assets/mof.y +649 -0
  19. data/test/assets/namae.y +302 -0
  20. data/test/assets/nasl.y +626 -0
  21. data/test/assets/nokogiri-css.y +255 -0
  22. data/test/assets/opal.y +1807 -0
  23. data/test/assets/php_serialization.y +98 -0
  24. data/test/assets/rdblockparser.y +576 -0
  25. data/test/assets/rdinlineparser.y +561 -0
  26. data/test/assets/riml.y +665 -0
  27. data/test/assets/ruby18.y +1943 -0
  28. data/test/assets/ruby19.y +2174 -0
  29. data/test/assets/ruby20.y +2350 -0
  30. data/test/assets/ruby21.y +2359 -0
  31. data/test/assets/ruby22.y +2381 -0
  32. data/test/assets/tp_plus.y +622 -0
  33. data/test/assets/twowaysql.y +278 -0
  34. data/test/helper.rb +31 -15
  35. data/test/regress/bibtex +474 -0
  36. data/test/regress/cadenza +796 -0
  37. data/test/regress/cast +3425 -0
  38. data/test/regress/csspool +2318 -0
  39. data/test/regress/edtf +1794 -0
  40. data/test/regress/huia +1392 -0
  41. data/test/regress/journey +222 -0
  42. data/test/regress/liquor +885 -0
  43. data/test/regress/machete +833 -0
  44. data/test/regress/mediacloth +1463 -0
  45. data/test/regress/mof +1368 -0
  46. data/test/regress/namae +634 -0
  47. data/test/regress/nasl +2058 -0
  48. data/test/regress/nokogiri-css +836 -0
  49. data/test/regress/opal +6429 -0
  50. data/test/regress/php_serialization +336 -0
  51. data/test/regress/rdblockparser +1061 -0
  52. data/test/regress/rdinlineparser +1243 -0
  53. data/test/regress/riml +3297 -0
  54. data/test/regress/ruby18 +6351 -0
  55. data/test/regress/ruby22 +7456 -0
  56. data/test/regress/tp_plus +1933 -0
  57. data/test/regress/twowaysql +556 -0
  58. data/test/test_racc_command.rb +177 -0
  59. metadata +75 -20
@@ -0,0 +1,796 @@
1
+ #
2
+ # DO NOT MODIFY!!!!
3
+ # This file is automatically generated by Racc 1.4.14
4
+ # from Racc grammer file "".
5
+ #
6
+
7
+ require 'racc/parser.rb'
8
+
9
+ # racc_parser.rb : generated by racc
10
+
11
+ module Cadenza
12
+ class RaccParser < Racc::Parser
13
+
14
+ module_eval(<<'...end cadenza.y/module_eval...', 'cadenza.y', 171)
15
+
16
+ ...end cadenza.y/module_eval...
17
+ ##### State transition tables begin ###
18
+
19
+ racc_action_table = [
20
+ 37, 89, 90, 20, 21, 22, 23, 24, 121, 3,
21
+ 89, 4, 72, 37, 71, 3, 68, 39, 3, 29,
22
+ 43, 37, 65, 66, 33, 9, 34, 110, 74, 50,
23
+ 35, 9, 37, 36, 9, 122, 38, 33, 128, 34,
24
+ 77, 78, 79, 35, 89, 33, 36, 34, 37, 38,
25
+ 3, 35, 46, 17, 36, 85, 33, 38, 34, 37,
26
+ 76, 103, 35, 75, 83, 36, 9, 131, 38, 54,
27
+ 55, 3, 33, 4, 34, 124, 78, 79, 35, 65,
28
+ 66, 36, 67, 33, 38, 34, 125, 9, 109, 35,
29
+ 56, 57, 36, 54, 55, 38, 20, 21, 22, 23,
30
+ 24, 20, 21, 22, 23, 24, 20, 21, 22, 23,
31
+ 24, 108, 29, 65, 66, 54, 55, 29, 56, 57,
32
+ 111, 107, 29, 20, 21, 22, 23, 24, 20, 21,
33
+ 22, 23, 24, 20, 21, 22, 23, 24, 112, 29,
34
+ 3, 113, 116, 114, 29, 115, 3, 103, 39, 29,
35
+ 20, 21, 22, 23, 24, 120, 9, 20, 21, 22,
36
+ 23, 24, 9, 3, nil, 4, 29, 3, 3, 43,
37
+ 46, nil, 3, 29, 87, 3, 3, 4, 116, 9,
38
+ 56, 57, nil, 9, 9, 56, 57, 3, 9, 116,
39
+ nil, 9, 9, 20, 21, 22, 23, 24, 20, 21,
40
+ 22, 23, 24, 9, 65, 66, 56, 57, nil, 29,
41
+ 56, 57, 106, nil, 29, 58, 59, 60, 61, 62,
42
+ 63, 58, 59, 60, 61, 62, 63, 20, 21, 22,
43
+ 23, 24, 20, 21, 22, 23, 24, 20, 21, 22,
44
+ 23, 24, 20, 21, 22, 23, 24, 20, 21, 22,
45
+ 23, 24, 20, 21, 22, 23, 24, 20, 21, 22,
46
+ 23, 24, 20, 21, 22, 23, 24, 20, 21, 22,
47
+ 23, 24, 20, 21, 22, 23, 24, 20, 21, 22,
48
+ 23, 24, 56, 57, 65, 66 ]
49
+
50
+ racc_action_check = [
51
+ 87, 73, 53, 37, 37, 37, 37, 37, 85, 2,
52
+ 52, 2, 36, 39, 35, 5, 32, 5, 6, 37,
53
+ 6, 46, 51, 51, 87, 2, 87, 73, 37, 17,
54
+ 87, 5, 43, 87, 6, 87, 87, 39, 122, 39,
55
+ 39, 39, 39, 39, 129, 46, 39, 46, 116, 39,
56
+ 7, 46, 7, 1, 46, 46, 43, 46, 43, 4,
57
+ 38, 125, 43, 38, 43, 43, 7, 126, 43, 26,
58
+ 26, 8, 116, 8, 116, 103, 116, 116, 116, 31,
59
+ 31, 116, 31, 4, 116, 4, 105, 8, 72, 4,
60
+ 27, 27, 4, 93, 93, 4, 24, 24, 24, 24,
61
+ 24, 33, 33, 33, 33, 33, 34, 34, 34, 34,
62
+ 34, 71, 24, 70, 70, 94, 94, 33, 95, 95,
63
+ 75, 70, 34, 108, 108, 108, 108, 108, 89, 89,
64
+ 89, 89, 89, 124, 124, 124, 124, 124, 76, 108,
65
+ 118, 77, 118, 78, 89, 79, 41, 67, 41, 124,
66
+ 3, 3, 3, 3, 3, 83, 118, 20, 20, 20,
67
+ 20, 20, 41, 42, nil, 42, 3, 45, 48, 45,
68
+ 48, nil, 49, 20, 49, 0, 82, 0, 82, 42,
69
+ 96, 96, nil, 45, 48, 97, 97, 81, 49, 81,
70
+ nil, 0, 82, 65, 65, 65, 65, 65, 66, 66,
71
+ 66, 66, 66, 81, 69, 69, 98, 98, nil, 65,
72
+ 99, 99, 69, nil, 66, 28, 28, 28, 28, 28,
73
+ 28, 64, 64, 64, 64, 64, 64, 57, 57, 57,
74
+ 57, 57, 29, 29, 29, 29, 29, 58, 58, 58,
75
+ 58, 58, 59, 59, 59, 59, 59, 63, 63, 63,
76
+ 63, 63, 54, 54, 54, 54, 54, 55, 55, 55,
77
+ 55, 55, 56, 56, 56, 56, 56, 61, 61, 61,
78
+ 61, 61, 62, 62, 62, 62, 62, 60, 60, 60,
79
+ 60, 60, 100, 100, 123, 123 ]
80
+
81
+ racc_action_pointer = [
82
+ 151, 53, -15, 147, 56, -9, -6, 26, 47, nil,
83
+ nil, nil, nil, nil, nil, nil, nil, 29, nil, nil,
84
+ 154, nil, nil, nil, 93, nil, 60, 79, 202, 229,
85
+ nil, 59, -9, 98, 103, 11, 9, 0, 57, 10,
86
+ nil, 122, 139, 29, nil, 143, 18, nil, 144, 148,
87
+ nil, 2, 8, -6, 249, 254, 259, 224, 234, 239,
88
+ 274, 264, 269, 244, 208, 190, 195, 144, nil, 184,
89
+ 93, 77, 60, -1, nil, 92, 110, 113, 115, 117,
90
+ nil, 163, 152, 127, nil, -20, nil, -3, nil, 125,
91
+ nil, nil, nil, 84, 106, 107, 169, 174, 195, 199,
92
+ 271, nil, nil, 53, nil, 63, nil, nil, 120, nil,
93
+ nil, nil, nil, nil, nil, nil, 45, nil, 116, nil,
94
+ nil, nil, 10, 264, 130, 58, 39, nil, nil, 42,
95
+ nil, nil ]
96
+
97
+ racc_action_default = [
98
+ -2, -70, -1, -70, -70, -70, -70, -70, -70, -60,
99
+ -61, -62, -63, -64, -65, -66, -68, -70, -67, -69,
100
+ -5, -7, -8, -9, -70, -11, -14, -17, -24, -70,
101
+ -26, -33, -70, -70, -70, -70, -70, -70, -70, -70,
102
+ -41, -70, -70, -70, -48, -70, -70, -52, -70, -70,
103
+ 132, -3, -6, -70, -70, -70, -70, -70, -70, -70,
104
+ -70, -70, -70, -70, -25, -70, -70, -70, -35, -70,
105
+ -70, -70, -70, -70, -54, -70, -70, -70, -70, -70,
106
+ -42, -70, -70, -70, -49, -70, -53, -70, -57, -70,
107
+ -10, -12, -13, -15, -16, -18, -19, -20, -21, -22,
108
+ -23, -27, -28, -29, -31, -34, -36, -37, -70, -50,
109
+ -55, -58, -59, -38, -39, -40, -70, -44, -70, -43,
110
+ -47, -51, -70, -4, -70, -70, -70, -45, -56, -30,
111
+ -32, -46 ]
112
+
113
+ racc_goto_table = [
114
+ 18, 40, 19, 32, 104, 51, 52, 105, 2, 88,
115
+ 47, 101, 102, 41, 45, 48, 49, 44, 69, 70,
116
+ 1, 42, 51, 73, 53, 95, 96, 97, 98, 99,
117
+ 100, 91, 92, 93, 94, 64, nil, 80, nil, 18,
118
+ nil, 19, nil, 18, nil, 19, 18, 18, 19, 19,
119
+ 82, 86, nil, nil, nil, nil, 84, 81, nil, nil,
120
+ nil, nil, 130, nil, nil, nil, nil, nil, nil, nil,
121
+ nil, nil, nil, nil, 123, nil, nil, 117, 119, nil,
122
+ 18, nil, 19, nil, nil, nil, nil, nil, nil, 118,
123
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
124
+ nil, nil, nil, nil, nil, nil, nil, nil, 126, 51,
125
+ 129, nil, nil, nil, 127, nil, 18, nil, 19 ]
126
+
127
+ racc_goto_check = [
128
+ 28, 16, 27, 6, 11, 4, 3, 12, 2, 25,
129
+ 22, 10, 10, 2, 2, 2, 2, 19, 4, 4,
130
+ 1, 15, 4, 3, 6, 8, 8, 8, 8, 8,
131
+ 8, 5, 5, 7, 7, 9, nil, 16, nil, 28,
132
+ nil, 27, nil, 28, nil, 27, 28, 28, 27, 27,
133
+ 2, 22, nil, nil, nil, nil, 19, 15, nil, nil,
134
+ nil, nil, 11, nil, nil, nil, nil, nil, nil, nil,
135
+ nil, nil, nil, nil, 4, nil, nil, 16, 16, nil,
136
+ 28, nil, 27, nil, nil, nil, nil, nil, nil, 2,
137
+ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
138
+ nil, nil, nil, nil, nil, nil, nil, nil, 6, 4,
139
+ 3, nil, nil, nil, 16, nil, 28, nil, 27 ]
140
+
141
+ racc_goto_pointer = [
142
+ nil, 20, 8, -14, -15, -23, 0, -23, -33, 6,
143
+ -54, -63, -60, nil, nil, 16, -4, nil, nil, 11,
144
+ nil, nil, 3, nil, nil, -40, nil, 0, -2 ]
145
+
146
+ racc_goto_default = [
147
+ nil, nil, nil, nil, 31, 25, nil, 26, 27, 28,
148
+ 30, nil, nil, 10, 5, nil, nil, 11, 6, nil,
149
+ 12, 7, nil, 14, 8, nil, 13, 16, 15 ]
150
+
151
+ racc_reduce_table = [
152
+ 0, 0, :racc_error,
153
+ 1, 42, :_reduce_none,
154
+ 0, 42, :_reduce_2,
155
+ 1, 44, :_reduce_3,
156
+ 3, 44, :_reduce_4,
157
+ 1, 46, :_reduce_5,
158
+ 2, 46, :_reduce_6,
159
+ 1, 46, :_reduce_7,
160
+ 1, 46, :_reduce_8,
161
+ 1, 46, :_reduce_9,
162
+ 3, 46, :_reduce_10,
163
+ 1, 48, :_reduce_none,
164
+ 3, 48, :_reduce_12,
165
+ 3, 48, :_reduce_13,
166
+ 1, 49, :_reduce_none,
167
+ 3, 49, :_reduce_15,
168
+ 3, 49, :_reduce_16,
169
+ 1, 50, :_reduce_none,
170
+ 3, 50, :_reduce_18,
171
+ 3, 50, :_reduce_19,
172
+ 3, 50, :_reduce_20,
173
+ 3, 50, :_reduce_21,
174
+ 3, 50, :_reduce_22,
175
+ 3, 50, :_reduce_23,
176
+ 1, 51, :_reduce_none,
177
+ 2, 51, :_reduce_25,
178
+ 1, 45, :_reduce_none,
179
+ 3, 45, :_reduce_27,
180
+ 3, 45, :_reduce_28,
181
+ 1, 52, :_reduce_29,
182
+ 3, 52, :_reduce_30,
183
+ 1, 53, :_reduce_31,
184
+ 3, 53, :_reduce_32,
185
+ 1, 47, :_reduce_none,
186
+ 3, 47, :_reduce_34,
187
+ 3, 54, :_reduce_35,
188
+ 4, 55, :_reduce_36,
189
+ 4, 55, :_reduce_37,
190
+ 3, 56, :_reduce_38,
191
+ 3, 57, :_reduce_39,
192
+ 3, 57, :_reduce_40,
193
+ 2, 58, :_reduce_41,
194
+ 3, 58, :_reduce_42,
195
+ 4, 58, :_reduce_43,
196
+ 4, 58, :_reduce_44,
197
+ 5, 58, :_reduce_45,
198
+ 6, 59, :_reduce_46,
199
+ 3, 60, :_reduce_47,
200
+ 2, 61, :_reduce_48,
201
+ 3, 61, :_reduce_49,
202
+ 4, 62, :_reduce_50,
203
+ 3, 63, :_reduce_51,
204
+ 2, 64, :_reduce_52,
205
+ 3, 64, :_reduce_53,
206
+ 3, 65, :_reduce_54,
207
+ 4, 65, :_reduce_55,
208
+ 3, 66, :_reduce_56,
209
+ 3, 67, :_reduce_57,
210
+ 4, 68, :_reduce_58,
211
+ 4, 68, :_reduce_59,
212
+ 1, 69, :_reduce_60,
213
+ 1, 69, :_reduce_none,
214
+ 1, 69, :_reduce_none,
215
+ 1, 69, :_reduce_none,
216
+ 1, 69, :_reduce_none,
217
+ 1, 69, :_reduce_none,
218
+ 1, 43, :_reduce_66,
219
+ 2, 43, :_reduce_67,
220
+ 1, 43, :_reduce_68,
221
+ 2, 43, :_reduce_69 ]
222
+
223
+ racc_reduce_n = 70
224
+
225
+ racc_shift_n = 132
226
+
227
+ racc_token_table = {
228
+ false => 0,
229
+ :error => 1,
230
+ "," => 2,
231
+ :IDENTIFIER => 3,
232
+ :INTEGER => 4,
233
+ :REAL => 5,
234
+ :STRING => 6,
235
+ "(" => 7,
236
+ ")" => 8,
237
+ "*" => 9,
238
+ "/" => 10,
239
+ "+" => 11,
240
+ "-" => 12,
241
+ :OP_EQ => 13,
242
+ :OP_NEQ => 14,
243
+ :OP_LEQ => 15,
244
+ :OP_GEQ => 16,
245
+ ">" => 17,
246
+ "<" => 18,
247
+ :NOT => 19,
248
+ :AND => 20,
249
+ :OR => 21,
250
+ ":" => 22,
251
+ "|" => 23,
252
+ :VAR_OPEN => 24,
253
+ :VAR_CLOSE => 25,
254
+ :STMT_OPEN => 26,
255
+ :IF => 27,
256
+ :STMT_CLOSE => 28,
257
+ :UNLESS => 29,
258
+ :ELSE => 30,
259
+ :ENDIF => 31,
260
+ :ENDUNLESS => 32,
261
+ :FOR => 33,
262
+ :IN => 34,
263
+ :ENDFOR => 35,
264
+ :BLOCK => 36,
265
+ :ENDBLOCK => 37,
266
+ :END => 38,
267
+ :EXTENDS => 39,
268
+ :TEXT_BLOCK => 40 }
269
+
270
+ racc_nt_base = 41
271
+
272
+ racc_use_result_var = true
273
+
274
+ Racc_arg = [
275
+ racc_action_table,
276
+ racc_action_check,
277
+ racc_action_default,
278
+ racc_action_pointer,
279
+ racc_goto_table,
280
+ racc_goto_check,
281
+ racc_goto_default,
282
+ racc_goto_pointer,
283
+ racc_nt_base,
284
+ racc_reduce_table,
285
+ racc_token_table,
286
+ racc_shift_n,
287
+ racc_reduce_n,
288
+ racc_use_result_var ]
289
+
290
+ Racc_token_to_s_table = [
291
+ "$end",
292
+ "error",
293
+ "\",\"",
294
+ "IDENTIFIER",
295
+ "INTEGER",
296
+ "REAL",
297
+ "STRING",
298
+ "\"(\"",
299
+ "\")\"",
300
+ "\"*\"",
301
+ "\"/\"",
302
+ "\"+\"",
303
+ "\"-\"",
304
+ "OP_EQ",
305
+ "OP_NEQ",
306
+ "OP_LEQ",
307
+ "OP_GEQ",
308
+ "\">\"",
309
+ "\"<\"",
310
+ "NOT",
311
+ "AND",
312
+ "OR",
313
+ "\":\"",
314
+ "\"|\"",
315
+ "VAR_OPEN",
316
+ "VAR_CLOSE",
317
+ "STMT_OPEN",
318
+ "IF",
319
+ "STMT_CLOSE",
320
+ "UNLESS",
321
+ "ELSE",
322
+ "ENDIF",
323
+ "ENDUNLESS",
324
+ "FOR",
325
+ "IN",
326
+ "ENDFOR",
327
+ "BLOCK",
328
+ "ENDBLOCK",
329
+ "END",
330
+ "EXTENDS",
331
+ "TEXT_BLOCK",
332
+ "$start",
333
+ "target",
334
+ "document",
335
+ "parameter_list",
336
+ "logical_expression",
337
+ "primary_expression",
338
+ "filtered_expression",
339
+ "multiplicative_expression",
340
+ "additive_expression",
341
+ "boolean_expression",
342
+ "inverse_expression",
343
+ "filter",
344
+ "filter_list",
345
+ "inject_statement",
346
+ "if_tag",
347
+ "else_tag",
348
+ "end_if_tag",
349
+ "if_block",
350
+ "for_tag",
351
+ "end_for_tag",
352
+ "for_block",
353
+ "block_tag",
354
+ "end_block_tag",
355
+ "block_block",
356
+ "generic_block_tag",
357
+ "end_generic_block_tag",
358
+ "generic_block",
359
+ "extends_statement",
360
+ "document_component" ]
361
+
362
+ Racc_debug_parser = false
363
+
364
+ ##### State transition tables end #####
365
+
366
+ # reduce 0 omitted
367
+
368
+ # reduce 1 omitted
369
+
370
+ module_eval(<<'.,.,', 'cadenza.y', 12)
371
+ def _reduce_2(val, _values, result)
372
+ result = nil
373
+ result
374
+ end
375
+ .,.,
376
+
377
+ module_eval(<<'.,.,', 'cadenza.y', 16)
378
+ def _reduce_3(val, _values, result)
379
+ result = [val[0]]
380
+ result
381
+ end
382
+ .,.,
383
+
384
+ module_eval(<<'.,.,', 'cadenza.y', 17)
385
+ def _reduce_4(val, _values, result)
386
+ result = val[0].push(val[2])
387
+ result
388
+ end
389
+ .,.,
390
+
391
+ module_eval(<<'.,.,', 'cadenza.y', 22)
392
+ def _reduce_5(val, _values, result)
393
+ result = VariableNode.new(val[0].value)
394
+ result
395
+ end
396
+ .,.,
397
+
398
+ module_eval(<<'.,.,', 'cadenza.y', 23)
399
+ def _reduce_6(val, _values, result)
400
+ result = VariableNode.new(val[0].value, val[1])
401
+ result
402
+ end
403
+ .,.,
404
+
405
+ module_eval(<<'.,.,', 'cadenza.y', 24)
406
+ def _reduce_7(val, _values, result)
407
+ result = ConstantNode.new(val[0].value)
408
+ result
409
+ end
410
+ .,.,
411
+
412
+ module_eval(<<'.,.,', 'cadenza.y', 25)
413
+ def _reduce_8(val, _values, result)
414
+ result = ConstantNode.new(val[0].value)
415
+ result
416
+ end
417
+ .,.,
418
+
419
+ module_eval(<<'.,.,', 'cadenza.y', 26)
420
+ def _reduce_9(val, _values, result)
421
+ result = ConstantNode.new(val[0].value)
422
+ result
423
+ end
424
+ .,.,
425
+
426
+ module_eval(<<'.,.,', 'cadenza.y', 27)
427
+ def _reduce_10(val, _values, result)
428
+ result = val[1]
429
+ result
430
+ end
431
+ .,.,
432
+
433
+ # reduce 11 omitted
434
+
435
+ module_eval(<<'.,.,', 'cadenza.y', 32)
436
+ def _reduce_12(val, _values, result)
437
+ result = OperationNode.new(val[0], "*", val[2])
438
+ result
439
+ end
440
+ .,.,
441
+
442
+ module_eval(<<'.,.,', 'cadenza.y', 33)
443
+ def _reduce_13(val, _values, result)
444
+ result = OperationNode.new(val[0], "/", val[2])
445
+ result
446
+ end
447
+ .,.,
448
+
449
+ # reduce 14 omitted
450
+
451
+ module_eval(<<'.,.,', 'cadenza.y', 38)
452
+ def _reduce_15(val, _values, result)
453
+ result = OperationNode.new(val[0], "+", val[2])
454
+ result
455
+ end
456
+ .,.,
457
+
458
+ module_eval(<<'.,.,', 'cadenza.y', 39)
459
+ def _reduce_16(val, _values, result)
460
+ result = OperationNode.new(val[0], "-", val[2])
461
+ result
462
+ end
463
+ .,.,
464
+
465
+ # reduce 17 omitted
466
+
467
+ module_eval(<<'.,.,', 'cadenza.y', 44)
468
+ def _reduce_18(val, _values, result)
469
+ result = OperationNode.new(val[0], "==", val[2])
470
+ result
471
+ end
472
+ .,.,
473
+
474
+ module_eval(<<'.,.,', 'cadenza.y', 45)
475
+ def _reduce_19(val, _values, result)
476
+ result = OperationNode.new(val[0], "!=", val[2])
477
+ result
478
+ end
479
+ .,.,
480
+
481
+ module_eval(<<'.,.,', 'cadenza.y', 46)
482
+ def _reduce_20(val, _values, result)
483
+ result = OperationNode.new(val[0], "<=", val[2])
484
+ result
485
+ end
486
+ .,.,
487
+
488
+ module_eval(<<'.,.,', 'cadenza.y', 47)
489
+ def _reduce_21(val, _values, result)
490
+ result = OperationNode.new(val[0], ">=", val[2])
491
+ result
492
+ end
493
+ .,.,
494
+
495
+ module_eval(<<'.,.,', 'cadenza.y', 48)
496
+ def _reduce_22(val, _values, result)
497
+ result = OperationNode.new(val[0], ">", val[2])
498
+ result
499
+ end
500
+ .,.,
501
+
502
+ module_eval(<<'.,.,', 'cadenza.y', 49)
503
+ def _reduce_23(val, _values, result)
504
+ result = OperationNode.new(val[0], "<", val[2])
505
+ result
506
+ end
507
+ .,.,
508
+
509
+ # reduce 24 omitted
510
+
511
+ module_eval(<<'.,.,', 'cadenza.y', 54)
512
+ def _reduce_25(val, _values, result)
513
+ result = BooleanInverseNode.new(val[1])
514
+ result
515
+ end
516
+ .,.,
517
+
518
+ # reduce 26 omitted
519
+
520
+ module_eval(<<'.,.,', 'cadenza.y', 59)
521
+ def _reduce_27(val, _values, result)
522
+ result = OperationNode.new(val[0], "and", val[2])
523
+ result
524
+ end
525
+ .,.,
526
+
527
+ module_eval(<<'.,.,', 'cadenza.y', 60)
528
+ def _reduce_28(val, _values, result)
529
+ result = OperationNode.new(val[0], "or", val[2])
530
+ result
531
+ end
532
+ .,.,
533
+
534
+ module_eval(<<'.,.,', 'cadenza.y', 64)
535
+ def _reduce_29(val, _values, result)
536
+ result = FilterNode.new(val[0].value)
537
+ result
538
+ end
539
+ .,.,
540
+
541
+ module_eval(<<'.,.,', 'cadenza.y', 65)
542
+ def _reduce_30(val, _values, result)
543
+ result = FilterNode.new(val[0].value, val[2])
544
+ result
545
+ end
546
+ .,.,
547
+
548
+ module_eval(<<'.,.,', 'cadenza.y', 69)
549
+ def _reduce_31(val, _values, result)
550
+ result = [val[0]]
551
+ result
552
+ end
553
+ .,.,
554
+
555
+ module_eval(<<'.,.,', 'cadenza.y', 70)
556
+ def _reduce_32(val, _values, result)
557
+ result = val[0].push(val[2])
558
+ result
559
+ end
560
+ .,.,
561
+
562
+ # reduce 33 omitted
563
+
564
+ module_eval(<<'.,.,', 'cadenza.y', 75)
565
+ def _reduce_34(val, _values, result)
566
+ result = FilteredValueNode.new(val[0], val[2])
567
+ result
568
+ end
569
+ .,.,
570
+
571
+ module_eval(<<'.,.,', 'cadenza.y', 79)
572
+ def _reduce_35(val, _values, result)
573
+ result = val[1]
574
+ result
575
+ end
576
+ .,.,
577
+
578
+ module_eval(<<'.,.,', 'cadenza.y', 83)
579
+ def _reduce_36(val, _values, result)
580
+ open_scope!; result = val[2]
581
+ result
582
+ end
583
+ .,.,
584
+
585
+ module_eval(<<'.,.,', 'cadenza.y', 84)
586
+ def _reduce_37(val, _values, result)
587
+ open_scope!; result = BooleanInverseNode.new(val[2])
588
+ result
589
+ end
590
+ .,.,
591
+
592
+ module_eval(<<'.,.,', 'cadenza.y', 88)
593
+ def _reduce_38(val, _values, result)
594
+ result = close_scope!; open_scope!
595
+ result
596
+ end
597
+ .,.,
598
+
599
+ module_eval(<<'.,.,', 'cadenza.y', 92)
600
+ def _reduce_39(val, _values, result)
601
+ result = close_scope!
602
+ result
603
+ end
604
+ .,.,
605
+
606
+ module_eval(<<'.,.,', 'cadenza.y', 93)
607
+ def _reduce_40(val, _values, result)
608
+ result = close_scope!
609
+ result
610
+ end
611
+ .,.,
612
+
613
+ module_eval(<<'.,.,', 'cadenza.y', 97)
614
+ def _reduce_41(val, _values, result)
615
+ result = IfNode.new(val[0], val[1])
616
+ result
617
+ end
618
+ .,.,
619
+
620
+ module_eval(<<'.,.,', 'cadenza.y', 98)
621
+ def _reduce_42(val, _values, result)
622
+ result = IfNode.new(val[0], val[2])
623
+ result
624
+ end
625
+ .,.,
626
+
627
+ module_eval(<<'.,.,', 'cadenza.y', 99)
628
+ def _reduce_43(val, _values, result)
629
+ result = IfNode.new(val[0], val[1], val[3])
630
+ result
631
+ end
632
+ .,.,
633
+
634
+ module_eval(<<'.,.,', 'cadenza.y', 100)
635
+ def _reduce_44(val, _values, result)
636
+ result = IfNode.new(val[0], val[2], val[3])
637
+ result
638
+ end
639
+ .,.,
640
+
641
+ module_eval(<<'.,.,', 'cadenza.y', 101)
642
+ def _reduce_45(val, _values, result)
643
+ result = IfNode.new(val[0], val[2], val[4])
644
+ result
645
+ end
646
+ .,.,
647
+
648
+ module_eval(<<'.,.,', 'cadenza.y', 105)
649
+ def _reduce_46(val, _values, result)
650
+ open_scope!; result = [val[2].value, val[4]]
651
+ result
652
+ end
653
+ .,.,
654
+
655
+ module_eval(<<'.,.,', 'cadenza.y', 109)
656
+ def _reduce_47(val, _values, result)
657
+ result = close_scope!
658
+ result
659
+ end
660
+ .,.,
661
+
662
+ module_eval(<<'.,.,', 'cadenza.y', 114)
663
+ def _reduce_48(val, _values, result)
664
+ result = ForNode.new(VariableNode.new(val[0].first), val[0].last, val[1])
665
+ result
666
+ end
667
+ .,.,
668
+
669
+ module_eval(<<'.,.,', 'cadenza.y', 115)
670
+ def _reduce_49(val, _values, result)
671
+ result = ForNode.new(VariableNode.new(val[0].first), val[0].last, val[2])
672
+ result
673
+ end
674
+ .,.,
675
+
676
+ module_eval(<<'.,.,', 'cadenza.y', 119)
677
+ def _reduce_50(val, _values, result)
678
+ result = open_block_scope!(val[2].value)
679
+ result
680
+ end
681
+ .,.,
682
+
683
+ module_eval(<<'.,.,', 'cadenza.y', 123)
684
+ def _reduce_51(val, _values, result)
685
+ result = close_block_scope!
686
+ result
687
+ end
688
+ .,.,
689
+
690
+ module_eval(<<'.,.,', 'cadenza.y', 128)
691
+ def _reduce_52(val, _values, result)
692
+ result = BlockNode.new(val[0], val[1])
693
+ result
694
+ end
695
+ .,.,
696
+
697
+ module_eval(<<'.,.,', 'cadenza.y', 129)
698
+ def _reduce_53(val, _values, result)
699
+ result = BlockNode.new(val[0], val[2])
700
+ result
701
+ end
702
+ .,.,
703
+
704
+ module_eval(<<'.,.,', 'cadenza.y', 133)
705
+ def _reduce_54(val, _values, result)
706
+ open_scope!; result = [val[1].value, []]
707
+ result
708
+ end
709
+ .,.,
710
+
711
+ module_eval(<<'.,.,', 'cadenza.y', 134)
712
+ def _reduce_55(val, _values, result)
713
+ open_scope!; result = [val[1].value, val[2]]
714
+ result
715
+ end
716
+ .,.,
717
+
718
+ module_eval(<<'.,.,', 'cadenza.y', 138)
719
+ def _reduce_56(val, _values, result)
720
+ result = close_scope!
721
+ result
722
+ end
723
+ .,.,
724
+
725
+ module_eval(<<'.,.,', 'cadenza.y', 142)
726
+ def _reduce_57(val, _values, result)
727
+ result = GenericBlockNode.new(val[0].first, val[2], val[0].last)
728
+ result
729
+ end
730
+ .,.,
731
+
732
+ module_eval(<<'.,.,', 'cadenza.y', 146)
733
+ def _reduce_58(val, _values, result)
734
+ result = val[2].value
735
+ result
736
+ end
737
+ .,.,
738
+
739
+ module_eval(<<'.,.,', 'cadenza.y', 147)
740
+ def _reduce_59(val, _values, result)
741
+ result = VariableNode.new(val[2].value)
742
+ result
743
+ end
744
+ .,.,
745
+
746
+ module_eval(<<'.,.,', 'cadenza.y', 151)
747
+ def _reduce_60(val, _values, result)
748
+ result = TextNode.new(val[0].value)
749
+ result
750
+ end
751
+ .,.,
752
+
753
+ # reduce 61 omitted
754
+
755
+ # reduce 62 omitted
756
+
757
+ # reduce 63 omitted
758
+
759
+ # reduce 64 omitted
760
+
761
+ # reduce 65 omitted
762
+
763
+ module_eval(<<'.,.,', 'cadenza.y', 160)
764
+ def _reduce_66(val, _values, result)
765
+ push val[0]
766
+ result
767
+ end
768
+ .,.,
769
+
770
+ module_eval(<<'.,.,', 'cadenza.y', 161)
771
+ def _reduce_67(val, _values, result)
772
+ push val[1]
773
+ result
774
+ end
775
+ .,.,
776
+
777
+ module_eval(<<'.,.,', 'cadenza.y', 162)
778
+ def _reduce_68(val, _values, result)
779
+ document.extends = val[0]
780
+ result
781
+ end
782
+ .,.,
783
+
784
+ module_eval(<<'.,.,', 'cadenza.y', 163)
785
+ def _reduce_69(val, _values, result)
786
+ document.extends = val[1]
787
+ result
788
+ end
789
+ .,.,
790
+
791
+ def _reduce_none(val, _values, result)
792
+ val[0]
793
+ end
794
+
795
+ end # class RaccParser
796
+ end # module Cadenza