racc 1.5.2 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.ja.rdoc +0 -1
- data/README.rdoc +6 -7
- data/{rdoc → doc}/en/NEWS.en.rdoc +0 -0
- data/{rdoc → doc}/en/grammar.en.rdoc +27 -31
- data/doc/en/grammar2.en.rdoc +219 -0
- data/{rdoc → doc}/ja/NEWS.ja.rdoc +0 -0
- data/{rdoc → doc}/ja/command.ja.html +0 -0
- data/{rdoc → doc}/ja/debug.ja.rdoc +0 -0
- data/{rdoc → doc}/ja/grammar.ja.rdoc +0 -0
- data/{rdoc → doc}/ja/index.ja.html +0 -0
- data/{rdoc → doc}/ja/parser.ja.rdoc +0 -0
- data/{rdoc → doc}/ja/usage.ja.html +0 -0
- data/ext/racc/cparse/cparse.c +1 -1
- data/ext/racc/cparse/extconf.rb +1 -0
- data/lib/racc/info.rb +1 -1
- data/lib/racc/parser-text.rb +1 -1
- data/lib/racc/parser.rb +1 -1
- data/lib/racc/parserfilegenerator.rb +0 -44
- data/lib/racc/statetransitiontable.rb +2 -8
- metadata +15 -121
- data/Rakefile +0 -79
- data/ext/racc/com/headius/racc/Cparse.java +0 -849
- data/lib/racc/pre-setup +0 -13
- data/sample/array.y +0 -67
- data/sample/array2.y +0 -59
- data/sample/calc-ja.y +0 -66
- data/sample/calc.y +0 -65
- data/sample/conflict.y +0 -15
- data/sample/hash.y +0 -60
- data/sample/lalr.y +0 -17
- data/sample/lists.y +0 -57
- data/sample/syntax.y +0 -46
- data/sample/yyerr.y +0 -46
- data/test/assets/cadenza.y +0 -170
- data/test/assets/cast.y +0 -926
- data/test/assets/chk.y +0 -126
- data/test/assets/conf.y +0 -16
- data/test/assets/csspool.y +0 -729
- data/test/assets/digraph.y +0 -29
- data/test/assets/echk.y +0 -118
- data/test/assets/edtf.y +0 -583
- data/test/assets/err.y +0 -60
- data/test/assets/error_recovery.y +0 -35
- data/test/assets/expect.y +0 -7
- data/test/assets/firstline.y +0 -4
- data/test/assets/huia.y +0 -318
- data/test/assets/ichk.y +0 -102
- data/test/assets/intp.y +0 -546
- data/test/assets/journey.y +0 -47
- data/test/assets/liquor.y +0 -313
- data/test/assets/machete.y +0 -423
- data/test/assets/macruby.y +0 -2197
- data/test/assets/mailp.y +0 -437
- data/test/assets/mediacloth.y +0 -599
- data/test/assets/mof.y +0 -649
- data/test/assets/namae.y +0 -302
- data/test/assets/nasl.y +0 -626
- data/test/assets/newsyn.y +0 -25
- data/test/assets/noend.y +0 -4
- data/test/assets/nokogiri-css.y +0 -255
- data/test/assets/nonass.y +0 -41
- data/test/assets/normal.y +0 -27
- data/test/assets/norule.y +0 -4
- data/test/assets/nullbug1.y +0 -25
- data/test/assets/nullbug2.y +0 -15
- data/test/assets/opal.y +0 -1807
- data/test/assets/opt.y +0 -123
- data/test/assets/percent.y +0 -35
- data/test/assets/php_serialization.y +0 -98
- data/test/assets/recv.y +0 -97
- data/test/assets/riml.y +0 -665
- data/test/assets/rrconf.y +0 -14
- data/test/assets/ruby18.y +0 -1943
- data/test/assets/ruby19.y +0 -2174
- data/test/assets/ruby20.y +0 -2350
- data/test/assets/ruby21.y +0 -2359
- data/test/assets/ruby22.y +0 -2381
- data/test/assets/scan.y +0 -72
- data/test/assets/syntax.y +0 -50
- data/test/assets/tp_plus.y +0 -622
- data/test/assets/twowaysql.y +0 -278
- data/test/assets/unterm.y +0 -5
- data/test/assets/useless.y +0 -12
- data/test/assets/yyerr.y +0 -46
- data/test/bench.y +0 -36
- data/test/helper.rb +0 -115
- data/test/infini.y +0 -8
- data/test/regress/cadenza +0 -796
- data/test/regress/cast +0 -3428
- data/test/regress/csspool +0 -2314
- data/test/regress/edtf +0 -1794
- data/test/regress/huia +0 -1392
- data/test/regress/journey +0 -222
- data/test/regress/liquor +0 -885
- data/test/regress/machete +0 -833
- data/test/regress/mediacloth +0 -1463
- data/test/regress/mof +0 -1368
- data/test/regress/namae +0 -634
- data/test/regress/nasl +0 -2058
- data/test/regress/nokogiri-css +0 -836
- data/test/regress/opal +0 -6431
- data/test/regress/php_serialization +0 -336
- data/test/regress/riml +0 -3283
- data/test/regress/ruby18 +0 -6344
- data/test/regress/ruby22 +0 -7460
- data/test/regress/tp_plus +0 -1933
- data/test/regress/twowaysql +0 -556
- data/test/scandata/brace +0 -7
- data/test/scandata/gvar +0 -1
- data/test/scandata/normal +0 -4
- data/test/scandata/percent +0 -18
- data/test/scandata/slash +0 -10
- data/test/src.intp +0 -34
- data/test/start.y +0 -20
- data/test/test_chk_y.rb +0 -52
- data/test/test_grammar_file_parser.rb +0 -15
- data/test/test_racc_command.rb +0 -339
- data/test/test_scan_y.rb +0 -52
- data/test/testscanner.rb +0 -51
- data/web/racc.en.rhtml +0 -42
- data/web/racc.ja.rhtml +0 -51
data/test/regress/liquor
DELETED
@@ -1,885 +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
|
-
module Liquor
|
9
|
-
class Parser < Racc::Parser
|
10
|
-
|
11
|
-
module_eval(<<'...end liquor.y/module_eval...', 'liquor.y', 216)
|
12
|
-
attr_reader :errors, :ast
|
13
|
-
|
14
|
-
def initialize(tags={})
|
15
|
-
super()
|
16
|
-
|
17
|
-
@errors = []
|
18
|
-
@ast = nil
|
19
|
-
@tags = tags
|
20
|
-
end
|
21
|
-
|
22
|
-
def success?
|
23
|
-
@errors.empty?
|
24
|
-
end
|
25
|
-
|
26
|
-
def parse(string, name='(code)')
|
27
|
-
@errors.clear
|
28
|
-
@name = name
|
29
|
-
@ast = nil
|
30
|
-
|
31
|
-
begin
|
32
|
-
@stream = Lexer.lex(string, @name, @tags)
|
33
|
-
@ast = do_parse
|
34
|
-
rescue Liquor::SyntaxError => e
|
35
|
-
@errors << e
|
36
|
-
end
|
37
|
-
|
38
|
-
success?
|
39
|
-
end
|
40
|
-
|
41
|
-
def next_token
|
42
|
-
tok = @stream.shift
|
43
|
-
[ tok[0], tok ] if tok
|
44
|
-
end
|
45
|
-
|
46
|
-
TOKEN_NAME_MAP = {
|
47
|
-
:comma => ',',
|
48
|
-
:dot => '.',
|
49
|
-
:lblock => '{%',
|
50
|
-
:rblock => '%}',
|
51
|
-
:linterp => '{{',
|
52
|
-
:rinterp => '}}',
|
53
|
-
:lbracket => '[',
|
54
|
-
:rbracket => ']',
|
55
|
-
:lparen => '(',
|
56
|
-
:rparen => ')',
|
57
|
-
:pipe => '|',
|
58
|
-
:op_not => '!',
|
59
|
-
:op_mul => '*',
|
60
|
-
:op_div => '/',
|
61
|
-
:op_mod => '%',
|
62
|
-
:op_plus => '+',
|
63
|
-
:op_minus => '-',
|
64
|
-
:op_eq => '==',
|
65
|
-
:op_neq => '!=',
|
66
|
-
:op_lt => '<',
|
67
|
-
:op_leq => '<=',
|
68
|
-
:op_gt => '>',
|
69
|
-
:op_geq => '>=',
|
70
|
-
:keyword => 'keyword argument name',
|
71
|
-
:kwarg => 'keyword argument',
|
72
|
-
:ident => 'identifier',
|
73
|
-
}
|
74
|
-
|
75
|
-
def on_error(error_token_id, error_token, value_stack)
|
76
|
-
if token_to_str(error_token_id) == "$end"
|
77
|
-
raise Liquor::SyntaxError.new("unexpected end of program", {
|
78
|
-
file: @name
|
79
|
-
})
|
80
|
-
else
|
81
|
-
type, (loc, value) = error_token
|
82
|
-
type = TOKEN_NAME_MAP[type] || type
|
83
|
-
|
84
|
-
raise Liquor::SyntaxError.new("unexpected token `#{type}'", loc)
|
85
|
-
end
|
86
|
-
end
|
87
|
-
|
88
|
-
def retag(nodes)
|
89
|
-
loc = nodes.map { |node| node[1] }.compact
|
90
|
-
first, *, last = loc
|
91
|
-
return first if last.nil?
|
92
|
-
|
93
|
-
{
|
94
|
-
file: first[:file],
|
95
|
-
line: first[:line],
|
96
|
-
start: first[:start],
|
97
|
-
end: last[:end],
|
98
|
-
}
|
99
|
-
end
|
100
|
-
|
101
|
-
def reduce_tag_args(list)
|
102
|
-
list.each_slice(2).reduce([]) { |args, (k, v)|
|
103
|
-
if v[0] == :block
|
104
|
-
args << [ :blockarg, retag([ k, v ]), k, v[2] || [] ]
|
105
|
-
else
|
106
|
-
args << [ :kwarg, retag([ k, v ]), k, v ]
|
107
|
-
end
|
108
|
-
}
|
109
|
-
end
|
110
|
-
...end liquor.y/module_eval...
|
111
|
-
##### State transition tables begin ###
|
112
|
-
|
113
|
-
racc_action_table = [
|
114
|
-
76, 26, 26, 6, 7, 22, 5, 6, 25, 25,
|
115
|
-
5, 28, 32, 36, 37, 34, 35, 31, 29, 27,
|
116
|
-
33, 2, 30, 26, 26, 2, 6, 23, 41, 5,
|
117
|
-
25, 25, 38, 39, 28, 32, 36, 37, 34, 35,
|
118
|
-
31, 29, 27, 33, 2, 30, 40, 26, 96, 6,
|
119
|
-
24, 97, 5, 43, 25, 38, 39, 28, 32, 36,
|
120
|
-
37, 34, 35, 31, 29, 27, 33, 2, 30, 26,
|
121
|
-
54, 70, 77, 26, 75, 26, 25, 52, 38, 39,
|
122
|
-
25, 43, 25, 28, 32, 36, 37, 34, 35, 31,
|
123
|
-
29, 27, 33, 26, 30, 84, 26, 51, 6, 96,
|
124
|
-
25, 5, 97, 25, 38, 39, 28, 32, 36, 37,
|
125
|
-
34, 35, 31, 29, 27, 33, 2, 30, 74, 26,
|
126
|
-
87, 82, 96, 74, 70, 97, 25, 38, 39, 28,
|
127
|
-
32, 36, 37, 34, 35, 31, 29, 27, 33, 94,
|
128
|
-
30, 98, 26, 107, 6, 111, 52, 5, nil, 25,
|
129
|
-
38, 39, 28, 32, 36, 37, 34, 35, 31, 29,
|
130
|
-
27, 33, 2, 30, nil, 26, 51, 6, nil, 74,
|
131
|
-
5, nil, 25, 38, 39, 28, 32, 36, 37, 34,
|
132
|
-
35, 31, 29, 27, 33, 2, 30, nil, 26, nil,
|
133
|
-
nil, nil, 102, nil, nil, 25, 38, 39, 28, 32,
|
134
|
-
36, 37, 34, 35, 31, 29, 27, 33, nil, 30,
|
135
|
-
nil, 26, 96, nil, nil, 97, nil, nil, 25, 38,
|
136
|
-
39, 28, 32, 36, 37, 34, 35, 31, 29, 27,
|
137
|
-
33, nil, 30, nil, 26, nil, nil, nil, nil, nil,
|
138
|
-
nil, 25, 38, 39, 28, 32, 36, 37, 34, 35,
|
139
|
-
31, 29, 27, 33, nil, 30, 13, 15, nil, 13,
|
140
|
-
15, 21, nil, 14, 21, 38, 14, nil, nil, nil,
|
141
|
-
18, nil, nil, 18, 19, nil, nil, 19, nil, 13,
|
142
|
-
15, nil, 16, nil, 21, 16, 14, nil, nil, 13,
|
143
|
-
15, nil, nil, 18, 21, nil, 14, 19, nil, 13,
|
144
|
-
15, nil, nil, 18, 21, 16, 14, 19, nil, 13,
|
145
|
-
15, 52, nil, 18, 21, 16, 14, 19, nil, 13,
|
146
|
-
15, nil, nil, 18, 21, 16, 14, 19, nil, 13,
|
147
|
-
15, 51, nil, 18, 21, 16, 14, 19, nil, 13,
|
148
|
-
15, nil, nil, 18, 21, 16, 14, 19, nil, 13,
|
149
|
-
15, nil, nil, 18, 21, 16, 14, 19, nil, 13,
|
150
|
-
15, nil, nil, 18, 21, 16, 14, 19, nil, 13,
|
151
|
-
15, nil, nil, 18, 21, 16, 14, 19, nil, 13,
|
152
|
-
15, nil, nil, 18, 21, 16, 14, 19, nil, 13,
|
153
|
-
15, nil, nil, 18, 21, 16, 14, 19, nil, 13,
|
154
|
-
15, nil, nil, 18, 21, 16, 14, 19, nil, 13,
|
155
|
-
15, nil, nil, 18, 21, 16, 14, 19, nil, 13,
|
156
|
-
15, nil, nil, 18, 21, 16, 14, 19, nil, 13,
|
157
|
-
15, nil, nil, 18, 21, 16, 14, 19, nil, 13,
|
158
|
-
15, nil, nil, 18, 21, 16, 14, 19, nil, 13,
|
159
|
-
15, nil, nil, 18, 21, 16, 14, 19, nil, 13,
|
160
|
-
15, 74, nil, 18, 21, 16, 14, 19, nil, 13,
|
161
|
-
15, nil, nil, 18, 21, 16, 14, 19, nil, 13,
|
162
|
-
15, nil, nil, 18, 21, 16, 14, 19, nil, 13,
|
163
|
-
15, 81, nil, 18, 21, 16, 14, 19, nil, 13,
|
164
|
-
15, nil, nil, 18, 21, 16, 14, 19, nil, 13,
|
165
|
-
15, nil, 26, 18, 21, 16, 14, 19, nil, 25,
|
166
|
-
nil, 101, 28, 18, nil, 16, nil, 19, 31, 29,
|
167
|
-
27, 106, 26, 30, nil, 16, nil, nil, nil, 25,
|
168
|
-
nil, nil, 28, nil, 26, nil, nil, nil, 31, 29,
|
169
|
-
27, 25, nil, 30, 28, nil, 26, nil, nil, nil,
|
170
|
-
31, 29, 27, 25, nil, 30, 28, nil, 26, nil,
|
171
|
-
nil, nil, 31, 29, 27, 25, nil, 30, 28, nil,
|
172
|
-
26, nil, nil, nil, 31, 29, 27, 25, nil, 30,
|
173
|
-
28, nil, 26, nil, nil, nil, 31, 29, 27, 25,
|
174
|
-
nil, 30, 28, 32, 36, 37, 34, 35, 31, 29,
|
175
|
-
27, 33, 26, 30, 26, nil, nil, nil, nil, 25,
|
176
|
-
nil, 25, 28, nil, 28, nil, nil, nil, nil, 29,
|
177
|
-
27, 29, 27 ]
|
178
|
-
|
179
|
-
racc_action_check = [
|
180
|
-
47, 47, 45, 0, 1, 6, 0, 2, 47, 45,
|
181
|
-
2, 47, 47, 47, 47, 47, 47, 47, 47, 47,
|
182
|
-
47, 0, 47, 46, 11, 2, 3, 7, 12, 3,
|
183
|
-
46, 11, 47, 47, 11, 11, 11, 11, 11, 11,
|
184
|
-
11, 11, 11, 11, 3, 11, 11, 44, 94, 4,
|
185
|
-
11, 94, 4, 13, 44, 11, 11, 44, 44, 44,
|
186
|
-
44, 44, 44, 44, 44, 44, 44, 4, 44, 55,
|
187
|
-
26, 40, 48, 49, 44, 56, 55, 49, 44, 44,
|
188
|
-
49, 54, 56, 49, 49, 49, 49, 49, 49, 49,
|
189
|
-
49, 49, 49, 57, 49, 69, 53, 49, 81, 107,
|
190
|
-
57, 81, 107, 53, 49, 49, 53, 53, 53, 53,
|
191
|
-
53, 53, 53, 53, 53, 53, 81, 53, 70, 71,
|
192
|
-
72, 53, 111, 71, 84, 111, 71, 53, 53, 71,
|
193
|
-
71, 71, 71, 71, 71, 71, 71, 71, 71, 91,
|
194
|
-
71, 96, 79, 103, 101, 109, 79, 101, nil, 79,
|
195
|
-
71, 71, 79, 79, 79, 79, 79, 79, 79, 79,
|
196
|
-
79, 79, 101, 79, nil, 88, 79, 106, nil, 88,
|
197
|
-
106, nil, 88, 79, 79, 88, 88, 88, 88, 88,
|
198
|
-
88, 88, 88, 88, 88, 106, 88, nil, 99, nil,
|
199
|
-
nil, nil, 99, nil, nil, 99, 88, 88, 99, 99,
|
200
|
-
99, 99, 99, 99, 99, 99, 99, 99, nil, 99,
|
201
|
-
nil, 104, 104, nil, nil, 104, nil, nil, 104, 99,
|
202
|
-
99, 104, 104, 104, 104, 104, 104, 104, 104, 104,
|
203
|
-
104, nil, 104, nil, 67, nil, nil, nil, nil, nil,
|
204
|
-
nil, 67, 104, 104, 67, 67, 67, 67, 67, 67,
|
205
|
-
67, 67, 67, 67, nil, 67, 5, 5, nil, 14,
|
206
|
-
14, 5, nil, 5, 14, 67, 14, nil, nil, nil,
|
207
|
-
5, nil, nil, 14, 5, nil, nil, 14, nil, 18,
|
208
|
-
18, nil, 5, nil, 18, 14, 18, nil, nil, 19,
|
209
|
-
19, nil, nil, 18, 19, nil, 19, 18, nil, 21,
|
210
|
-
21, nil, nil, 19, 21, 18, 21, 19, nil, 22,
|
211
|
-
22, 22, nil, 21, 22, 19, 22, 21, nil, 25,
|
212
|
-
25, nil, nil, 22, 25, 21, 25, 22, nil, 27,
|
213
|
-
27, 22, nil, 25, 27, 22, 27, 25, nil, 28,
|
214
|
-
28, nil, nil, 27, 28, 25, 28, 27, nil, 29,
|
215
|
-
29, nil, nil, 28, 29, 27, 29, 28, nil, 30,
|
216
|
-
30, nil, nil, 29, 30, 28, 30, 29, nil, 31,
|
217
|
-
31, nil, nil, 30, 31, 29, 31, 30, nil, 32,
|
218
|
-
32, nil, nil, 31, 32, 30, 32, 31, nil, 33,
|
219
|
-
33, nil, nil, 32, 33, 31, 33, 32, nil, 34,
|
220
|
-
34, nil, nil, 33, 34, 32, 34, 33, nil, 35,
|
221
|
-
35, nil, nil, 34, 35, 33, 35, 34, nil, 36,
|
222
|
-
36, nil, nil, 35, 36, 34, 36, 35, nil, 37,
|
223
|
-
37, nil, nil, 36, 37, 35, 37, 36, nil, 38,
|
224
|
-
38, nil, nil, 37, 38, 36, 38, 37, nil, 39,
|
225
|
-
39, nil, nil, 38, 39, 37, 39, 38, nil, 43,
|
226
|
-
43, 43, nil, 39, 43, 38, 43, 39, nil, 52,
|
227
|
-
52, nil, nil, 43, 52, 39, 52, 43, nil, 74,
|
228
|
-
74, nil, nil, 52, 74, 43, 74, 52, nil, 76,
|
229
|
-
76, 52, nil, 74, 76, 52, 76, 74, nil, 97,
|
230
|
-
97, nil, nil, 76, 97, 74, 97, 76, nil, 102,
|
231
|
-
102, nil, 60, 97, 102, 76, 102, 97, nil, 60,
|
232
|
-
nil, 97, 60, 102, nil, 97, nil, 102, 60, 60,
|
233
|
-
60, 102, 61, 60, nil, 102, nil, nil, nil, 61,
|
234
|
-
nil, nil, 61, nil, 62, nil, nil, nil, 61, 61,
|
235
|
-
61, 62, nil, 61, 62, nil, 63, nil, nil, nil,
|
236
|
-
62, 62, 62, 63, nil, 62, 63, nil, 64, nil,
|
237
|
-
nil, nil, 63, 63, 63, 64, nil, 63, 64, nil,
|
238
|
-
65, nil, nil, nil, 64, 64, 64, 65, nil, 64,
|
239
|
-
65, nil, 66, nil, nil, nil, 65, 65, 65, 66,
|
240
|
-
nil, 65, 66, 66, 66, 66, 66, 66, 66, 66,
|
241
|
-
66, 66, 58, 66, 59, nil, nil, nil, nil, 58,
|
242
|
-
nil, 59, 58, nil, 59, nil, nil, nil, nil, 58,
|
243
|
-
58, 59, 59 ]
|
244
|
-
|
245
|
-
racc_action_pointer = [
|
246
|
-
-5, 4, -1, 18, 41, 251, 0, 27, nil, nil,
|
247
|
-
nil, 21, -1, 41, 254, nil, nil, nil, 274, 284,
|
248
|
-
nil, 294, 304, nil, nil, 314, 65, 324, 334, 344,
|
249
|
-
354, 364, 374, 384, 394, 404, 414, 424, 434, 444,
|
250
|
-
66, nil, nil, 454, 44, -1, 20, -2, 44, 70,
|
251
|
-
nil, nil, 464, 93, 69, 66, 72, 90, 609, 611,
|
252
|
-
509, 529, 541, 553, 565, 577, 589, 231, nil, 70,
|
253
|
-
111, 116, 90, nil, 474, nil, 484, nil, nil, 139,
|
254
|
-
nil, 90, nil, nil, 119, nil, nil, nil, 162, nil,
|
255
|
-
nil, 130, nil, nil, 44, nil, 114, 494, nil, 185,
|
256
|
-
nil, 136, 504, 134, 208, nil, 159, 95, nil, 136,
|
257
|
-
nil, 118, nil ]
|
258
|
-
|
259
|
-
racc_action_default = [
|
260
|
-
-1, -57, -1, -1, -1, -57, -57, -57, -2, -3,
|
261
|
-
-4, -57, -57, -7, -57, -9, -10, -11, -57, -57,
|
262
|
-
-31, -35, -57, 113, -5, -57, -57, -57, -57, -57,
|
263
|
-
-57, -57, -57, -57, -57, -57, -57, -57, -57, -57,
|
264
|
-
-57, -6, -12, -40, -57, -16, -17, -34, -57, -57,
|
265
|
-
-46, -47, -57, -57, -15, -18, -19, -20, -21, -22,
|
266
|
-
-23, -24, -25, -26, -27, -28, -29, -30, -41, -43,
|
267
|
-
-40, -40, -57, -38, -57, -8, -35, -32, -45, -57,
|
268
|
-
-48, -1, -13, -14, -57, -44, -37, -36, -40, -33,
|
269
|
-
-50, -57, -42, -39, -57, -49, -57, -57, -51, -57,
|
270
|
-
-52, -1, -57, -57, -57, -54, -1, -57, -56, -57,
|
271
|
-
-53, -57, -55 ]
|
272
|
-
|
273
|
-
racc_goto_table = [
|
274
|
-
1, 11, 8, 9, 10, 48, 68, 12, 42, 50,
|
275
|
-
44, 72, 80, 73, 45, 46, 100, 105, 49, nil,
|
276
|
-
nil, 53, nil, 55, 56, 57, 58, 59, 60, 61,
|
277
|
-
62, 63, 64, 65, 66, 67, 78, nil, nil, 71,
|
278
|
-
85, 86, 95, nil, nil, nil, nil, nil, 79, 83,
|
279
|
-
92, nil, 108, nil, nil, 110, nil, nil, 93, 112,
|
280
|
-
89, nil, nil, nil, nil, nil, 90, nil, nil, nil,
|
281
|
-
88, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
282
|
-
nil, 91, nil, nil, nil, nil, nil, nil, nil, nil,
|
283
|
-
nil, nil, nil, 99, nil, nil, nil, nil, 104, nil,
|
284
|
-
nil, 103, nil, nil, nil, nil, 109 ]
|
285
|
-
|
286
|
-
racc_goto_check = [
|
287
|
-
1, 4, 1, 1, 1, 9, 12, 5, 8, 14,
|
288
|
-
4, 10, 15, 11, 4, 4, 17, 18, 4, nil,
|
289
|
-
nil, 4, nil, 4, 4, 4, 4, 4, 4, 4,
|
290
|
-
4, 4, 4, 4, 4, 4, 14, nil, nil, 4,
|
291
|
-
11, 11, 16, nil, nil, nil, nil, nil, 4, 8,
|
292
|
-
12, nil, 16, nil, nil, 16, nil, nil, 11, 16,
|
293
|
-
9, nil, nil, nil, nil, nil, 14, nil, nil, nil,
|
294
|
-
4, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
295
|
-
nil, 1, nil, nil, nil, nil, nil, nil, nil, nil,
|
296
|
-
nil, nil, nil, 4, nil, nil, nil, nil, 4, nil,
|
297
|
-
nil, 1, nil, nil, nil, nil, 1 ]
|
298
|
-
|
299
|
-
racc_goto_pointer = [
|
300
|
-
nil, 0, nil, nil, -4, 2, nil, nil, -5, -16,
|
301
|
-
-32, -30, -34, nil, -13, -40, -52, -81, -85 ]
|
302
|
-
|
303
|
-
racc_goto_default = [
|
304
|
-
nil, nil, 3, 4, 47, nil, 20, 17, nil, nil,
|
305
|
-
nil, nil, nil, 69, nil, nil, nil, nil, nil ]
|
306
|
-
|
307
|
-
racc_reduce_table = [
|
308
|
-
0, 0, :racc_error,
|
309
|
-
0, 37, :_reduce_1,
|
310
|
-
2, 37, :_reduce_2,
|
311
|
-
2, 37, :_reduce_3,
|
312
|
-
2, 37, :_reduce_4,
|
313
|
-
3, 38, :_reduce_5,
|
314
|
-
3, 38, :_reduce_6,
|
315
|
-
1, 42, :_reduce_none,
|
316
|
-
3, 42, :_reduce_8,
|
317
|
-
1, 40, :_reduce_none,
|
318
|
-
1, 40, :_reduce_none,
|
319
|
-
1, 40, :_reduce_none,
|
320
|
-
2, 40, :_reduce_12,
|
321
|
-
4, 40, :_reduce_13,
|
322
|
-
4, 40, :_reduce_14,
|
323
|
-
3, 40, :_reduce_15,
|
324
|
-
2, 40, :_reduce_16,
|
325
|
-
2, 40, :_reduce_17,
|
326
|
-
3, 40, :_reduce_18,
|
327
|
-
3, 40, :_reduce_19,
|
328
|
-
3, 40, :_reduce_20,
|
329
|
-
3, 40, :_reduce_21,
|
330
|
-
3, 40, :_reduce_22,
|
331
|
-
3, 40, :_reduce_23,
|
332
|
-
3, 40, :_reduce_24,
|
333
|
-
3, 40, :_reduce_25,
|
334
|
-
3, 40, :_reduce_26,
|
335
|
-
3, 40, :_reduce_27,
|
336
|
-
3, 40, :_reduce_28,
|
337
|
-
3, 40, :_reduce_29,
|
338
|
-
3, 40, :_reduce_30,
|
339
|
-
1, 40, :_reduce_none,
|
340
|
-
3, 43, :_reduce_32,
|
341
|
-
3, 45, :_reduce_33,
|
342
|
-
1, 45, :_reduce_34,
|
343
|
-
0, 45, :_reduce_35,
|
344
|
-
3, 44, :_reduce_36,
|
345
|
-
2, 46, :_reduce_37,
|
346
|
-
1, 46, :_reduce_38,
|
347
|
-
3, 47, :_reduce_39,
|
348
|
-
0, 47, :_reduce_40,
|
349
|
-
3, 41, :_reduce_41,
|
350
|
-
3, 48, :_reduce_42,
|
351
|
-
1, 48, :_reduce_43,
|
352
|
-
2, 49, :_reduce_44,
|
353
|
-
4, 39, :_reduce_45,
|
354
|
-
3, 39, :_reduce_46,
|
355
|
-
1, 50, :_reduce_47,
|
356
|
-
2, 50, :_reduce_48,
|
357
|
-
4, 51, :_reduce_49,
|
358
|
-
2, 51, :_reduce_50,
|
359
|
-
2, 52, :_reduce_51,
|
360
|
-
2, 52, :_reduce_52,
|
361
|
-
4, 53, :_reduce_53,
|
362
|
-
3, 53, :_reduce_54,
|
363
|
-
4, 54, :_reduce_55,
|
364
|
-
2, 54, :_reduce_56 ]
|
365
|
-
|
366
|
-
racc_reduce_n = 57
|
367
|
-
|
368
|
-
racc_shift_n = 113
|
369
|
-
|
370
|
-
racc_token_table = {
|
371
|
-
false => 0,
|
372
|
-
:error => 1,
|
373
|
-
:comma => 2,
|
374
|
-
:dot => 3,
|
375
|
-
:endtag => 4,
|
376
|
-
:ident => 5,
|
377
|
-
:integer => 6,
|
378
|
-
:keyword => 7,
|
379
|
-
:lblock => 8,
|
380
|
-
:lblock2 => 9,
|
381
|
-
:lbracket => 10,
|
382
|
-
:linterp => 11,
|
383
|
-
:lparen => 12,
|
384
|
-
:op_div => 13,
|
385
|
-
:op_eq => 14,
|
386
|
-
:op_gt => 15,
|
387
|
-
:op_geq => 16,
|
388
|
-
:op_lt => 17,
|
389
|
-
:op_leq => 18,
|
390
|
-
:op_minus => 19,
|
391
|
-
:op_mod => 20,
|
392
|
-
:op_mul => 21,
|
393
|
-
:op_neq => 22,
|
394
|
-
:op_not => 23,
|
395
|
-
:op_plus => 24,
|
396
|
-
:pipe => 25,
|
397
|
-
:plaintext => 26,
|
398
|
-
:rblock => 27,
|
399
|
-
:rbracket => 28,
|
400
|
-
:rinterp => 29,
|
401
|
-
:rparen => 30,
|
402
|
-
:string => 31,
|
403
|
-
:tag_ident => 32,
|
404
|
-
:op_uminus => 33,
|
405
|
-
:op_and => 34,
|
406
|
-
:op_or => 35 }
|
407
|
-
|
408
|
-
racc_nt_base = 36
|
409
|
-
|
410
|
-
racc_use_result_var = true
|
411
|
-
|
412
|
-
Racc_arg = [
|
413
|
-
racc_action_table,
|
414
|
-
racc_action_check,
|
415
|
-
racc_action_default,
|
416
|
-
racc_action_pointer,
|
417
|
-
racc_goto_table,
|
418
|
-
racc_goto_check,
|
419
|
-
racc_goto_default,
|
420
|
-
racc_goto_pointer,
|
421
|
-
racc_nt_base,
|
422
|
-
racc_reduce_table,
|
423
|
-
racc_token_table,
|
424
|
-
racc_shift_n,
|
425
|
-
racc_reduce_n,
|
426
|
-
racc_use_result_var ]
|
427
|
-
|
428
|
-
Racc_token_to_s_table = [
|
429
|
-
"$end",
|
430
|
-
"error",
|
431
|
-
"comma",
|
432
|
-
"dot",
|
433
|
-
"endtag",
|
434
|
-
"ident",
|
435
|
-
"integer",
|
436
|
-
"keyword",
|
437
|
-
"lblock",
|
438
|
-
"lblock2",
|
439
|
-
"lbracket",
|
440
|
-
"linterp",
|
441
|
-
"lparen",
|
442
|
-
"op_div",
|
443
|
-
"op_eq",
|
444
|
-
"op_gt",
|
445
|
-
"op_geq",
|
446
|
-
"op_lt",
|
447
|
-
"op_leq",
|
448
|
-
"op_minus",
|
449
|
-
"op_mod",
|
450
|
-
"op_mul",
|
451
|
-
"op_neq",
|
452
|
-
"op_not",
|
453
|
-
"op_plus",
|
454
|
-
"pipe",
|
455
|
-
"plaintext",
|
456
|
-
"rblock",
|
457
|
-
"rbracket",
|
458
|
-
"rinterp",
|
459
|
-
"rparen",
|
460
|
-
"string",
|
461
|
-
"tag_ident",
|
462
|
-
"op_uminus",
|
463
|
-
"op_and",
|
464
|
-
"op_or",
|
465
|
-
"$start",
|
466
|
-
"block",
|
467
|
-
"interp",
|
468
|
-
"tag",
|
469
|
-
"expr",
|
470
|
-
"filter_chain",
|
471
|
-
"primary_expr",
|
472
|
-
"tuple",
|
473
|
-
"function_args",
|
474
|
-
"tuple_content",
|
475
|
-
"function_args_inside",
|
476
|
-
"function_keywords",
|
477
|
-
"filter_chain_cont",
|
478
|
-
"filter_call",
|
479
|
-
"tag_first_cont",
|
480
|
-
"tag_first_cont2",
|
481
|
-
"tag_next_cont",
|
482
|
-
"tag_next_cont2",
|
483
|
-
"tag_next_cont3" ]
|
484
|
-
|
485
|
-
Racc_debug_parser = false
|
486
|
-
|
487
|
-
##### State transition tables end #####
|
488
|
-
|
489
|
-
# reduce 0 omitted
|
490
|
-
|
491
|
-
module_eval(<<'.,.,', 'liquor.y', 47)
|
492
|
-
def _reduce_1(val, _values, result)
|
493
|
-
result = []
|
494
|
-
result
|
495
|
-
end
|
496
|
-
.,.,
|
497
|
-
|
498
|
-
module_eval(<<'.,.,', 'liquor.y', 49)
|
499
|
-
def _reduce_2(val, _values, result)
|
500
|
-
result = [ val[0], *val[1] ]
|
501
|
-
result
|
502
|
-
end
|
503
|
-
.,.,
|
504
|
-
|
505
|
-
module_eval(<<'.,.,', 'liquor.y', 51)
|
506
|
-
def _reduce_3(val, _values, result)
|
507
|
-
result = [ val[0], *val[1] ]
|
508
|
-
result
|
509
|
-
end
|
510
|
-
.,.,
|
511
|
-
|
512
|
-
module_eval(<<'.,.,', 'liquor.y', 53)
|
513
|
-
def _reduce_4(val, _values, result)
|
514
|
-
result = [ val[0], *val[1] ]
|
515
|
-
result
|
516
|
-
end
|
517
|
-
.,.,
|
518
|
-
|
519
|
-
module_eval(<<'.,.,', 'liquor.y', 57)
|
520
|
-
def _reduce_5(val, _values, result)
|
521
|
-
result = [ :interp, retag(val), val[1] ]
|
522
|
-
result
|
523
|
-
end
|
524
|
-
.,.,
|
525
|
-
|
526
|
-
module_eval(<<'.,.,', 'liquor.y', 59)
|
527
|
-
def _reduce_6(val, _values, result)
|
528
|
-
result = [ :interp, retag(val), val[1] ]
|
529
|
-
result
|
530
|
-
end
|
531
|
-
.,.,
|
532
|
-
|
533
|
-
# reduce 7 omitted
|
534
|
-
|
535
|
-
module_eval(<<'.,.,', 'liquor.y', 64)
|
536
|
-
def _reduce_8(val, _values, result)
|
537
|
-
result = [ val[1][0], retag(val), *val[1][2..-1] ]
|
538
|
-
result
|
539
|
-
end
|
540
|
-
.,.,
|
541
|
-
|
542
|
-
# reduce 9 omitted
|
543
|
-
|
544
|
-
# reduce 10 omitted
|
545
|
-
|
546
|
-
# reduce 11 omitted
|
547
|
-
|
548
|
-
module_eval(<<'.,.,', 'liquor.y', 71)
|
549
|
-
def _reduce_12(val, _values, result)
|
550
|
-
result = [ :call, retag(val), val[0], val[1] ]
|
551
|
-
result
|
552
|
-
end
|
553
|
-
.,.,
|
554
|
-
|
555
|
-
module_eval(<<'.,.,', 'liquor.y', 73)
|
556
|
-
def _reduce_13(val, _values, result)
|
557
|
-
result = [ :index, retag(val), val[0], val[2] ]
|
558
|
-
result
|
559
|
-
end
|
560
|
-
.,.,
|
561
|
-
|
562
|
-
module_eval(<<'.,.,', 'liquor.y', 75)
|
563
|
-
def _reduce_14(val, _values, result)
|
564
|
-
result = [ :external, retag(val), val[0], val[2], val[3] ]
|
565
|
-
result
|
566
|
-
end
|
567
|
-
.,.,
|
568
|
-
|
569
|
-
module_eval(<<'.,.,', 'liquor.y', 77)
|
570
|
-
def _reduce_15(val, _values, result)
|
571
|
-
result = [ :external, retag(val), val[0], val[2], nil ]
|
572
|
-
result
|
573
|
-
end
|
574
|
-
.,.,
|
575
|
-
|
576
|
-
module_eval(<<'.,.,', 'liquor.y', 79)
|
577
|
-
def _reduce_16(val, _values, result)
|
578
|
-
result = [ :uminus, retag(val), val[1] ]
|
579
|
-
result
|
580
|
-
end
|
581
|
-
.,.,
|
582
|
-
|
583
|
-
module_eval(<<'.,.,', 'liquor.y', 81)
|
584
|
-
def _reduce_17(val, _values, result)
|
585
|
-
result = [ :not, retag(val), val[1] ]
|
586
|
-
result
|
587
|
-
end
|
588
|
-
.,.,
|
589
|
-
|
590
|
-
module_eval(<<'.,.,', 'liquor.y', 83)
|
591
|
-
def _reduce_18(val, _values, result)
|
592
|
-
result = [ :mul, retag(val), val[0], val[2] ]
|
593
|
-
result
|
594
|
-
end
|
595
|
-
.,.,
|
596
|
-
|
597
|
-
module_eval(<<'.,.,', 'liquor.y', 85)
|
598
|
-
def _reduce_19(val, _values, result)
|
599
|
-
result = [ :div, retag(val), val[0], val[2] ]
|
600
|
-
result
|
601
|
-
end
|
602
|
-
.,.,
|
603
|
-
|
604
|
-
module_eval(<<'.,.,', 'liquor.y', 87)
|
605
|
-
def _reduce_20(val, _values, result)
|
606
|
-
result = [ :mod, retag(val), val[0], val[2] ]
|
607
|
-
result
|
608
|
-
end
|
609
|
-
.,.,
|
610
|
-
|
611
|
-
module_eval(<<'.,.,', 'liquor.y', 89)
|
612
|
-
def _reduce_21(val, _values, result)
|
613
|
-
result = [ :plus, retag(val), val[0], val[2] ]
|
614
|
-
result
|
615
|
-
end
|
616
|
-
.,.,
|
617
|
-
|
618
|
-
module_eval(<<'.,.,', 'liquor.y', 91)
|
619
|
-
def _reduce_22(val, _values, result)
|
620
|
-
result = [ :minus, retag(val), val[0], val[2] ]
|
621
|
-
result
|
622
|
-
end
|
623
|
-
.,.,
|
624
|
-
|
625
|
-
module_eval(<<'.,.,', 'liquor.y', 93)
|
626
|
-
def _reduce_23(val, _values, result)
|
627
|
-
result = [ :eq, retag(val), val[0], val[2] ]
|
628
|
-
result
|
629
|
-
end
|
630
|
-
.,.,
|
631
|
-
|
632
|
-
module_eval(<<'.,.,', 'liquor.y', 95)
|
633
|
-
def _reduce_24(val, _values, result)
|
634
|
-
result = [ :neq, retag(val), val[0], val[2] ]
|
635
|
-
result
|
636
|
-
end
|
637
|
-
.,.,
|
638
|
-
|
639
|
-
module_eval(<<'.,.,', 'liquor.y', 97)
|
640
|
-
def _reduce_25(val, _values, result)
|
641
|
-
result = [ :lt, retag(val), val[0], val[2] ]
|
642
|
-
result
|
643
|
-
end
|
644
|
-
.,.,
|
645
|
-
|
646
|
-
module_eval(<<'.,.,', 'liquor.y', 99)
|
647
|
-
def _reduce_26(val, _values, result)
|
648
|
-
result = [ :leq, retag(val), val[0], val[2] ]
|
649
|
-
result
|
650
|
-
end
|
651
|
-
.,.,
|
652
|
-
|
653
|
-
module_eval(<<'.,.,', 'liquor.y', 101)
|
654
|
-
def _reduce_27(val, _values, result)
|
655
|
-
result = [ :gt, retag(val), val[0], val[2] ]
|
656
|
-
result
|
657
|
-
end
|
658
|
-
.,.,
|
659
|
-
|
660
|
-
module_eval(<<'.,.,', 'liquor.y', 103)
|
661
|
-
def _reduce_28(val, _values, result)
|
662
|
-
result = [ :geq, retag(val), val[0], val[2] ]
|
663
|
-
result
|
664
|
-
end
|
665
|
-
.,.,
|
666
|
-
|
667
|
-
module_eval(<<'.,.,', 'liquor.y', 105)
|
668
|
-
def _reduce_29(val, _values, result)
|
669
|
-
result = [ :and, retag(val), val[0], val[2] ]
|
670
|
-
result
|
671
|
-
end
|
672
|
-
.,.,
|
673
|
-
|
674
|
-
module_eval(<<'.,.,', 'liquor.y', 107)
|
675
|
-
def _reduce_30(val, _values, result)
|
676
|
-
result = [ :or, retag(val), val[0], val[2] ]
|
677
|
-
result
|
678
|
-
end
|
679
|
-
.,.,
|
680
|
-
|
681
|
-
# reduce 31 omitted
|
682
|
-
|
683
|
-
module_eval(<<'.,.,', 'liquor.y', 112)
|
684
|
-
def _reduce_32(val, _values, result)
|
685
|
-
result = [ :tuple, retag(val), val[1].compact ]
|
686
|
-
result
|
687
|
-
end
|
688
|
-
.,.,
|
689
|
-
|
690
|
-
module_eval(<<'.,.,', 'liquor.y', 116)
|
691
|
-
def _reduce_33(val, _values, result)
|
692
|
-
result = [ val[0], *val[2] ]
|
693
|
-
result
|
694
|
-
end
|
695
|
-
.,.,
|
696
|
-
|
697
|
-
module_eval(<<'.,.,', 'liquor.y', 118)
|
698
|
-
def _reduce_34(val, _values, result)
|
699
|
-
result = [ val[0] ]
|
700
|
-
result
|
701
|
-
end
|
702
|
-
.,.,
|
703
|
-
|
704
|
-
module_eval(<<'.,.,', 'liquor.y', 120)
|
705
|
-
def _reduce_35(val, _values, result)
|
706
|
-
result = [ ]
|
707
|
-
result
|
708
|
-
end
|
709
|
-
.,.,
|
710
|
-
|
711
|
-
module_eval(<<'.,.,', 'liquor.y', 124)
|
712
|
-
def _reduce_36(val, _values, result)
|
713
|
-
result = [ :args, retag(val), *val[1] ]
|
714
|
-
result
|
715
|
-
end
|
716
|
-
.,.,
|
717
|
-
|
718
|
-
module_eval(<<'.,.,', 'liquor.y', 128)
|
719
|
-
def _reduce_37(val, _values, result)
|
720
|
-
result = [ val[0], val[1][2] ]
|
721
|
-
result
|
722
|
-
end
|
723
|
-
.,.,
|
724
|
-
|
725
|
-
module_eval(<<'.,.,', 'liquor.y', 130)
|
726
|
-
def _reduce_38(val, _values, result)
|
727
|
-
result = [ nil, val[0][2] ]
|
728
|
-
result
|
729
|
-
end
|
730
|
-
.,.,
|
731
|
-
|
732
|
-
module_eval(<<'.,.,', 'liquor.y', 134)
|
733
|
-
def _reduce_39(val, _values, result)
|
734
|
-
name = val[0][2].to_sym
|
735
|
-
tail = val[2][2]
|
736
|
-
loc = retag([ val[0], val[1] ])
|
737
|
-
|
738
|
-
if tail.include? name
|
739
|
-
@errors << SyntaxError.new("duplicate keyword argument `#{val[0][2]}'",
|
740
|
-
tail[name][1])
|
741
|
-
end
|
742
|
-
|
743
|
-
hash = {
|
744
|
-
name => [ val[1][0], loc, *val[1][2..-1] ]
|
745
|
-
}.merge(tail)
|
746
|
-
|
747
|
-
result = [ :keywords, retag([ loc, val[2] ]), hash ]
|
748
|
-
|
749
|
-
result
|
750
|
-
end
|
751
|
-
.,.,
|
752
|
-
|
753
|
-
module_eval(<<'.,.,', 'liquor.y', 150)
|
754
|
-
def _reduce_40(val, _values, result)
|
755
|
-
result = [ :keywords, nil, {} ]
|
756
|
-
result
|
757
|
-
end
|
758
|
-
.,.,
|
759
|
-
|
760
|
-
module_eval(<<'.,.,', 'liquor.y', 154)
|
761
|
-
def _reduce_41(val, _values, result)
|
762
|
-
result = [ val[0], *val[2] ].
|
763
|
-
reduce { |tree, node| node[3][2] = tree; node }
|
764
|
-
|
765
|
-
result
|
766
|
-
end
|
767
|
-
.,.,
|
768
|
-
|
769
|
-
module_eval(<<'.,.,', 'liquor.y', 160)
|
770
|
-
def _reduce_42(val, _values, result)
|
771
|
-
result = [ val[0], *val[2] ]
|
772
|
-
result
|
773
|
-
end
|
774
|
-
.,.,
|
775
|
-
|
776
|
-
module_eval(<<'.,.,', 'liquor.y', 162)
|
777
|
-
def _reduce_43(val, _values, result)
|
778
|
-
result = [ val[0] ]
|
779
|
-
result
|
780
|
-
end
|
781
|
-
.,.,
|
782
|
-
|
783
|
-
module_eval(<<'.,.,', 'liquor.y', 166)
|
784
|
-
def _reduce_44(val, _values, result)
|
785
|
-
ident_loc = val[0][1]
|
786
|
-
empty_args_loc = { line: ident_loc[:line],
|
787
|
-
start: ident_loc[:end] + 1,
|
788
|
-
end: ident_loc[:end] + 1, }
|
789
|
-
result = [ :call, val[0][1], val[0],
|
790
|
-
[ :args, val[1][1] || empty_args_loc, nil, val[1][2] ] ]
|
791
|
-
|
792
|
-
result
|
793
|
-
end
|
794
|
-
.,.,
|
795
|
-
|
796
|
-
module_eval(<<'.,.,', 'liquor.y', 176)
|
797
|
-
def _reduce_45(val, _values, result)
|
798
|
-
result = [ :tag, retag(val), val[1], val[2], *reduce_tag_args(val[3][2]) ]
|
799
|
-
result
|
800
|
-
end
|
801
|
-
.,.,
|
802
|
-
|
803
|
-
module_eval(<<'.,.,', 'liquor.y', 178)
|
804
|
-
def _reduce_46(val, _values, result)
|
805
|
-
result = [ :tag, retag(val), val[1], nil, *reduce_tag_args(val[2][2]) ]
|
806
|
-
result
|
807
|
-
end
|
808
|
-
.,.,
|
809
|
-
|
810
|
-
module_eval(<<'.,.,', 'liquor.y', 186)
|
811
|
-
def _reduce_47(val, _values, result)
|
812
|
-
result = [ :cont, retag(val), [] ]
|
813
|
-
result
|
814
|
-
end
|
815
|
-
.,.,
|
816
|
-
|
817
|
-
module_eval(<<'.,.,', 'liquor.y', 188)
|
818
|
-
def _reduce_48(val, _values, result)
|
819
|
-
result = [ :cont, retag(val), [ val[0], *val[1][2] ] ]
|
820
|
-
result
|
821
|
-
end
|
822
|
-
.,.,
|
823
|
-
|
824
|
-
module_eval(<<'.,.,', 'liquor.y', 192)
|
825
|
-
def _reduce_49(val, _values, result)
|
826
|
-
result = [ :cont2, val[0][1], [ [:block, val[0][1], val[1] ], *val[3] ] ]
|
827
|
-
result
|
828
|
-
end
|
829
|
-
.,.,
|
830
|
-
|
831
|
-
module_eval(<<'.,.,', 'liquor.y', 194)
|
832
|
-
def _reduce_50(val, _values, result)
|
833
|
-
result = [ :cont2, retag(val), [ val[0], *val[1][2] ] ]
|
834
|
-
result
|
835
|
-
end
|
836
|
-
.,.,
|
837
|
-
|
838
|
-
module_eval(<<'.,.,', 'liquor.y', 198)
|
839
|
-
def _reduce_51(val, _values, result)
|
840
|
-
result = []
|
841
|
-
result
|
842
|
-
end
|
843
|
-
.,.,
|
844
|
-
|
845
|
-
module_eval(<<'.,.,', 'liquor.y', 200)
|
846
|
-
def _reduce_52(val, _values, result)
|
847
|
-
result = [ val[0], *val[1] ]
|
848
|
-
result
|
849
|
-
end
|
850
|
-
.,.,
|
851
|
-
|
852
|
-
module_eval(<<'.,.,', 'liquor.y', 204)
|
853
|
-
def _reduce_53(val, _values, result)
|
854
|
-
result = [ [:block, val[0][1], val[1] ], *val[3] ]
|
855
|
-
result
|
856
|
-
end
|
857
|
-
.,.,
|
858
|
-
|
859
|
-
module_eval(<<'.,.,', 'liquor.y', 206)
|
860
|
-
def _reduce_54(val, _values, result)
|
861
|
-
result = [ val[0], val[1], *val[2] ]
|
862
|
-
result
|
863
|
-
end
|
864
|
-
.,.,
|
865
|
-
|
866
|
-
module_eval(<<'.,.,', 'liquor.y', 210)
|
867
|
-
def _reduce_55(val, _values, result)
|
868
|
-
result = [ [:block, val[0][1], val[1] ], *val[3] ]
|
869
|
-
result
|
870
|
-
end
|
871
|
-
.,.,
|
872
|
-
|
873
|
-
module_eval(<<'.,.,', 'liquor.y', 212)
|
874
|
-
def _reduce_56(val, _values, result)
|
875
|
-
result = [ val[0], *val[1] ]
|
876
|
-
result
|
877
|
-
end
|
878
|
-
.,.,
|
879
|
-
|
880
|
-
def _reduce_none(val, _values, result)
|
881
|
-
val[0]
|
882
|
-
end
|
883
|
-
|
884
|
-
end # class Parser
|
885
|
-
end # module Liquor
|