nokogiri 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of nokogiri might be problematic. Click here for more details.
- data.tar.gz.sig +0 -0
- data/.autotest +5 -6
- data/CHANGELOG.ja.rdoc +47 -11
- data/CHANGELOG.rdoc +31 -0
- data/Manifest.txt +8 -1
- data/README.ja.rdoc +4 -3
- data/README.rdoc +9 -1
- data/Rakefile +4 -0
- data/deps.rip +5 -0
- data/ext/nokogiri/extconf.rb +4 -0
- data/ext/nokogiri/html_element_description.c +1 -1
- data/ext/nokogiri/nokogiri.c +7 -0
- data/ext/nokogiri/nokogiri.h +4 -1
- data/ext/nokogiri/xml_document.c +3 -5
- data/ext/nokogiri/xml_encoding_handler.c +79 -0
- data/ext/nokogiri/xml_encoding_handler.h +8 -0
- data/ext/nokogiri/xml_namespace.c +8 -0
- data/ext/nokogiri/xml_namespace.h +1 -0
- data/ext/nokogiri/xml_node.c +61 -41
- data/ext/nokogiri/xml_node_set.c +22 -14
- data/ext/nokogiri/xml_sax_parser.c +0 -3
- data/ext/nokogiri/xml_sax_parser_context.c +2 -0
- data/ext/nokogiri/xml_sax_push_parser.c +26 -3
- data/ext/nokogiri/xml_syntax_error.c +18 -227
- data/lib/nokogiri/css/generated_parser.rb +173 -160
- data/lib/nokogiri/css/generated_tokenizer.rb +4 -1
- data/lib/nokogiri/css/parser.y +4 -1
- data/lib/nokogiri/css/tokenizer.rex +2 -1
- data/lib/nokogiri/css/xpath_visitor.rb +2 -0
- data/lib/nokogiri/ffi/encoding_handler.rb +42 -0
- data/lib/nokogiri/ffi/html/element_description.rb +5 -9
- data/lib/nokogiri/ffi/libxml.rb +21 -5
- data/lib/nokogiri/ffi/structs/xml_char_encoding_handler.rb +11 -0
- data/lib/nokogiri/ffi/structs/xml_document.rb +3 -3
- data/lib/nokogiri/ffi/structs/xml_sax_push_parser_context.rb +110 -1
- data/lib/nokogiri/ffi/xml/dtd.rb +2 -4
- data/lib/nokogiri/ffi/xml/node.rb +38 -17
- data/lib/nokogiri/ffi/xml/node_set.rb +21 -8
- data/lib/nokogiri/ffi/xml/reader.rb +1 -1
- data/lib/nokogiri/ffi/xml/sax/parser.rb +1 -8
- data/lib/nokogiri/ffi/xml/sax/push_parser.rb +16 -4
- data/lib/nokogiri/ffi/xml/syntax_error.rb +9 -2
- data/lib/nokogiri/ffi/xslt/stylesheet.rb +12 -9
- data/lib/nokogiri/version.rb +1 -1
- data/lib/nokogiri/xml/builder.rb +1 -1
- data/lib/nokogiri/xml/document.rb +35 -4
- data/lib/nokogiri/xml/document_fragment.rb +5 -1
- data/lib/nokogiri/xml/fragment_handler.rb +28 -20
- data/lib/nokogiri/xml/node.rb +84 -13
- data/lib/nokogiri/xml/node_set.rb +19 -2
- data/lib/nokogiri/xml/sax/push_parser.rb +1 -1
- data/lib/nokogiri/xml/syntax_error.rb +10 -5
- data/lib/nokogiri/xslt/stylesheet.rb +1 -1
- data/lib/xsd/xmlparser/nokogiri.rb +20 -1
- data/test/css/test_parser.rb +5 -0
- data/test/css/test_tokenizer.rb +7 -0
- data/test/helper.rb +0 -5
- data/test/html/test_document_fragment.rb +39 -1
- data/test/html/test_node.rb +14 -0
- data/test/test_encoding_handler.rb +46 -0
- data/test/test_memory_leak.rb +10 -0
- data/test/test_nokogiri.rb +5 -1
- data/test/test_soap4r_sax.rb +52 -0
- data/test/test_xslt_transforms.rb +69 -26
- data/test/xml/sax/test_parser_context.rb +7 -0
- data/test/xml/sax/test_push_parser.rb +33 -0
- data/test/xml/test_document.rb +27 -1
- data/test/xml/test_document_fragment.rb +6 -0
- data/test/xml/test_node.rb +63 -214
- data/test/xml/test_node_reparenting.rb +261 -0
- data/test/xml/test_node_set.rb +51 -0
- data/test/xml/test_syntax_error.rb +0 -15
- metadata +35 -5
- metadata.gz.sig +0 -0
- data/test/test_gc.rb +0 -15
@@ -13,153 +13,158 @@ module Nokogiri
|
|
13
13
|
##### State transition tables begin ###
|
14
14
|
|
15
15
|
racc_action_table = [
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
16
|
+
3, 55, 26, 21, 12, 24, 56, 3, 57, 1,
|
17
|
+
73, 12, 41, 56, 3, 23, 1, 79, 12, 18,
|
18
|
+
91, 90, 4, 1, 9, 10, 18, 13, 16, 4,
|
19
|
+
12, 9, 10, 18, 13, 16, 4, 12, 9, 10,
|
20
|
+
3, 13, 16, 41, 12, 41, 60, 61, 4, 1,
|
21
|
+
63, 10, 12, 44, 16, 4, 12, 12, 10, 18,
|
22
|
+
3, 16, 4, 3, 9, 10, 80, 13, 16, 27,
|
23
|
+
4, 28, 48, 10, 4, 4, 16, 10, 10, 18,
|
24
|
+
16, 16, 18, 12, 9, 58, 61, 9, 26, 51,
|
25
|
+
57, 53, 26, 51, 81, 53, 82, 66, 68, -22,
|
26
|
+
62, 4, 66, 68, 10, 85, 86, 16, 67, 69,
|
27
|
+
70, 59, 72, 67, 69, 70, 64, 72, 32, 34,
|
28
|
+
36, 64, 26, 51, 54, 53, 26, 51, 31, 53,
|
29
|
+
33, 35, 89, 4, 92, 93, 94 ]
|
29
30
|
|
30
31
|
racc_action_check = [
|
31
|
-
0,
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
6,
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
32
|
+
0, 20, 3, 3, 0, 3, 43, 56, 51, 0,
|
33
|
+
28, 56, 39, 20, 9, 3, 56, 43, 9, 0,
|
34
|
+
71, 71, 0, 9, 0, 0, 56, 0, 0, 56,
|
35
|
+
7, 56, 56, 9, 56, 56, 9, 6, 9, 9,
|
36
|
+
30, 9, 9, 11, 30, 7, 24, 24, 7, 30,
|
37
|
+
26, 7, 8, 10, 7, 6, 41, 17, 6, 30,
|
38
|
+
4, 6, 30, 16, 30, 30, 52, 30, 30, 4,
|
39
|
+
8, 4, 16, 8, 41, 17, 8, 41, 17, 4,
|
40
|
+
41, 17, 16, 15, 4, 21, 53, 16, 61, 61,
|
41
|
+
21, 61, 18, 18, 54, 18, 55, 29, 29, 1,
|
42
|
+
25, 15, 27, 27, 15, 58, 60, 15, 29, 29,
|
43
|
+
29, 22, 29, 27, 27, 27, 29, 27, 5, 5,
|
44
|
+
5, 27, 57, 57, 19, 57, 63, 63, 5, 63,
|
45
|
+
5, 5, 65, 14, 74, 78, 86 ]
|
44
46
|
|
45
47
|
racc_action_pointer = [
|
46
|
-
-2,
|
47
|
-
nil, nil, 77,
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
nil,
|
54
|
-
nil, nil, nil,
|
55
|
-
nil, nil ]
|
48
|
+
-2, 71, nil, -8, 58, 111, 31, 24, 46, 12,
|
49
|
+
42, 22, nil, nil, 109, 77, 61, 51, 82, 96,
|
50
|
+
1, 78, 88, nil, 35, 77, 38, 99, -15, 94,
|
51
|
+
38, nil, nil, nil, nil, nil, nil, nil, nil, -9,
|
52
|
+
nil, 50, nil, -6, nil, nil, nil, nil, nil, nil,
|
53
|
+
nil, -4, 43, 74, 83, 96, 5, 112, 92, nil,
|
54
|
+
99, 78, nil, 116, nil, 107, nil, nil, nil, nil,
|
55
|
+
nil, 10, nil, nil, 109, nil, nil, nil, 112, nil,
|
56
|
+
nil, nil, nil, nil, nil, nil, 123, nil, nil, nil,
|
57
|
+
nil, nil, nil, nil, nil ]
|
56
58
|
|
57
59
|
racc_action_default = [
|
58
|
-
-23, -20,
|
59
|
-
-
|
60
|
-
-
|
61
|
-
-
|
62
|
-
-
|
63
|
-
-
|
64
|
-
-
|
65
|
-
-60, -
|
66
|
-
-30, -
|
67
|
-
-
|
60
|
+
-23, -20, -2, -66, -66, -17, -52, -44, -49, -23,
|
61
|
+
-66, -15, -53, -21, -12, -51, -66, -50, -66, -66,
|
62
|
+
-66, -37, -66, -27, -35, -66, -36, -56, -66, -56,
|
63
|
+
-23, -5, -3, -8, -4, -7, -6, -48, -9, -43,
|
64
|
+
-11, -66, -45, -66, -18, -14, -13, -47, -42, -41,
|
65
|
+
-46, -37, -66, -35, -66, -66, -23, -66, -66, -28,
|
66
|
+
-40, -66, -29, -66, -57, -66, -62, -58, -63, -59,
|
67
|
+
-60, -66, -61, -26, -66, -16, -10, -65, -66, -31,
|
68
|
+
-30, -19, 95, -1, -34, -39, -66, -32, -33, -24,
|
69
|
+
-54, -55, -25, -64, -38 ]
|
68
70
|
|
69
71
|
racc_goto_table = [
|
70
|
-
|
71
|
-
|
72
|
-
nil, nil,
|
73
|
-
nil, nil, nil, nil, nil,
|
72
|
+
22, 37, 39, 42, 75, 40, 29, 20, 30, 45,
|
73
|
+
47, 65, 50, 74, 38, 52, 43, 46, 49, 25,
|
74
|
+
78, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
75
|
+
83, nil, nil, nil, nil, nil, 77, 76, nil, nil,
|
74
76
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
75
|
-
nil, nil,
|
77
|
+
nil, nil, nil, nil, 84, nil, nil, nil, 87, nil,
|
78
|
+
88 ]
|
76
79
|
|
77
80
|
racc_goto_check = [
|
78
|
-
14, 7,
|
79
|
-
13, 7,
|
80
|
-
nil, nil,
|
81
|
-
nil, nil, nil, nil, nil, 8, nil, nil,
|
81
|
+
14, 7, 7, 7, 2, 8, 9, 1, 3, 8,
|
82
|
+
7, 13, 7, 13, 6, 14, 1, 10, 9, 15,
|
83
|
+
19, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
84
|
+
2, nil, nil, nil, nil, nil, 7, 8, nil, nil,
|
82
85
|
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
83
|
-
nil, nil, 14,
|
86
|
+
nil, nil, nil, nil, 14, nil, nil, nil, 14, nil,
|
87
|
+
14 ]
|
84
88
|
|
85
89
|
racc_goto_pointer = [
|
86
|
-
nil,
|
87
|
-
|
90
|
+
nil, 7, -26, 3, nil, nil, 7, -5, -2, 2,
|
91
|
+
3, nil, nil, -16, -3, 16, nil, nil, nil, -21 ]
|
88
92
|
|
89
93
|
racc_goto_default = [
|
90
|
-
nil, nil,
|
91
|
-
|
94
|
+
nil, nil, 2, nil, 5, 7, nil, 11, nil, 14,
|
95
|
+
15, 17, 19, nil, nil, nil, 6, 8, 71, nil ]
|
92
96
|
|
93
97
|
racc_reduce_table = [
|
94
98
|
0, 0, :racc_error,
|
95
|
-
3,
|
96
|
-
1,
|
97
|
-
1,
|
98
|
-
1,
|
99
|
-
1,
|
100
|
-
1,
|
101
|
-
1,
|
102
|
-
1,
|
103
|
-
2,
|
104
|
-
3,
|
105
|
-
2,
|
106
|
-
1,
|
107
|
-
2,
|
108
|
-
2,
|
109
|
-
1,
|
110
|
-
3,
|
111
|
-
1,
|
112
|
-
2,
|
113
|
-
3,
|
114
|
-
1,
|
115
|
-
1,
|
116
|
-
1,
|
117
|
-
0,
|
118
|
-
4,
|
119
|
-
4,
|
120
|
-
3,
|
121
|
-
2,
|
122
|
-
3,
|
123
|
-
3,
|
124
|
-
3,
|
125
|
-
3,
|
126
|
-
3,
|
127
|
-
3,
|
128
|
-
|
129
|
-
1,
|
130
|
-
1,
|
131
|
-
|
132
|
-
|
133
|
-
|
99
|
+
3, 32, :_reduce_1,
|
100
|
+
1, 32, :_reduce_2,
|
101
|
+
1, 34, :_reduce_3,
|
102
|
+
1, 34, :_reduce_4,
|
103
|
+
1, 34, :_reduce_5,
|
104
|
+
1, 34, :_reduce_6,
|
105
|
+
1, 34, :_reduce_7,
|
106
|
+
1, 34, :_reduce_8,
|
107
|
+
2, 35, :_reduce_9,
|
108
|
+
3, 35, :_reduce_10,
|
109
|
+
2, 35, :_reduce_11,
|
110
|
+
1, 35, :_reduce_none,
|
111
|
+
2, 35, :_reduce_13,
|
112
|
+
2, 35, :_reduce_14,
|
113
|
+
1, 35, :_reduce_15,
|
114
|
+
3, 33, :_reduce_16,
|
115
|
+
1, 33, :_reduce_none,
|
116
|
+
2, 42, :_reduce_18,
|
117
|
+
3, 36, :_reduce_19,
|
118
|
+
1, 36, :_reduce_20,
|
119
|
+
1, 36, :_reduce_21,
|
120
|
+
1, 43, :_reduce_22,
|
121
|
+
0, 43, :_reduce_none,
|
122
|
+
4, 41, :_reduce_24,
|
123
|
+
4, 41, :_reduce_25,
|
124
|
+
3, 41, :_reduce_26,
|
125
|
+
2, 40, :_reduce_27,
|
126
|
+
3, 40, :_reduce_28,
|
127
|
+
3, 40, :_reduce_29,
|
128
|
+
3, 40, :_reduce_30,
|
129
|
+
3, 40, :_reduce_31,
|
130
|
+
3, 45, :_reduce_32,
|
131
|
+
3, 45, :_reduce_33,
|
132
|
+
3, 45, :_reduce_34,
|
133
|
+
1, 45, :_reduce_none,
|
134
|
+
1, 45, :_reduce_none,
|
135
|
+
1, 45, :_reduce_37,
|
136
|
+
4, 46, :_reduce_38,
|
137
|
+
3, 46, :_reduce_39,
|
134
138
|
2, 46, :_reduce_40,
|
135
|
-
2,
|
136
|
-
|
137
|
-
0, 36, :_reduce_none,
|
138
|
-
2, 37, :_reduce_44,
|
139
|
-
2, 37, :_reduce_45,
|
140
|
-
2, 37, :_reduce_46,
|
141
|
-
2, 37, :_reduce_47,
|
142
|
-
1, 37, :_reduce_none,
|
143
|
-
1, 37, :_reduce_none,
|
144
|
-
1, 37, :_reduce_none,
|
139
|
+
2, 47, :_reduce_41,
|
140
|
+
2, 47, :_reduce_42,
|
145
141
|
1, 37, :_reduce_none,
|
146
|
-
|
147
|
-
2,
|
148
|
-
2,
|
149
|
-
|
150
|
-
|
151
|
-
1,
|
152
|
-
1,
|
153
|
-
1,
|
154
|
-
1,
|
155
|
-
1, 48, :
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
142
|
+
0, 37, :_reduce_none,
|
143
|
+
2, 38, :_reduce_45,
|
144
|
+
2, 38, :_reduce_46,
|
145
|
+
2, 38, :_reduce_47,
|
146
|
+
2, 38, :_reduce_48,
|
147
|
+
1, 38, :_reduce_none,
|
148
|
+
1, 38, :_reduce_none,
|
149
|
+
1, 38, :_reduce_none,
|
150
|
+
1, 38, :_reduce_none,
|
151
|
+
1, 48, :_reduce_53,
|
152
|
+
2, 44, :_reduce_54,
|
153
|
+
2, 44, :_reduce_55,
|
154
|
+
0, 44, :_reduce_none,
|
155
|
+
1, 49, :_reduce_57,
|
156
|
+
1, 49, :_reduce_58,
|
157
|
+
1, 49, :_reduce_59,
|
158
|
+
1, 49, :_reduce_60,
|
159
|
+
1, 49, :_reduce_61,
|
160
|
+
1, 49, :_reduce_62,
|
161
|
+
1, 49, :_reduce_63,
|
162
|
+
3, 39, :_reduce_64,
|
163
|
+
1, 50, :_reduce_none ]
|
164
|
+
|
165
|
+
racc_reduce_n = 66
|
166
|
+
|
167
|
+
racc_shift_n = 95
|
163
168
|
|
164
169
|
racc_token_table = {
|
165
170
|
false => 0,
|
@@ -188,12 +193,13 @@ racc_token_table = {
|
|
188
193
|
:RPAREN => 23,
|
189
194
|
:LSQUARE => 24,
|
190
195
|
:RSQUARE => 25,
|
191
|
-
|
192
|
-
"
|
193
|
-
"
|
194
|
-
"
|
196
|
+
:HAS => 26,
|
197
|
+
"." => 27,
|
198
|
+
"|" => 28,
|
199
|
+
"*" => 29,
|
200
|
+
":" => 30 }
|
195
201
|
|
196
|
-
racc_nt_base =
|
202
|
+
racc_nt_base = 31
|
197
203
|
|
198
204
|
racc_use_result_var = true
|
199
205
|
|
@@ -240,6 +246,7 @@ Racc_token_to_s_table = [
|
|
240
246
|
"RPAREN",
|
241
247
|
"LSQUARE",
|
242
248
|
"RSQUARE",
|
249
|
+
"HAS",
|
243
250
|
"\".\"",
|
244
251
|
"\"|\"",
|
245
252
|
"\"*\"",
|
@@ -456,7 +463,8 @@ def _reduce_30(val, _values, result)
|
|
456
463
|
end
|
457
464
|
|
458
465
|
def _reduce_31(val, _values, result)
|
459
|
-
|
466
|
+
result = Node.new(:FUNCTION, [val.first.strip, val[1]].flatten)
|
467
|
+
|
460
468
|
result
|
461
469
|
end
|
462
470
|
|
@@ -470,11 +478,16 @@ def _reduce_33(val, _values, result)
|
|
470
478
|
result
|
471
479
|
end
|
472
480
|
|
473
|
-
|
481
|
+
def _reduce_34(val, _values, result)
|
482
|
+
result = [val.first, val.last]
|
483
|
+
result
|
484
|
+
end
|
474
485
|
|
475
486
|
# reduce 35 omitted
|
476
487
|
|
477
|
-
|
488
|
+
# reduce 36 omitted
|
489
|
+
|
490
|
+
def _reduce_37(val, _values, result)
|
478
491
|
if val[0] == 'even'
|
479
492
|
val = ["2","n","+","0"]
|
480
493
|
result = Node.new(:AN_PLUS_B, val)
|
@@ -492,7 +505,7 @@ def _reduce_36(val, _values, result)
|
|
492
505
|
result
|
493
506
|
end
|
494
507
|
|
495
|
-
def
|
508
|
+
def _reduce_38(val, _values, result)
|
496
509
|
if val[1] == 'n'
|
497
510
|
result = Node.new(:AN_PLUS_B, val)
|
498
511
|
else
|
@@ -502,7 +515,7 @@ def _reduce_37(val, _values, result)
|
|
502
515
|
result
|
503
516
|
end
|
504
517
|
|
505
|
-
def
|
518
|
+
def _reduce_39(val, _values, result)
|
506
519
|
# n+3, -n+3
|
507
520
|
if val[0] == 'n'
|
508
521
|
val.unshift("1")
|
@@ -518,7 +531,7 @@ def _reduce_38(val, _values, result)
|
|
518
531
|
result
|
519
532
|
end
|
520
533
|
|
521
|
-
def
|
534
|
+
def _reduce_40(val, _values, result)
|
522
535
|
if val[1] == 'n'
|
523
536
|
val << "+"
|
524
537
|
val << "0"
|
@@ -530,26 +543,20 @@ def _reduce_39(val, _values, result)
|
|
530
543
|
result
|
531
544
|
end
|
532
545
|
|
533
|
-
def
|
546
|
+
def _reduce_41(val, _values, result)
|
534
547
|
result = Node.new(:PSEUDO_CLASS, [val[1]])
|
535
548
|
|
536
549
|
result
|
537
550
|
end
|
538
551
|
|
539
|
-
def
|
552
|
+
def _reduce_42(val, _values, result)
|
540
553
|
result = Node.new(:PSEUDO_CLASS, [val[1]])
|
541
554
|
result
|
542
555
|
end
|
543
556
|
|
544
|
-
# reduce 42 omitted
|
545
|
-
|
546
557
|
# reduce 43 omitted
|
547
558
|
|
548
|
-
|
549
|
-
result = Node.new(:COMBINATOR, val)
|
550
|
-
|
551
|
-
result
|
552
|
-
end
|
559
|
+
# reduce 44 omitted
|
553
560
|
|
554
561
|
def _reduce_45(val, _values, result)
|
555
562
|
result = Node.new(:COMBINATOR, val)
|
@@ -569,7 +576,11 @@ def _reduce_47(val, _values, result)
|
|
569
576
|
result
|
570
577
|
end
|
571
578
|
|
572
|
-
|
579
|
+
def _reduce_48(val, _values, result)
|
580
|
+
result = Node.new(:COMBINATOR, val)
|
581
|
+
|
582
|
+
result
|
583
|
+
end
|
573
584
|
|
574
585
|
# reduce 49 omitted
|
575
586
|
|
@@ -577,65 +588,67 @@ end
|
|
577
588
|
|
578
589
|
# reduce 51 omitted
|
579
590
|
|
580
|
-
|
591
|
+
# reduce 52 omitted
|
592
|
+
|
593
|
+
def _reduce_53(val, _values, result)
|
581
594
|
result = Node.new(:ID, val)
|
582
595
|
result
|
583
596
|
end
|
584
597
|
|
585
|
-
def
|
598
|
+
def _reduce_54(val, _values, result)
|
586
599
|
result = [val.first, val[1]]
|
587
600
|
result
|
588
601
|
end
|
589
602
|
|
590
|
-
def
|
603
|
+
def _reduce_55(val, _values, result)
|
591
604
|
result = [val.first, val[1]]
|
592
605
|
result
|
593
606
|
end
|
594
607
|
|
595
|
-
# reduce
|
608
|
+
# reduce 56 omitted
|
596
609
|
|
597
|
-
def
|
610
|
+
def _reduce_57(val, _values, result)
|
598
611
|
result = :equal
|
599
612
|
result
|
600
613
|
end
|
601
614
|
|
602
|
-
def
|
615
|
+
def _reduce_58(val, _values, result)
|
603
616
|
result = :prefix_match
|
604
617
|
result
|
605
618
|
end
|
606
619
|
|
607
|
-
def
|
620
|
+
def _reduce_59(val, _values, result)
|
608
621
|
result = :suffix_match
|
609
622
|
result
|
610
623
|
end
|
611
624
|
|
612
|
-
def
|
625
|
+
def _reduce_60(val, _values, result)
|
613
626
|
result = :substring_match
|
614
627
|
result
|
615
628
|
end
|
616
629
|
|
617
|
-
def
|
630
|
+
def _reduce_61(val, _values, result)
|
618
631
|
result = :not_equal
|
619
632
|
result
|
620
633
|
end
|
621
634
|
|
622
|
-
def
|
635
|
+
def _reduce_62(val, _values, result)
|
623
636
|
result = :includes
|
624
637
|
result
|
625
638
|
end
|
626
639
|
|
627
|
-
def
|
640
|
+
def _reduce_63(val, _values, result)
|
628
641
|
result = :dash_match
|
629
642
|
result
|
630
643
|
end
|
631
644
|
|
632
|
-
def
|
645
|
+
def _reduce_64(val, _values, result)
|
633
646
|
result = Node.new(:NOT, [val[1]])
|
634
647
|
|
635
648
|
result
|
636
649
|
end
|
637
650
|
|
638
|
-
# reduce
|
651
|
+
# reduce 65 omitted
|
639
652
|
|
640
653
|
def _reduce_none(val, _values, result)
|
641
654
|
val[0]
|