regextest 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.rspec +2 -0
- data/.travis.yml +3 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +25 -0
- data/README.md +88 -0
- data/Rakefile +55 -0
- data/bin/console +14 -0
- data/bin/regextest +4 -0
- data/bin/setup +7 -0
- data/contrib/Onigmo/RE.txt +522 -0
- data/contrib/Onigmo/UnicodeProps.txt +728 -0
- data/contrib/Onigmo/testpy.py +1319 -0
- data/contrib/unicode/Blocks.txt +298 -0
- data/contrib/unicode/CaseFolding.txt +1414 -0
- data/contrib/unicode/DerivedAge.txt +1538 -0
- data/contrib/unicode/DerivedCoreProperties.txt +11029 -0
- data/contrib/unicode/PropList.txt +1525 -0
- data/contrib/unicode/PropertyAliases.txt +193 -0
- data/contrib/unicode/PropertyValueAliases.txt +1420 -0
- data/contrib/unicode/README.txt +25 -0
- data/contrib/unicode/Scripts.txt +2539 -0
- data/contrib/unicode/UnicodeData.txt +29215 -0
- data/lib/pre-case-folding.rb +101 -0
- data/lib/pre-posix-char-class.rb +150 -0
- data/lib/pre-unicode.rb +116 -0
- data/lib/regextest.rb +268 -0
- data/lib/regextest/back.rb +58 -0
- data/lib/regextest/back/element.rb +151 -0
- data/lib/regextest/back/main.rb +356 -0
- data/lib/regextest/back/result.rb +498 -0
- data/lib/regextest/back/test-case.rb +268 -0
- data/lib/regextest/back/work-thread.rb +119 -0
- data/lib/regextest/common.rb +63 -0
- data/lib/regextest/front.rb +60 -0
- data/lib/regextest/front/anchor.rb +45 -0
- data/lib/regextest/front/back-refer.rb +120 -0
- data/lib/regextest/front/bracket-parser.rb +400 -0
- data/lib/regextest/front/bracket-parser.y +117 -0
- data/lib/regextest/front/bracket-scanner.rb +124 -0
- data/lib/regextest/front/bracket.rb +64 -0
- data/lib/regextest/front/builtin-functions.rb +31 -0
- data/lib/regextest/front/case-folding.rb +18 -0
- data/lib/regextest/front/char-class.rb +243 -0
- data/lib/regextest/front/empty.rb +43 -0
- data/lib/regextest/front/letter.rb +327 -0
- data/lib/regextest/front/manage-parentheses.rb +74 -0
- data/lib/regextest/front/parenthesis.rb +153 -0
- data/lib/regextest/front/parser.rb +1366 -0
- data/lib/regextest/front/parser.y +271 -0
- data/lib/regextest/front/range.rb +60 -0
- data/lib/regextest/front/repeat.rb +90 -0
- data/lib/regextest/front/repeatable.rb +77 -0
- data/lib/regextest/front/scanner.rb +187 -0
- data/lib/regextest/front/selectable.rb +65 -0
- data/lib/regextest/front/sequence.rb +73 -0
- data/lib/regextest/front/unicode.rb +1272 -0
- data/lib/regextest/regex-option.rb +144 -0
- data/lib/regextest/regexp.rb +44 -0
- data/lib/regextest/version.rb +5 -0
- data/lib/tst-reg-test.rb +159 -0
- data/regextest.gemspec +26 -0
- metadata +162 -0
@@ -0,0 +1,1366 @@
|
|
1
|
+
#
|
2
|
+
# DO NOT MODIFY!!!!
|
3
|
+
# This file is automatically generated by Racc 1.4.12
|
4
|
+
# from Racc grammer file "".
|
5
|
+
#
|
6
|
+
|
7
|
+
require 'racc/parser.rb'
|
8
|
+
|
9
|
+
# parser classes
|
10
|
+
require 'regextest/front/empty' # parser class for empty part ("", (|) etc.)
|
11
|
+
require 'regextest/front/letter' # parser class for a letter
|
12
|
+
require 'regextest/front/range' # parser class for a range of letters
|
13
|
+
require 'regextest/front/selectable' # parser class for a selectable element
|
14
|
+
require 'regextest/front/parenthesis' # parser class for a parenthesis
|
15
|
+
require 'regextest/front/repeatable' # parser class for a repeatable elements
|
16
|
+
require 'regextest/front/sequence' # parser class for a sequence of elements
|
17
|
+
require 'regextest/front/bracket' # parser class for a character class (bracket)
|
18
|
+
require 'regextest/front/anchor' # parser class for a anchor
|
19
|
+
require 'regextest/front/back-refer' # parser class for a back reference
|
20
|
+
require 'regextest/front/bracket-parser' # bracket parser
|
21
|
+
|
22
|
+
class RegextestFrontParser < Racc::Parser
|
23
|
+
|
24
|
+
module_eval(<<'...end parser.y/module_eval...', 'parser.y', 223)
|
25
|
+
# modules for sharing procedures with bracket parser
|
26
|
+
include Regextest::Front::Empty
|
27
|
+
include Regextest::Front::Letter
|
28
|
+
include Regextest::Front::Range
|
29
|
+
include Regextest::Front::Selectable
|
30
|
+
include Regextest::Front::Parenthesis
|
31
|
+
include Regextest::Front::Repeatable
|
32
|
+
include Regextest::Front::Sequence
|
33
|
+
include Regextest::Front::Bracket
|
34
|
+
include Regextest::Front::Anchor
|
35
|
+
include Regextest::Front::BackRefer
|
36
|
+
|
37
|
+
# execute to parse
|
38
|
+
def parse(lex_words, options)
|
39
|
+
@options = options
|
40
|
+
|
41
|
+
# scanned lexical words
|
42
|
+
@q = lex_words
|
43
|
+
|
44
|
+
# bracket parser (class name is strange because of racc's restriction)
|
45
|
+
@bracket_parser = RegextestFrontBracketParser.new
|
46
|
+
|
47
|
+
# delete comments (since it is complecated to handle comments)
|
48
|
+
@q = @q.delete_if{|token| token[0] == :LEX_COMMENT}
|
49
|
+
|
50
|
+
# execute to parse
|
51
|
+
begin
|
52
|
+
parse_result = do_parse
|
53
|
+
rescue Racc::ParseError => ex
|
54
|
+
raise ex.message
|
55
|
+
end
|
56
|
+
|
57
|
+
parse_result
|
58
|
+
end
|
59
|
+
|
60
|
+
# parse next token
|
61
|
+
def next_token
|
62
|
+
@q.shift
|
63
|
+
end
|
64
|
+
|
65
|
+
# error handling routine. commented out because of readibility problem
|
66
|
+
#def on_error(t, val, vstack)
|
67
|
+
# if val
|
68
|
+
# raise "Parse error. offset=#{val[1]}, letter=#{val[0]}, stack=#{vstack}"
|
69
|
+
# else
|
70
|
+
# raise "Parse error. t=#{t}, val=#{val}, vstack=#{vstack}"
|
71
|
+
# end
|
72
|
+
#end
|
73
|
+
...end parser.y/module_eval...
|
74
|
+
##### State transition tables begin ###
|
75
|
+
|
76
|
+
clist = [
|
77
|
+
'4,6,7,49,10,95,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28',
|
78
|
+
'29,30,31,32,33,34,35,36,37,38,39,40,41,42,144,44,43,143,139,142,140',
|
79
|
+
'141,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125',
|
80
|
+
'126,127,128,129,130,131,132,133,134,135,136,138,109,137,144,102,147',
|
81
|
+
'143,139,142,140,141,110,111,112,113,114,115,116,117,118,119,120,121',
|
82
|
+
'122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,109',
|
83
|
+
'137,144,102,49,143,139,142,140,141,110,111,112,113,114,115,116,117,118',
|
84
|
+
'119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135',
|
85
|
+
'136,138,109,137,4,6,7,44,10,,11,12,13,14,15,16,17,18,19,20,21,22,23',
|
86
|
+
'24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,144,,,143,139',
|
87
|
+
'142,140,141,110,111,112,113,114,115,116,117,118,119,120,121,122,123',
|
88
|
+
'124,125,126,127,128,129,130,131,132,133,134,135,136,138,109,137,144',
|
89
|
+
',,143,139,142,140,141,110,111,112,113,114,115,116,117,118,119,120,121',
|
90
|
+
'122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,109',
|
91
|
+
'137,144,,,143,139,142,140,141,110,111,112,113,114,115,116,117,118,119',
|
92
|
+
'120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136',
|
93
|
+
'138,109,137,4,6,7,,10,,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25',
|
94
|
+
'26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,93,52,53,,56,,57',
|
95
|
+
'58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80',
|
96
|
+
'81,82,83,85,86,88,84,87,4,6,7,,10,,11,12,13,14,15,16,17,18,19,20,21',
|
97
|
+
'22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,144,',
|
98
|
+
',143,139,142,140,141,110,111,112,113,114,115,116,117,118,119,120,121',
|
99
|
+
'122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,109',
|
100
|
+
'137,144,,,143,139,142,140,141,110,111,112,113,114,115,116,117,118,119',
|
101
|
+
'120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136',
|
102
|
+
'138,109,137,144,,,143,139,142,140,141,110,111,112,113,114,115,116,117',
|
103
|
+
'118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134',
|
104
|
+
'135,136,138,109,137,144,,,143,139,142,140,141,110,111,112,113,114,115',
|
105
|
+
'116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132',
|
106
|
+
'133,134,135,136,138,109,137,144,,,143,139,142,140,141,110,111,112,113',
|
107
|
+
'114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130',
|
108
|
+
'131,132,133,134,135,136,138,109,137,144,,,143,139,142,140,141,110,111',
|
109
|
+
'112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128',
|
110
|
+
'129,130,131,132,133,134,135,136,138,109,137,144,,,143,139,142,140,141',
|
111
|
+
'110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126',
|
112
|
+
'127,128,129,130,131,132,133,134,135,136,138,109,137,144,,,143,139,142',
|
113
|
+
'140,141,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124',
|
114
|
+
'125,126,127,128,129,130,131,132,133,134,135,136,138,109,137,144,,,143',
|
115
|
+
'139,142,140,141,110,111,112,113,114,115,116,117,118,119,120,121,122',
|
116
|
+
'123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,109,137',
|
117
|
+
'144,,,143,139,142,140,141,110,111,112,113,114,115,116,117,118,119,120',
|
118
|
+
'121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138',
|
119
|
+
'109,137,93,52,53,,56,,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72',
|
120
|
+
'73,74,75,76,77,78,79,80,81,82,83,85,86,88,84,87,93,52,53,,56,,57,58',
|
121
|
+
'59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81',
|
122
|
+
'82,83,85,86,88,84,87,4,6,7,,10,,11,12,13,14,15,16,17,18,19,20,21,22',
|
123
|
+
'23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,144,,,143',
|
124
|
+
'139,142,140,141,110,111,112,113,114,115,116,117,118,119,120,121,122',
|
125
|
+
'123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,109,137',
|
126
|
+
'144,,,143,139,142,140,141,110,111,112,113,114,115,116,117,118,119,120',
|
127
|
+
'121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138',
|
128
|
+
'109,137,144,,,143,139,142,140,141,110,111,112,113,114,115,116,117,118',
|
129
|
+
'119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135',
|
130
|
+
'136,138,109,137,144,,,143,139,142,140,141,110,111,112,113,114,115,116',
|
131
|
+
'117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133',
|
132
|
+
'134,135,136,138,109,137,144,,,143,139,142,140,141,110,111,112,113,114',
|
133
|
+
'115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131',
|
134
|
+
'132,133,134,135,136,138,109,137,93,52,53,,56,,57,58,59,60,61,62,63,64',
|
135
|
+
'65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,85,86,88,84',
|
136
|
+
'87,144,,,143,139,142,140,141,110,111,112,113,114,115,116,117,118,119',
|
137
|
+
'120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136',
|
138
|
+
'138,109,137,144,,,143,139,142,140,141,110,111,112,113,114,115,116,117',
|
139
|
+
'118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134',
|
140
|
+
'135,136,138,109,137,144,,,143,139,142,140,141,110,111,112,113,114,115',
|
141
|
+
'116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132',
|
142
|
+
'133,134,135,136,138,109,137,144,,,143,139,142,140,141,110,111,112,113',
|
143
|
+
'114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130',
|
144
|
+
'131,132,133,134,135,136,138,109,137,144,,,143,139,142,140,141,110,111',
|
145
|
+
'112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128',
|
146
|
+
'129,130,131,132,133,134,135,136,138,109,137,144,,,143,139,142,140,141',
|
147
|
+
'110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126',
|
148
|
+
'127,128,129,130,131,132,133,134,135,136,138,109,137,144,,,143,139,142',
|
149
|
+
'140,141,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124',
|
150
|
+
'125,126,127,128,129,130,131,132,133,134,135,136,138,109,137,144,,,143',
|
151
|
+
'139,142,140,141,110,111,112,113,114,115,116,117,118,119,120,121,122',
|
152
|
+
'123,124,125,126,127,128,129,130,131,132,133,134,135,136,138,109,137',
|
153
|
+
'144,,,143,139,142,140,141,110,111,112,113,114,115,116,117,118,119,120',
|
154
|
+
'121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,138',
|
155
|
+
'109,137,144,,,143,139,142,140,141,110,111,112,113,114,115,116,117,118',
|
156
|
+
'119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135',
|
157
|
+
'136,138,109,137,144,,,143,139,142,140,141,110,111,112,113,114,115,116',
|
158
|
+
'117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133',
|
159
|
+
'134,135,136,138,109,137,144,,,143,139,142,140,141,110,111,112,113,114',
|
160
|
+
'115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131',
|
161
|
+
'132,133,134,135,136,138,109,137,144,,,143,139,142,140,141,110,111,112',
|
162
|
+
'113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129',
|
163
|
+
'130,131,132,133,134,135,136,138,109,137,144,,,143,139,142,140,141,110',
|
164
|
+
'111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127',
|
165
|
+
'128,129,130,131,132,133,134,135,136,138,109,137,144,,,143,139,142,140',
|
166
|
+
'141,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125',
|
167
|
+
'126,127,128,129,130,131,132,133,134,135,136,138,109,137,6,7,,10,,11',
|
168
|
+
'12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34',
|
169
|
+
'35,36,37,38,39,40,41,42,100,101,,56,,57,58,59,60,61,62,63,64,65,66,67',
|
170
|
+
'68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,85,86,88,84,87,46,47',
|
171
|
+
',10,,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31',
|
172
|
+
'32,33,34,35,36,37,38,39,40,41,42,46,47,,10,,11,12,13,14,15,16,17,18',
|
173
|
+
'19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41',
|
174
|
+
'42,100,101,,56,,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74',
|
175
|
+
'75,76,77,78,79,80,81,82,83,85,86,88,84,87,6,7,,10,,11,12,13,14,15,16',
|
176
|
+
'17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39',
|
177
|
+
'40,41,42,52,53,,56,,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72',
|
178
|
+
'73,74,75,76,77,78,79,80,81,82,83,85,86,88,84,87,100,101,,56,,57,58,59',
|
179
|
+
'60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82',
|
180
|
+
'83,85,86,88,84,87,46,47,,10,,11,12,13,14,15,16,17,18,19,20,21,22,23',
|
181
|
+
'24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,100,101,,56',
|
182
|
+
',57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79',
|
183
|
+
'80,81,82,83,85,86,88,84,87,46,47,,10,,11,12,13,14,15,16,17,18,19,20',
|
184
|
+
'21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,52',
|
185
|
+
'53,,56,,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76',
|
186
|
+
'77,78,79,80,81,82,83,85,86,88,84,87,100,101,,56,,57,58,59,60,61,62,63',
|
187
|
+
'64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,85,86,88',
|
188
|
+
'84,87,46,47,,10,,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27',
|
189
|
+
'28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,52,53,,56,,57,58,59,60',
|
190
|
+
'61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83',
|
191
|
+
'85,86,88,84,87,46,47,,10,,11,12,13,14,15,16,17,18,19,20,21,22,23,24',
|
192
|
+
'25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,6,7,,10,,11,12',
|
193
|
+
'13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35',
|
194
|
+
'36,37,38,39,40,41,42,52,53,,56,,57,58,59,60,61,62,63,64,65,66,67,68',
|
195
|
+
'69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,85,86,88,84,87,6,7,,10',
|
196
|
+
',11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33',
|
197
|
+
'34,35,36,37,38,39,40,41,42,6,7,,10,,11,12,13,14,15,16,17,18,19,20,21',
|
198
|
+
'22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,52,53',
|
199
|
+
',56,,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77',
|
200
|
+
'78,79,80,81,82,83,85,86,88,84,87,100,101,,56,,57,58,59,60,61,62,63,64',
|
201
|
+
'65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,85,86,88,84',
|
202
|
+
'87,147,147,44,44,44,153,152,149,145,154,147,,,,,146' ]
|
203
|
+
racc_action_table = arr = ::Array.new(2540, nil)
|
204
|
+
idx = 0
|
205
|
+
clist.each do |str|
|
206
|
+
str.split(',', -1).each do |i|
|
207
|
+
arr[idx] = i.to_i unless i.empty?
|
208
|
+
idx += 1
|
209
|
+
end
|
210
|
+
end
|
211
|
+
|
212
|
+
clist = [
|
213
|
+
'0,0,0,5,0,43,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0',
|
214
|
+
'0,0,0,0,144,2,1,144,144,144,144,144,144,144,144,144,144,144,144,144',
|
215
|
+
'144,144,144,144,144,144,144,144,144,144,144,144,144,144,144,144,144',
|
216
|
+
'144,144,144,144,144,143,51,148,143,143,143,143,143,143,143,143,143,143',
|
217
|
+
'143,143,143,143,143,143,143,143,143,143,143,143,143,143,143,143,143',
|
218
|
+
'143,143,143,143,143,143,143,143,142,99,45,142,142,142,142,142,142,142',
|
219
|
+
'142,142,142,142,142,142,142,142,142,142,142,142,142,142,142,142,142',
|
220
|
+
'142,142,142,142,142,142,142,142,142,142,142,4,4,4,48,4,,4,4,4,4,4,4',
|
221
|
+
'4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,141,,,141,141,141',
|
222
|
+
'141,141,141,141,141,141,141,141,141,141,141,141,141,141,141,141,141',
|
223
|
+
'141,141,141,141,141,141,141,141,141,141,141,141,141,141,141,140,,,140',
|
224
|
+
'140,140,140,140,140,140,140,140,140,140,140,140,140,140,140,140,140',
|
225
|
+
'140,140,140,140,140,140,140,140,140,140,140,140,140,140,140,140,140',
|
226
|
+
'139,,,139,139,139,139,139,139,139,139,139,139,139,139,139,139,139,139',
|
227
|
+
'139,139,139,139,139,139,139,139,139,139,139,139,139,139,139,139,139',
|
228
|
+
'139,139,10,10,10,,10,,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10',
|
229
|
+
'10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,,11,,11,11',
|
230
|
+
'11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11',
|
231
|
+
'11,11,11,11,11,11,11,12,12,12,,12,,12,12,12,12,12,12,12,12,12,12,12',
|
232
|
+
'12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,138,',
|
233
|
+
',138,138,138,138,138,138,138,138,138,138,138,138,138,138,138,138,138',
|
234
|
+
'138,138,138,138,138,138,138,138,138,138,138,138,138,138,138,138,138',
|
235
|
+
'138,137,,,137,137,137,137,137,137,137,137,137,137,137,137,137,137,137',
|
236
|
+
'137,137,137,137,137,137,137,137,137,137,137,137,137,137,137,137,137',
|
237
|
+
'137,137,137,136,,,136,136,136,136,136,136,136,136,136,136,136,136,136',
|
238
|
+
'136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136,136',
|
239
|
+
'136,136,136,136,136,135,,,135,135,135,135,135,135,135,135,135,135,135',
|
240
|
+
'135,135,135,135,135,135,135,135,135,135,135,135,135,135,135,135,135',
|
241
|
+
'135,135,135,135,135,135,135,134,,,134,134,134,134,134,134,134,134,134',
|
242
|
+
'134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134,134',
|
243
|
+
'134,134,134,134,134,134,134,134,134,133,,,133,133,133,133,133,133,133',
|
244
|
+
'133,133,133,133,133,133,133,133,133,133,133,133,133,133,133,133,133',
|
245
|
+
'133,133,133,133,133,133,133,133,133,133,133,132,,,132,132,132,132,132',
|
246
|
+
'132,132,132,132,132,132,132,132,132,132,132,132,132,132,132,132,132',
|
247
|
+
'132,132,132,132,132,132,132,132,132,132,132,132,132,131,,,131,131,131',
|
248
|
+
'131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,131',
|
249
|
+
'131,131,131,131,131,131,131,131,131,131,131,131,131,131,131,130,,,130',
|
250
|
+
'130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130',
|
251
|
+
'130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130',
|
252
|
+
'129,,,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129',
|
253
|
+
'129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129,129',
|
254
|
+
'129,129,56,56,56,,56,,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56',
|
255
|
+
'56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,56,57,57,57,,57,,57,57',
|
256
|
+
'57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57,57',
|
257
|
+
'57,57,57,57,57,57,57,58,58,58,,58,,58,58,58,58,58,58,58,58,58,58,58',
|
258
|
+
'58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,58,88,,',
|
259
|
+
'88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88,88',
|
260
|
+
'88,88,88,88,88,88,88,88,88,88,88,88,128,,,128,128,128,128,128,128,128',
|
261
|
+
'128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128,128',
|
262
|
+
'128,128,128,128,128,128,128,128,128,128,128,127,,,127,127,127,127,127',
|
263
|
+
'127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127,127',
|
264
|
+
'127,127,127,127,127,127,127,127,127,127,127,127,127,126,,,126,126,126',
|
265
|
+
'126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,126',
|
266
|
+
'126,126,126,126,126,126,126,126,126,126,126,126,126,126,126,125,,,125',
|
267
|
+
'125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125',
|
268
|
+
'125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125,125',
|
269
|
+
'93,93,93,,93,,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93,93',
|
270
|
+
'93,93,93,93,93,93,93,93,93,93,93,93,93,93,124,,,124,124,124,124,124',
|
271
|
+
'124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124,124',
|
272
|
+
'124,124,124,124,124,124,124,124,124,124,124,124,124,123,,,123,123,123',
|
273
|
+
'123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,123',
|
274
|
+
'123,123,123,123,123,123,123,123,123,123,123,123,123,123,123,122,,,122',
|
275
|
+
'122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122',
|
276
|
+
'122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122,122',
|
277
|
+
'121,,,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121',
|
278
|
+
'121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121,121',
|
279
|
+
'121,121,120,,,120,120,120,120,120,120,120,120,120,120,120,120,120,120',
|
280
|
+
'120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120,120',
|
281
|
+
'120,120,120,120,119,,,119,119,119,119,119,119,119,119,119,119,119,119',
|
282
|
+
'119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119,119',
|
283
|
+
'119,119,119,119,119,119,118,,,118,118,118,118,118,118,118,118,118,118',
|
284
|
+
'118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118,118',
|
285
|
+
'118,118,118,118,118,118,118,118,117,,,117,117,117,117,117,117,117,117',
|
286
|
+
'117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117,117',
|
287
|
+
'117,117,117,117,117,117,117,117,117,117,116,,,116,116,116,116,116,116',
|
288
|
+
'116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116,116',
|
289
|
+
'116,116,116,116,116,116,116,116,116,116,116,116,115,,,115,115,115,115',
|
290
|
+
'115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115,115',
|
291
|
+
'115,115,115,115,115,115,115,115,115,115,115,115,115,115,114,,,114,114',
|
292
|
+
'114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114',
|
293
|
+
'114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,114,113',
|
294
|
+
',,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113',
|
295
|
+
'113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113,113',
|
296
|
+
'113,110,,,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110',
|
297
|
+
'110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110,110',
|
298
|
+
'110,110,110,111,,,111,111,111,111,111,111,111,111,111,111,111,111,111',
|
299
|
+
'111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111,111',
|
300
|
+
'111,111,111,111,111,112,,,112,112,112,112,112,112,112,112,112,112,112',
|
301
|
+
'112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112,112',
|
302
|
+
'112,112,112,112,112,112,112,53,53,,53,,53,53,53,53,53,53,53,53,53,53',
|
303
|
+
'53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,53,190',
|
304
|
+
'190,,190,,190,190,190,190,190,190,190,190,190,190,190,190,190,190,190',
|
305
|
+
'190,190,190,190,190,190,190,190,190,190,190,190,190,190,190,190,190',
|
306
|
+
'151,151,,151,,151,151,151,151,151,151,151,151,151,151,151,151,151,151',
|
307
|
+
'151,151,151,151,151,151,151,151,151,151,151,151,151,151,151,151,151',
|
308
|
+
'151,104,104,,104,,104,104,104,104,104,104,104,104,104,104,104,104,104',
|
309
|
+
'104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104,104',
|
310
|
+
'104,104,103,103,,103,,103,103,103,103,103,103,103,103,103,103,103,103',
|
311
|
+
'103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103,103',
|
312
|
+
'103,103,103,101,101,,101,,101,101,101,101,101,101,101,101,101,101,101',
|
313
|
+
'101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101,101',
|
314
|
+
'101,101,101,101,100,100,,100,,100,100,100,100,100,100,100,100,100,100',
|
315
|
+
'100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100',
|
316
|
+
'100,100,100,100,100,150,150,,150,,150,150,150,150,150,150,150,150,150',
|
317
|
+
'150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150,150',
|
318
|
+
'150,150,150,150,150,150,98,98,,98,,98,98,98,98,98,98,98,98,98,98,98',
|
319
|
+
'98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,98,97,97',
|
320
|
+
',97,,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97,97',
|
321
|
+
'97,97,97,97,97,97,97,97,97,97,97,96,96,,96,,96,96,96,96,96,96,96,96',
|
322
|
+
'96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96,96',
|
323
|
+
'96,147,147,,147,,147,147,147,147,147,147,147,147,147,147,147,147,147',
|
324
|
+
'147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147,147',
|
325
|
+
'147,147,92,92,,92,,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,92',
|
326
|
+
'92,92,92,92,92,92,92,92,92,92,92,92,92,92,92,3,3,,3,,3,3,3,3,3,3,3,3',
|
327
|
+
'3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,6,6,,6,,6,6,6,6,6,6',
|
328
|
+
'6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,89,89,,89,,89,89',
|
329
|
+
'89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89,89',
|
330
|
+
'89,89,89,89,89,89,89,7,7,,7,,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7',
|
331
|
+
'7,7,7,7,7,7,7,7,7,7,7,7,52,52,,52,,52,52,52,52,52,52,52,52,52,52,52',
|
332
|
+
'52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,52,44,44',
|
333
|
+
',44,,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44',
|
334
|
+
'44,44,44,44,44,44,44,44,44,44,44,47,47,,47,,47,47,47,47,47,47,47,47',
|
335
|
+
'47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47',
|
336
|
+
'47,46,46,,46,,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46',
|
337
|
+
'46,46,46,46,46,46,46,46,46,46,46,46,46,46,50,50,,50,,50,50,50,50,50',
|
338
|
+
'50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50',
|
339
|
+
'50,50,50,50,106,105,94,90,107,106,105,94,90,107,91,,,,,91' ]
|
340
|
+
racc_action_check = arr = ::Array.new(2540, nil)
|
341
|
+
idx = 0
|
342
|
+
clist.each do |str|
|
343
|
+
str.split(',', -1).each do |i|
|
344
|
+
arr[idx] = i.to_i unless i.empty?
|
345
|
+
idx += 1
|
346
|
+
end
|
347
|
+
end
|
348
|
+
|
349
|
+
racc_action_pointer = [
|
350
|
+
-2, 40, 37, 2188, 150, -2, 2225, 2299, nil, nil,
|
351
|
+
302, 340, 378, nil, nil, nil, nil, nil, nil, nil,
|
352
|
+
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
353
|
+
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
354
|
+
nil, nil, nil, 5, 2373, 111, 2447, 2410, 153, nil,
|
355
|
+
2484, 72, 2336, 1707, nil, nil, 796, 834, 872, nil,
|
356
|
+
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
357
|
+
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
358
|
+
nil, nil, nil, nil, nil, nil, nil, nil, 910, 2262,
|
359
|
+
2525, 2532, 2151, 1100, 2524, nil, 2077, 2040, 2003, 110,
|
360
|
+
1929, 1892, nil, 1855, 1818, 2523, 2522, 2526, nil, nil,
|
361
|
+
1594, 1632, 1670, 1556, 1518, 1480, 1442, 1404, 1366, 1328,
|
362
|
+
1290, 1252, 1214, 1176, 1138, 1062, 1024, 986, 948, 758,
|
363
|
+
720, 682, 644, 606, 568, 530, 492, 454, 416, 264,
|
364
|
+
226, 188, 112, 74, 36, nil, nil, 2114, 76, nil,
|
365
|
+
1966, 1781, nil, nil, nil, nil, nil, nil, nil, nil,
|
366
|
+
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
367
|
+
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
368
|
+
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
369
|
+
1744 ]
|
370
|
+
|
371
|
+
racc_action_default = [
|
372
|
+
-2, -136, -1, -3, -2, -7, -13, -14, -15, -17,
|
373
|
+
-2, -51, -2, -21, -22, -23, -24, -25, -26, -27,
|
374
|
+
-28, -29, -30, -31, -32, -33, -34, -35, -36, -37,
|
375
|
+
-38, -39, -40, -41, -42, -43, -44, -45, -46, -47,
|
376
|
+
-48, -49, -50, -136, -5, -8, -136, -136, -6, -16,
|
377
|
+
-9, -56, -62, -63, -64, -66, -51, -51, -2, -70,
|
378
|
+
-71, -72, -73, -74, -75, -76, -77, -78, -79, -80,
|
379
|
+
-81, -82, -83, -84, -85, -86, -87, -88, -89, -90,
|
380
|
+
-91, -92, -93, -94, -95, -96, -97, -98, -136, -11,
|
381
|
+
-136, -136, -52, -51, -136, 191, -4, -10, -12, -57,
|
382
|
+
-136, -136, -65, -58, -60, -136, -136, -136, -99, -100,
|
383
|
+
-136, -136, -136, -136, -136, -136, -136, -136, -136, -136,
|
384
|
+
-136, -136, -136, -136, -136, -136, -136, -136, -136, -136,
|
385
|
+
-136, -136, -136, -136, -136, -136, -136, -136, -136, -136,
|
386
|
+
-136, -136, -136, -136, -136, -18, -19, -54, -55, -20,
|
387
|
+
-59, -61, -67, -68, -69, -101, -102, -103, -104, -105,
|
388
|
+
-106, -107, -108, -109, -110, -111, -112, -113, -114, -115,
|
389
|
+
-116, -117, -118, -119, -120, -121, -122, -123, -124, -125,
|
390
|
+
-126, -127, -128, -129, -130, -131, -132, -133, -134, -135,
|
391
|
+
-53 ]
|
392
|
+
|
393
|
+
racc_goto_table = [
|
394
|
+
45, 2, 50, 89, 99, 48, 1, 91, nil, nil,
|
395
|
+
nil, 90, nil, 94, nil, nil, nil, nil, nil, nil,
|
396
|
+
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
397
|
+
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
398
|
+
96, nil, 97, 98, nil, nil, 99, nil, 103, 104,
|
399
|
+
nil, 99, 105, 106, nil, nil, nil, 99, nil, 107,
|
400
|
+
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
401
|
+
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
402
|
+
nil, nil, nil, 108, nil, nil, 45, nil, nil, 148,
|
403
|
+
nil, nil, nil, 45, nil, 45, 150, 151, nil, nil,
|
404
|
+
nil, 45, nil, nil, 99, 155, 156, 157, 158, 159,
|
405
|
+
160, 161, 162, 163, 164, 165, 166, 167, 168, 169,
|
406
|
+
170, 171, 172, 173, 174, 175, 176, 177, 178, 179,
|
407
|
+
180, 181, 182, 183, 184, 185, 186, 187, 188, 189,
|
408
|
+
nil, nil, nil, 190, 99, nil, nil, nil, 45 ]
|
409
|
+
|
410
|
+
racc_goto_check = [
|
411
|
+
4, 2, 5, 3, 9, 2, 1, 8, nil, nil,
|
412
|
+
nil, 2, nil, 2, nil, nil, nil, nil, nil, nil,
|
413
|
+
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
414
|
+
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
415
|
+
3, nil, 5, 3, nil, nil, 9, nil, 5, 3,
|
416
|
+
nil, 9, 8, 8, nil, nil, nil, 9, nil, 2,
|
417
|
+
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
418
|
+
nil, nil, nil, nil, nil, nil, nil, nil, nil, nil,
|
419
|
+
nil, nil, nil, 12, nil, nil, 4, nil, nil, 8,
|
420
|
+
nil, nil, nil, 4, nil, 4, 5, 3, nil, nil,
|
421
|
+
nil, 4, nil, nil, 9, 12, 12, 12, 12, 12,
|
422
|
+
12, 12, 12, 12, 12, 12, 12, 12, 12, 12,
|
423
|
+
12, 12, 12, 12, 12, 12, 12, 12, 12, 12,
|
424
|
+
12, 12, 12, 12, 12, 12, 12, 12, 12, 12,
|
425
|
+
nil, nil, nil, 5, 9, nil, nil, nil, 4 ]
|
426
|
+
|
427
|
+
racc_goto_pointer = [
|
428
|
+
nil, 6, 1, -4, -3, -4, nil, nil, -4, -46,
|
429
|
+
nil, nil, -5 ]
|
430
|
+
|
431
|
+
racc_goto_default = [
|
432
|
+
nil, nil, nil, 3, 5, 92, 8, 9, nil, 51,
|
433
|
+
54, 55, nil ]
|
434
|
+
|
435
|
+
racc_reduce_table = [
|
436
|
+
0, 0, :racc_error,
|
437
|
+
1, 41, :_reduce_none,
|
438
|
+
0, 42, :_reduce_2,
|
439
|
+
1, 42, :_reduce_3,
|
440
|
+
3, 42, :_reduce_4,
|
441
|
+
2, 42, :_reduce_5,
|
442
|
+
2, 42, :_reduce_6,
|
443
|
+
1, 43, :_reduce_7,
|
444
|
+
2, 43, :_reduce_8,
|
445
|
+
2, 43, :_reduce_9,
|
446
|
+
3, 43, :_reduce_10,
|
447
|
+
2, 43, :_reduce_11,
|
448
|
+
3, 43, :_reduce_12,
|
449
|
+
1, 43, :_reduce_13,
|
450
|
+
1, 43, :_reduce_14,
|
451
|
+
1, 44, :_reduce_15,
|
452
|
+
2, 44, :_reduce_16,
|
453
|
+
1, 46, :_reduce_17,
|
454
|
+
3, 46, :_reduce_18,
|
455
|
+
3, 46, :_reduce_19,
|
456
|
+
3, 46, :_reduce_20,
|
457
|
+
1, 47, :_reduce_21,
|
458
|
+
1, 47, :_reduce_22,
|
459
|
+
1, 47, :_reduce_23,
|
460
|
+
1, 47, :_reduce_24,
|
461
|
+
1, 47, :_reduce_25,
|
462
|
+
1, 47, :_reduce_26,
|
463
|
+
1, 47, :_reduce_27,
|
464
|
+
1, 47, :_reduce_28,
|
465
|
+
1, 47, :_reduce_29,
|
466
|
+
1, 47, :_reduce_30,
|
467
|
+
1, 47, :_reduce_31,
|
468
|
+
1, 47, :_reduce_32,
|
469
|
+
1, 47, :_reduce_33,
|
470
|
+
1, 47, :_reduce_34,
|
471
|
+
1, 47, :_reduce_35,
|
472
|
+
1, 47, :_reduce_36,
|
473
|
+
1, 47, :_reduce_37,
|
474
|
+
1, 47, :_reduce_38,
|
475
|
+
1, 47, :_reduce_39,
|
476
|
+
1, 47, :_reduce_40,
|
477
|
+
1, 47, :_reduce_41,
|
478
|
+
1, 47, :_reduce_42,
|
479
|
+
1, 47, :_reduce_43,
|
480
|
+
1, 47, :_reduce_44,
|
481
|
+
1, 47, :_reduce_45,
|
482
|
+
1, 47, :_reduce_46,
|
483
|
+
1, 47, :_reduce_47,
|
484
|
+
1, 47, :_reduce_48,
|
485
|
+
1, 47, :_reduce_49,
|
486
|
+
1, 47, :_reduce_50,
|
487
|
+
0, 48, :_reduce_51,
|
488
|
+
1, 48, :_reduce_52,
|
489
|
+
3, 48, :_reduce_53,
|
490
|
+
2, 48, :_reduce_54,
|
491
|
+
2, 48, :_reduce_55,
|
492
|
+
1, 45, :_reduce_56,
|
493
|
+
2, 45, :_reduce_57,
|
494
|
+
2, 45, :_reduce_58,
|
495
|
+
3, 45, :_reduce_59,
|
496
|
+
2, 45, :_reduce_60,
|
497
|
+
3, 45, :_reduce_61,
|
498
|
+
1, 45, :_reduce_62,
|
499
|
+
1, 45, :_reduce_63,
|
500
|
+
1, 49, :_reduce_64,
|
501
|
+
2, 49, :_reduce_65,
|
502
|
+
1, 50, :_reduce_66,
|
503
|
+
3, 50, :_reduce_67,
|
504
|
+
3, 50, :_reduce_68,
|
505
|
+
3, 50, :_reduce_69,
|
506
|
+
1, 51, :_reduce_70,
|
507
|
+
1, 51, :_reduce_71,
|
508
|
+
1, 51, :_reduce_72,
|
509
|
+
1, 51, :_reduce_73,
|
510
|
+
1, 51, :_reduce_74,
|
511
|
+
1, 51, :_reduce_75,
|
512
|
+
1, 51, :_reduce_76,
|
513
|
+
1, 51, :_reduce_77,
|
514
|
+
1, 51, :_reduce_78,
|
515
|
+
1, 51, :_reduce_79,
|
516
|
+
1, 51, :_reduce_80,
|
517
|
+
1, 51, :_reduce_81,
|
518
|
+
1, 51, :_reduce_82,
|
519
|
+
1, 51, :_reduce_83,
|
520
|
+
1, 51, :_reduce_84,
|
521
|
+
1, 51, :_reduce_85,
|
522
|
+
1, 51, :_reduce_86,
|
523
|
+
1, 51, :_reduce_87,
|
524
|
+
1, 51, :_reduce_88,
|
525
|
+
1, 51, :_reduce_89,
|
526
|
+
1, 51, :_reduce_90,
|
527
|
+
1, 51, :_reduce_91,
|
528
|
+
1, 51, :_reduce_92,
|
529
|
+
1, 51, :_reduce_93,
|
530
|
+
1, 51, :_reduce_94,
|
531
|
+
1, 51, :_reduce_95,
|
532
|
+
1, 51, :_reduce_96,
|
533
|
+
1, 51, :_reduce_97,
|
534
|
+
1, 51, :_reduce_98,
|
535
|
+
2, 51, :_reduce_99,
|
536
|
+
1, 52, :_reduce_none,
|
537
|
+
2, 52, :_reduce_none,
|
538
|
+
2, 52, :_reduce_none,
|
539
|
+
2, 52, :_reduce_none,
|
540
|
+
2, 52, :_reduce_none,
|
541
|
+
2, 52, :_reduce_none,
|
542
|
+
2, 52, :_reduce_none,
|
543
|
+
2, 52, :_reduce_none,
|
544
|
+
2, 52, :_reduce_none,
|
545
|
+
2, 52, :_reduce_none,
|
546
|
+
2, 52, :_reduce_none,
|
547
|
+
2, 52, :_reduce_none,
|
548
|
+
2, 52, :_reduce_none,
|
549
|
+
2, 52, :_reduce_none,
|
550
|
+
2, 52, :_reduce_none,
|
551
|
+
2, 52, :_reduce_none,
|
552
|
+
2, 52, :_reduce_none,
|
553
|
+
2, 52, :_reduce_none,
|
554
|
+
2, 52, :_reduce_none,
|
555
|
+
2, 52, :_reduce_none,
|
556
|
+
2, 52, :_reduce_none,
|
557
|
+
2, 52, :_reduce_none,
|
558
|
+
2, 52, :_reduce_none,
|
559
|
+
2, 52, :_reduce_none,
|
560
|
+
2, 52, :_reduce_none,
|
561
|
+
2, 52, :_reduce_none,
|
562
|
+
2, 52, :_reduce_none,
|
563
|
+
2, 52, :_reduce_none,
|
564
|
+
2, 52, :_reduce_none,
|
565
|
+
2, 52, :_reduce_none,
|
566
|
+
2, 52, :_reduce_none,
|
567
|
+
2, 52, :_reduce_none,
|
568
|
+
2, 52, :_reduce_none,
|
569
|
+
2, 52, :_reduce_none,
|
570
|
+
2, 52, :_reduce_none,
|
571
|
+
2, 52, :_reduce_none ]
|
572
|
+
|
573
|
+
racc_reduce_n = 136
|
574
|
+
|
575
|
+
racc_shift_n = 191
|
576
|
+
|
577
|
+
racc_token_table = {
|
578
|
+
false => 0,
|
579
|
+
:error => 1,
|
580
|
+
:LEX_OR => 2,
|
581
|
+
:LEX_OPTION_PAREN_1 => 3,
|
582
|
+
:LEX_OPTION_PAREN_2 => 4,
|
583
|
+
:LEX_QUANTIFIER => 5,
|
584
|
+
:LEX_PAREN_START => 6,
|
585
|
+
:LEX_PAREN_END => 7,
|
586
|
+
:LEX_PAREN_START_EX1 => 8,
|
587
|
+
:LEX_PAREN_START_EX2 => 9,
|
588
|
+
:LEX_CHAR => 10,
|
589
|
+
:LEX_OCTET => 11,
|
590
|
+
:LEX_BACK_REFER => 12,
|
591
|
+
:LEX_CODE_LITERAL => 13,
|
592
|
+
:LEX_NAMED_REFER => 14,
|
593
|
+
:LEX_NAMED_GENERATE => 15,
|
594
|
+
:LEX_CONTROL_LETTER => 16,
|
595
|
+
:LEX_META_LETTER => 17,
|
596
|
+
:LEX_ESCAPED_LETTER => 18,
|
597
|
+
:LEX_UNICODE => 19,
|
598
|
+
:LEX_SIMPLIFIED_CLASS => 20,
|
599
|
+
:LEX_UNICODE_CLASS => 21,
|
600
|
+
:LEX_BRACKET => 22,
|
601
|
+
:LEX_ANC_LINE_BEGIN => 23,
|
602
|
+
:LEX_ANC_LINE_END => 24,
|
603
|
+
:LEX_ANC_WORD_BOUND => 25,
|
604
|
+
:LEX_ANC_WORD_UNBOUND => 26,
|
605
|
+
:LEX_ANC_STRING_BEGIN => 27,
|
606
|
+
:LEX_ANC_STRING_END => 28,
|
607
|
+
:LEX_ANC_STRING_END2 => 29,
|
608
|
+
:LEX_ANC_LOOK_BEHIND2 => 30,
|
609
|
+
:LEX_ANC_MATCH_START => 31,
|
610
|
+
:LEX_SPECIAL_LETTER => 32,
|
611
|
+
:LEX_MINUS => 33,
|
612
|
+
:LEX_AND_AND => 34,
|
613
|
+
:LEX_SPACE => 35,
|
614
|
+
:LEX_SIMPLE_ESCAPE => 36,
|
615
|
+
:LEX_SHARP => 37,
|
616
|
+
:LEX_NEW_LINE => 38,
|
617
|
+
:LEX_ANY_LETTER => 39 }
|
618
|
+
|
619
|
+
racc_nt_base = 40
|
620
|
+
|
621
|
+
racc_use_result_var = false
|
622
|
+
|
623
|
+
Racc_arg = [
|
624
|
+
racc_action_table,
|
625
|
+
racc_action_check,
|
626
|
+
racc_action_default,
|
627
|
+
racc_action_pointer,
|
628
|
+
racc_goto_table,
|
629
|
+
racc_goto_check,
|
630
|
+
racc_goto_default,
|
631
|
+
racc_goto_pointer,
|
632
|
+
racc_nt_base,
|
633
|
+
racc_reduce_table,
|
634
|
+
racc_token_table,
|
635
|
+
racc_shift_n,
|
636
|
+
racc_reduce_n,
|
637
|
+
racc_use_result_var ]
|
638
|
+
|
639
|
+
Racc_token_to_s_table = [
|
640
|
+
"$end",
|
641
|
+
"error",
|
642
|
+
"LEX_OR",
|
643
|
+
"LEX_OPTION_PAREN_1",
|
644
|
+
"LEX_OPTION_PAREN_2",
|
645
|
+
"LEX_QUANTIFIER",
|
646
|
+
"LEX_PAREN_START",
|
647
|
+
"LEX_PAREN_END",
|
648
|
+
"LEX_PAREN_START_EX1",
|
649
|
+
"LEX_PAREN_START_EX2",
|
650
|
+
"LEX_CHAR",
|
651
|
+
"LEX_OCTET",
|
652
|
+
"LEX_BACK_REFER",
|
653
|
+
"LEX_CODE_LITERAL",
|
654
|
+
"LEX_NAMED_REFER",
|
655
|
+
"LEX_NAMED_GENERATE",
|
656
|
+
"LEX_CONTROL_LETTER",
|
657
|
+
"LEX_META_LETTER",
|
658
|
+
"LEX_ESCAPED_LETTER",
|
659
|
+
"LEX_UNICODE",
|
660
|
+
"LEX_SIMPLIFIED_CLASS",
|
661
|
+
"LEX_UNICODE_CLASS",
|
662
|
+
"LEX_BRACKET",
|
663
|
+
"LEX_ANC_LINE_BEGIN",
|
664
|
+
"LEX_ANC_LINE_END",
|
665
|
+
"LEX_ANC_WORD_BOUND",
|
666
|
+
"LEX_ANC_WORD_UNBOUND",
|
667
|
+
"LEX_ANC_STRING_BEGIN",
|
668
|
+
"LEX_ANC_STRING_END",
|
669
|
+
"LEX_ANC_STRING_END2",
|
670
|
+
"LEX_ANC_LOOK_BEHIND2",
|
671
|
+
"LEX_ANC_MATCH_START",
|
672
|
+
"LEX_SPECIAL_LETTER",
|
673
|
+
"LEX_MINUS",
|
674
|
+
"LEX_AND_AND",
|
675
|
+
"LEX_SPACE",
|
676
|
+
"LEX_SIMPLE_ESCAPE",
|
677
|
+
"LEX_SHARP",
|
678
|
+
"LEX_NEW_LINE",
|
679
|
+
"LEX_ANY_LETTER",
|
680
|
+
"$start",
|
681
|
+
"reg_exp",
|
682
|
+
"reg_sel",
|
683
|
+
"reg_seq",
|
684
|
+
"reg_rep",
|
685
|
+
"reg_seq_ex",
|
686
|
+
"reg_elm",
|
687
|
+
"reg_let",
|
688
|
+
"reg_sel_ex",
|
689
|
+
"reg_rep_ex",
|
690
|
+
"reg_elm_ex",
|
691
|
+
"reg_let_ex",
|
692
|
+
"reg_comment_ex" ]
|
693
|
+
|
694
|
+
Racc_debug_parser = false
|
695
|
+
|
696
|
+
##### State transition tables end #####
|
697
|
+
|
698
|
+
# reduce 0 omitted
|
699
|
+
|
700
|
+
# reduce 1 omitted
|
701
|
+
|
702
|
+
module_eval(<<'.,.,', 'parser.y', 12)
|
703
|
+
def _reduce_2(val, _values)
|
704
|
+
TEmpty.new
|
705
|
+
end
|
706
|
+
.,.,
|
707
|
+
|
708
|
+
module_eval(<<'.,.,', 'parser.y', 14)
|
709
|
+
def _reduce_3(val, _values)
|
710
|
+
Selectable.new(val[0])
|
711
|
+
end
|
712
|
+
.,.,
|
713
|
+
|
714
|
+
module_eval(<<'.,.,', 'parser.y', 16)
|
715
|
+
def _reduce_4(val, _values)
|
716
|
+
val[0].add(val[2])
|
717
|
+
end
|
718
|
+
.,.,
|
719
|
+
|
720
|
+
module_eval(<<'.,.,', 'parser.y', 18)
|
721
|
+
def _reduce_5(val, _values)
|
722
|
+
val[0].add(TEmpty.new)
|
723
|
+
end
|
724
|
+
.,.,
|
725
|
+
|
726
|
+
module_eval(<<'.,.,', 'parser.y', 20)
|
727
|
+
def _reduce_6(val, _values)
|
728
|
+
Selectable.new(TEmpty.new).add(val[1])
|
729
|
+
end
|
730
|
+
.,.,
|
731
|
+
|
732
|
+
module_eval(<<'.,.,', 'parser.y', 24)
|
733
|
+
def _reduce_7(val, _values)
|
734
|
+
Sequence.new(val[0])
|
735
|
+
end
|
736
|
+
.,.,
|
737
|
+
|
738
|
+
module_eval(<<'.,.,', 'parser.y', 26)
|
739
|
+
def _reduce_8(val, _values)
|
740
|
+
val[0].add(val[1])
|
741
|
+
end
|
742
|
+
.,.,
|
743
|
+
|
744
|
+
module_eval(<<'.,.,', 'parser.y', 28)
|
745
|
+
def _reduce_9(val, _values)
|
746
|
+
Sequence.new(Paren.new(val[0])).concatinate(val[1])
|
747
|
+
end
|
748
|
+
.,.,
|
749
|
+
|
750
|
+
module_eval(<<'.,.,', 'parser.y', 30)
|
751
|
+
def _reduce_10(val, _values)
|
752
|
+
val[0].add(Paren.new(val[1])).concatinate(val[2])
|
753
|
+
end
|
754
|
+
.,.,
|
755
|
+
|
756
|
+
module_eval(<<'.,.,', 'parser.y', 32)
|
757
|
+
def _reduce_11(val, _values)
|
758
|
+
Sequence.new(Paren.new(val[0])).concatinate(val[1])
|
759
|
+
end
|
760
|
+
.,.,
|
761
|
+
|
762
|
+
module_eval(<<'.,.,', 'parser.y', 34)
|
763
|
+
def _reduce_12(val, _values)
|
764
|
+
val[0].add(Paren.new(val[1])).concatinate(val[2])
|
765
|
+
end
|
766
|
+
.,.,
|
767
|
+
|
768
|
+
module_eval(<<'.,.,', 'parser.y', 36)
|
769
|
+
def _reduce_13(val, _values)
|
770
|
+
Sequence.new(Paren.new(val[0]))
|
771
|
+
end
|
772
|
+
.,.,
|
773
|
+
|
774
|
+
module_eval(<<'.,.,', 'parser.y', 38)
|
775
|
+
def _reduce_14(val, _values)
|
776
|
+
Sequence.new(Paren.new(val[0]))
|
777
|
+
end
|
778
|
+
.,.,
|
779
|
+
|
780
|
+
module_eval(<<'.,.,', 'parser.y', 42)
|
781
|
+
def _reduce_15(val, _values)
|
782
|
+
Repeatable.new(val[0])
|
783
|
+
end
|
784
|
+
.,.,
|
785
|
+
|
786
|
+
module_eval(<<'.,.,', 'parser.y', 44)
|
787
|
+
def _reduce_16(val, _values)
|
788
|
+
val[0].set_quant(val[1])
|
789
|
+
end
|
790
|
+
.,.,
|
791
|
+
|
792
|
+
module_eval(<<'.,.,', 'parser.y', 48)
|
793
|
+
def _reduce_17(val, _values)
|
794
|
+
val[0]
|
795
|
+
end
|
796
|
+
.,.,
|
797
|
+
|
798
|
+
module_eval(<<'.,.,', 'parser.y', 50)
|
799
|
+
def _reduce_18(val, _values)
|
800
|
+
@options[:parens].add(Paren.new(val[0], val[1], val[2]))
|
801
|
+
end
|
802
|
+
.,.,
|
803
|
+
|
804
|
+
module_eval(<<'.,.,', 'parser.y', 52)
|
805
|
+
def _reduce_19(val, _values)
|
806
|
+
@options[:parens].add(Paren.new(val[0], val[1], val[2]))
|
807
|
+
end
|
808
|
+
.,.,
|
809
|
+
|
810
|
+
module_eval(<<'.,.,', 'parser.y', 54)
|
811
|
+
def _reduce_20(val, _values)
|
812
|
+
@options[:parens].add(Paren.new(val[0], val[1], val[2]))
|
813
|
+
end
|
814
|
+
.,.,
|
815
|
+
|
816
|
+
module_eval(<<'.,.,', 'parser.y', 57)
|
817
|
+
def _reduce_21(val, _values)
|
818
|
+
TLetter.new(:LEX_CHAR, val[0])
|
819
|
+
end
|
820
|
+
.,.,
|
821
|
+
|
822
|
+
module_eval(<<'.,.,', 'parser.y', 58)
|
823
|
+
def _reduce_22(val, _values)
|
824
|
+
TLetter.new(:LEX_OCTET, val[0])
|
825
|
+
end
|
826
|
+
.,.,
|
827
|
+
|
828
|
+
module_eval(<<'.,.,', 'parser.y', 59)
|
829
|
+
def _reduce_23(val, _values)
|
830
|
+
BackRefer.new(:LEX_BACK_REFER, val[0])
|
831
|
+
end
|
832
|
+
.,.,
|
833
|
+
|
834
|
+
module_eval(<<'.,.,', 'parser.y', 60)
|
835
|
+
def _reduce_24(val, _values)
|
836
|
+
TLetter.new(:LEX_CODE_LITERAL, val[0])
|
837
|
+
end
|
838
|
+
.,.,
|
839
|
+
|
840
|
+
module_eval(<<'.,.,', 'parser.y', 61)
|
841
|
+
def _reduce_25(val, _values)
|
842
|
+
BackRefer.new(:LEX_NAMED_REFER, val[0])
|
843
|
+
end
|
844
|
+
.,.,
|
845
|
+
|
846
|
+
module_eval(<<'.,.,', 'parser.y', 62)
|
847
|
+
def _reduce_26(val, _values)
|
848
|
+
BackRefer.new(:LEX_NAMED_GENERATE, val[0])
|
849
|
+
end
|
850
|
+
.,.,
|
851
|
+
|
852
|
+
module_eval(<<'.,.,', 'parser.y', 63)
|
853
|
+
def _reduce_27(val, _values)
|
854
|
+
TLetter.new(:LEX_CONTROL_LETTER, val[0])
|
855
|
+
end
|
856
|
+
.,.,
|
857
|
+
|
858
|
+
module_eval(<<'.,.,', 'parser.y', 64)
|
859
|
+
def _reduce_28(val, _values)
|
860
|
+
TLetter.new(:LEX_CONTROL_LETTER, val[0])
|
861
|
+
end
|
862
|
+
.,.,
|
863
|
+
|
864
|
+
module_eval(<<'.,.,', 'parser.y', 65)
|
865
|
+
def _reduce_29(val, _values)
|
866
|
+
TLetter.new(:LEX_ESCAPED_LETTER, val[0])
|
867
|
+
end
|
868
|
+
.,.,
|
869
|
+
|
870
|
+
module_eval(<<'.,.,', 'parser.y', 66)
|
871
|
+
def _reduce_30(val, _values)
|
872
|
+
TLetter.new(:LEX_UNICODE, val[0])
|
873
|
+
end
|
874
|
+
.,.,
|
875
|
+
|
876
|
+
module_eval(<<'.,.,', 'parser.y', 67)
|
877
|
+
def _reduce_31(val, _values)
|
878
|
+
TLetter.new(:LEX_SIMPLIFIED_CLASS, val[0])
|
879
|
+
end
|
880
|
+
.,.,
|
881
|
+
|
882
|
+
module_eval(<<'.,.,', 'parser.y', 68)
|
883
|
+
def _reduce_32(val, _values)
|
884
|
+
TLetter.new(:LEX_UNICODE_CLASS, val[0])
|
885
|
+
end
|
886
|
+
.,.,
|
887
|
+
|
888
|
+
module_eval(<<'.,.,', 'parser.y', 69)
|
889
|
+
def _reduce_33(val, _values)
|
890
|
+
@bracket_parser.parse(val[0], @options)
|
891
|
+
end
|
892
|
+
.,.,
|
893
|
+
|
894
|
+
module_eval(<<'.,.,', 'parser.y', 70)
|
895
|
+
def _reduce_34(val, _values)
|
896
|
+
Anchor.new(:LEX_ANC_LINE_BEGIN, val[0])
|
897
|
+
end
|
898
|
+
.,.,
|
899
|
+
|
900
|
+
module_eval(<<'.,.,', 'parser.y', 71)
|
901
|
+
def _reduce_35(val, _values)
|
902
|
+
Anchor.new(:LEX_ANC_LINE_END, val[0])
|
903
|
+
end
|
904
|
+
.,.,
|
905
|
+
|
906
|
+
module_eval(<<'.,.,', 'parser.y', 72)
|
907
|
+
def _reduce_36(val, _values)
|
908
|
+
Anchor.new(:LEX_ANC_WORD_BOUND, val[0])
|
909
|
+
end
|
910
|
+
.,.,
|
911
|
+
|
912
|
+
module_eval(<<'.,.,', 'parser.y', 73)
|
913
|
+
def _reduce_37(val, _values)
|
914
|
+
Anchor.new(:LEX_ANC_WORD_UNBOUND, val[0])
|
915
|
+
end
|
916
|
+
.,.,
|
917
|
+
|
918
|
+
module_eval(<<'.,.,', 'parser.y', 74)
|
919
|
+
def _reduce_38(val, _values)
|
920
|
+
Anchor.new(:LEX_ANC_STRING_BEGIN, val[0])
|
921
|
+
end
|
922
|
+
.,.,
|
923
|
+
|
924
|
+
module_eval(<<'.,.,', 'parser.y', 75)
|
925
|
+
def _reduce_39(val, _values)
|
926
|
+
Anchor.new(:LEX_ANC_STRING_END, val[0])
|
927
|
+
end
|
928
|
+
.,.,
|
929
|
+
|
930
|
+
module_eval(<<'.,.,', 'parser.y', 76)
|
931
|
+
def _reduce_40(val, _values)
|
932
|
+
Anchor.new(:LEX_ANC_STRING_END2, val[0])
|
933
|
+
end
|
934
|
+
.,.,
|
935
|
+
|
936
|
+
module_eval(<<'.,.,', 'parser.y', 77)
|
937
|
+
def _reduce_41(val, _values)
|
938
|
+
Anchor.new(:LEX_ANC_LOOK_BEHIND2, val[0])
|
939
|
+
end
|
940
|
+
.,.,
|
941
|
+
|
942
|
+
module_eval(<<'.,.,', 'parser.y', 78)
|
943
|
+
def _reduce_42(val, _values)
|
944
|
+
Anchor.new(:LEX_ANC_MATCH_START, val[0])
|
945
|
+
end
|
946
|
+
.,.,
|
947
|
+
|
948
|
+
module_eval(<<'.,.,', 'parser.y', 79)
|
949
|
+
def _reduce_43(val, _values)
|
950
|
+
TLetter.new(:LEX_SPECIAL_LETTER, val[0])
|
951
|
+
end
|
952
|
+
.,.,
|
953
|
+
|
954
|
+
module_eval(<<'.,.,', 'parser.y', 80)
|
955
|
+
def _reduce_44(val, _values)
|
956
|
+
TLetter.new(:LEX_CHAR, val[0])
|
957
|
+
end
|
958
|
+
.,.,
|
959
|
+
|
960
|
+
module_eval(<<'.,.,', 'parser.y', 81)
|
961
|
+
def _reduce_45(val, _values)
|
962
|
+
TLetter.new(:LEX_AND_AND, val[0])
|
963
|
+
end
|
964
|
+
.,.,
|
965
|
+
|
966
|
+
module_eval(<<'.,.,', 'parser.y', 82)
|
967
|
+
def _reduce_46(val, _values)
|
968
|
+
TLetter.new(:LEX_SPACE, val[0])
|
969
|
+
end
|
970
|
+
.,.,
|
971
|
+
|
972
|
+
module_eval(<<'.,.,', 'parser.y', 83)
|
973
|
+
def _reduce_47(val, _values)
|
974
|
+
TLetter.new(:LEX_SIMPLE_ESCAPE, val[0])
|
975
|
+
end
|
976
|
+
.,.,
|
977
|
+
|
978
|
+
module_eval(<<'.,.,', 'parser.y', 84)
|
979
|
+
def _reduce_48(val, _values)
|
980
|
+
TLetter.new(:LEX_CHAR, val[0])
|
981
|
+
end
|
982
|
+
.,.,
|
983
|
+
|
984
|
+
module_eval(<<'.,.,', 'parser.y', 85)
|
985
|
+
def _reduce_49(val, _values)
|
986
|
+
TLetter.new(:LEX_CHAR, val[0])
|
987
|
+
end
|
988
|
+
.,.,
|
989
|
+
|
990
|
+
module_eval(<<'.,.,', 'parser.y', 86)
|
991
|
+
def _reduce_50(val, _values)
|
992
|
+
TLetter.new(:LEX_ANY_LETTER, val[0])
|
993
|
+
end
|
994
|
+
.,.,
|
995
|
+
|
996
|
+
module_eval(<<'.,.,', 'parser.y', 91)
|
997
|
+
def _reduce_51(val, _values)
|
998
|
+
TEmpty.new
|
999
|
+
end
|
1000
|
+
.,.,
|
1001
|
+
|
1002
|
+
module_eval(<<'.,.,', 'parser.y', 93)
|
1003
|
+
def _reduce_52(val, _values)
|
1004
|
+
Selectable.new(val[0])
|
1005
|
+
end
|
1006
|
+
.,.,
|
1007
|
+
|
1008
|
+
module_eval(<<'.,.,', 'parser.y', 95)
|
1009
|
+
def _reduce_53(val, _values)
|
1010
|
+
val[0].add(val[2])
|
1011
|
+
end
|
1012
|
+
.,.,
|
1013
|
+
|
1014
|
+
module_eval(<<'.,.,', 'parser.y', 97)
|
1015
|
+
def _reduce_54(val, _values)
|
1016
|
+
val[0].add(TEmpty.new)
|
1017
|
+
end
|
1018
|
+
.,.,
|
1019
|
+
|
1020
|
+
module_eval(<<'.,.,', 'parser.y', 99)
|
1021
|
+
def _reduce_55(val, _values)
|
1022
|
+
Selectable.new(TEmpty.new).add(val[1])
|
1023
|
+
end
|
1024
|
+
.,.,
|
1025
|
+
|
1026
|
+
module_eval(<<'.,.,', 'parser.y', 103)
|
1027
|
+
def _reduce_56(val, _values)
|
1028
|
+
Sequence.new(val[0])
|
1029
|
+
end
|
1030
|
+
.,.,
|
1031
|
+
|
1032
|
+
module_eval(<<'.,.,', 'parser.y', 105)
|
1033
|
+
def _reduce_57(val, _values)
|
1034
|
+
val[0].add(val[1])
|
1035
|
+
end
|
1036
|
+
.,.,
|
1037
|
+
|
1038
|
+
module_eval(<<'.,.,', 'parser.y', 107)
|
1039
|
+
def _reduce_58(val, _values)
|
1040
|
+
Sequence.new(Paren.new(val[0])).concatinate(val[1])
|
1041
|
+
end
|
1042
|
+
.,.,
|
1043
|
+
|
1044
|
+
module_eval(<<'.,.,', 'parser.y', 109)
|
1045
|
+
def _reduce_59(val, _values)
|
1046
|
+
val[0].add(Paren.new(val[1])).concatinate(val[2])
|
1047
|
+
end
|
1048
|
+
.,.,
|
1049
|
+
|
1050
|
+
module_eval(<<'.,.,', 'parser.y', 111)
|
1051
|
+
def _reduce_60(val, _values)
|
1052
|
+
Sequence.new(Paren.new(val[0])).concatinate(val[1])
|
1053
|
+
end
|
1054
|
+
.,.,
|
1055
|
+
|
1056
|
+
module_eval(<<'.,.,', 'parser.y', 113)
|
1057
|
+
def _reduce_61(val, _values)
|
1058
|
+
val[0].add(Paren.new(val[1])).concatinate(val[2])
|
1059
|
+
end
|
1060
|
+
.,.,
|
1061
|
+
|
1062
|
+
module_eval(<<'.,.,', 'parser.y', 115)
|
1063
|
+
def _reduce_62(val, _values)
|
1064
|
+
Sequence.new(Paren.new(val[0]))
|
1065
|
+
end
|
1066
|
+
.,.,
|
1067
|
+
|
1068
|
+
module_eval(<<'.,.,', 'parser.y', 117)
|
1069
|
+
def _reduce_63(val, _values)
|
1070
|
+
Sequence.new(Paren.new(val[0]))
|
1071
|
+
end
|
1072
|
+
.,.,
|
1073
|
+
|
1074
|
+
module_eval(<<'.,.,', 'parser.y', 121)
|
1075
|
+
def _reduce_64(val, _values)
|
1076
|
+
Repeatable.new(val[0])
|
1077
|
+
end
|
1078
|
+
.,.,
|
1079
|
+
|
1080
|
+
module_eval(<<'.,.,', 'parser.y', 123)
|
1081
|
+
def _reduce_65(val, _values)
|
1082
|
+
val[0].set_quant(val[1])
|
1083
|
+
end
|
1084
|
+
.,.,
|
1085
|
+
|
1086
|
+
module_eval(<<'.,.,', 'parser.y', 127)
|
1087
|
+
def _reduce_66(val, _values)
|
1088
|
+
val[0]
|
1089
|
+
end
|
1090
|
+
.,.,
|
1091
|
+
|
1092
|
+
module_eval(<<'.,.,', 'parser.y', 129)
|
1093
|
+
def _reduce_67(val, _values)
|
1094
|
+
@options[:parens].add(Paren.new(val[0], val[1], val[2]))
|
1095
|
+
end
|
1096
|
+
.,.,
|
1097
|
+
|
1098
|
+
module_eval(<<'.,.,', 'parser.y', 131)
|
1099
|
+
def _reduce_68(val, _values)
|
1100
|
+
@options[:parens].add(Paren.new(val[0], val[1], val[2]))
|
1101
|
+
end
|
1102
|
+
.,.,
|
1103
|
+
|
1104
|
+
module_eval(<<'.,.,', 'parser.y', 133)
|
1105
|
+
def _reduce_69(val, _values)
|
1106
|
+
@options[:parens].add(Paren.new(val[0], val[1], val[2]))
|
1107
|
+
end
|
1108
|
+
.,.,
|
1109
|
+
|
1110
|
+
module_eval(<<'.,.,', 'parser.y', 136)
|
1111
|
+
def _reduce_70(val, _values)
|
1112
|
+
TLetter.new(:LEX_CHAR, val[0])
|
1113
|
+
end
|
1114
|
+
.,.,
|
1115
|
+
|
1116
|
+
module_eval(<<'.,.,', 'parser.y', 137)
|
1117
|
+
def _reduce_71(val, _values)
|
1118
|
+
TLetter.new(:LEX_OCTET, val[0])
|
1119
|
+
end
|
1120
|
+
.,.,
|
1121
|
+
|
1122
|
+
module_eval(<<'.,.,', 'parser.y', 138)
|
1123
|
+
def _reduce_72(val, _values)
|
1124
|
+
BackRefer.new(:LEX_BACK_REFER, val[0])
|
1125
|
+
end
|
1126
|
+
.,.,
|
1127
|
+
|
1128
|
+
module_eval(<<'.,.,', 'parser.y', 139)
|
1129
|
+
def _reduce_73(val, _values)
|
1130
|
+
TLetter.new(:LEX_CODE_LITERAL, val[0])
|
1131
|
+
end
|
1132
|
+
.,.,
|
1133
|
+
|
1134
|
+
module_eval(<<'.,.,', 'parser.y', 140)
|
1135
|
+
def _reduce_74(val, _values)
|
1136
|
+
BackRefer.new(:LEX_NAMED_REFER, val[0])
|
1137
|
+
end
|
1138
|
+
.,.,
|
1139
|
+
|
1140
|
+
module_eval(<<'.,.,', 'parser.y', 141)
|
1141
|
+
def _reduce_75(val, _values)
|
1142
|
+
BackRefer.new(:LEX_NAMED_GENERATE, val[0])
|
1143
|
+
end
|
1144
|
+
.,.,
|
1145
|
+
|
1146
|
+
module_eval(<<'.,.,', 'parser.y', 142)
|
1147
|
+
def _reduce_76(val, _values)
|
1148
|
+
TLetter.new(:LEX_CONTROL_LETTER, val[0])
|
1149
|
+
end
|
1150
|
+
.,.,
|
1151
|
+
|
1152
|
+
module_eval(<<'.,.,', 'parser.y', 143)
|
1153
|
+
def _reduce_77(val, _values)
|
1154
|
+
TLetter.new(:LEX_CONTROL_LETTER, val[0])
|
1155
|
+
end
|
1156
|
+
.,.,
|
1157
|
+
|
1158
|
+
module_eval(<<'.,.,', 'parser.y', 144)
|
1159
|
+
def _reduce_78(val, _values)
|
1160
|
+
TLetter.new(:LEX_ESCAPED_LETTER, val[0])
|
1161
|
+
end
|
1162
|
+
.,.,
|
1163
|
+
|
1164
|
+
module_eval(<<'.,.,', 'parser.y', 145)
|
1165
|
+
def _reduce_79(val, _values)
|
1166
|
+
TLetter.new(:LEX_UNICODE, val[0])
|
1167
|
+
end
|
1168
|
+
.,.,
|
1169
|
+
|
1170
|
+
module_eval(<<'.,.,', 'parser.y', 146)
|
1171
|
+
def _reduce_80(val, _values)
|
1172
|
+
TLetter.new(:LEX_SIMPLIFIED_CLASS, val[0])
|
1173
|
+
end
|
1174
|
+
.,.,
|
1175
|
+
|
1176
|
+
module_eval(<<'.,.,', 'parser.y', 147)
|
1177
|
+
def _reduce_81(val, _values)
|
1178
|
+
TLetter.new(:LEX_UNICODE_CLASS, val[0])
|
1179
|
+
end
|
1180
|
+
.,.,
|
1181
|
+
|
1182
|
+
module_eval(<<'.,.,', 'parser.y', 148)
|
1183
|
+
def _reduce_82(val, _values)
|
1184
|
+
@bracket_parser.parse(val[0], @options)
|
1185
|
+
end
|
1186
|
+
.,.,
|
1187
|
+
|
1188
|
+
module_eval(<<'.,.,', 'parser.y', 149)
|
1189
|
+
def _reduce_83(val, _values)
|
1190
|
+
Anchor.new(:LEX_ANC_LINE_BEGIN, val[0])
|
1191
|
+
end
|
1192
|
+
.,.,
|
1193
|
+
|
1194
|
+
module_eval(<<'.,.,', 'parser.y', 150)
|
1195
|
+
def _reduce_84(val, _values)
|
1196
|
+
Anchor.new(:LEX_ANC_LINE_END, val[0])
|
1197
|
+
end
|
1198
|
+
.,.,
|
1199
|
+
|
1200
|
+
module_eval(<<'.,.,', 'parser.y', 151)
|
1201
|
+
def _reduce_85(val, _values)
|
1202
|
+
Anchor.new(:LEX_ANC_WORD_BOUND, val[0])
|
1203
|
+
end
|
1204
|
+
.,.,
|
1205
|
+
|
1206
|
+
module_eval(<<'.,.,', 'parser.y', 152)
|
1207
|
+
def _reduce_86(val, _values)
|
1208
|
+
Anchor.new(:LEX_ANC_WORD_UNBOUND, val[0])
|
1209
|
+
end
|
1210
|
+
.,.,
|
1211
|
+
|
1212
|
+
module_eval(<<'.,.,', 'parser.y', 153)
|
1213
|
+
def _reduce_87(val, _values)
|
1214
|
+
Anchor.new(:LEX_ANC_STRING_BEGIN, val[0])
|
1215
|
+
end
|
1216
|
+
.,.,
|
1217
|
+
|
1218
|
+
module_eval(<<'.,.,', 'parser.y', 154)
|
1219
|
+
def _reduce_88(val, _values)
|
1220
|
+
Anchor.new(:LEX_ANC_STRING_END, val[0])
|
1221
|
+
end
|
1222
|
+
.,.,
|
1223
|
+
|
1224
|
+
module_eval(<<'.,.,', 'parser.y', 155)
|
1225
|
+
def _reduce_89(val, _values)
|
1226
|
+
Anchor.new(:LEX_ANC_STRING_END2, val[0])
|
1227
|
+
end
|
1228
|
+
.,.,
|
1229
|
+
|
1230
|
+
module_eval(<<'.,.,', 'parser.y', 156)
|
1231
|
+
def _reduce_90(val, _values)
|
1232
|
+
Anchor.new(:LEX_ANC_LOOK_BEHIND2, val[0])
|
1233
|
+
end
|
1234
|
+
.,.,
|
1235
|
+
|
1236
|
+
module_eval(<<'.,.,', 'parser.y', 157)
|
1237
|
+
def _reduce_91(val, _values)
|
1238
|
+
Anchor.new(:LEX_ANC_MATCH_START, val[0])
|
1239
|
+
end
|
1240
|
+
.,.,
|
1241
|
+
|
1242
|
+
module_eval(<<'.,.,', 'parser.y', 158)
|
1243
|
+
def _reduce_92(val, _values)
|
1244
|
+
TLetter.new(:LEX_SPECIAL_LETTER, val[0])
|
1245
|
+
end
|
1246
|
+
.,.,
|
1247
|
+
|
1248
|
+
module_eval(<<'.,.,', 'parser.y', 159)
|
1249
|
+
def _reduce_93(val, _values)
|
1250
|
+
TLetter.new(:LEX_CHAR, val[0])
|
1251
|
+
end
|
1252
|
+
.,.,
|
1253
|
+
|
1254
|
+
module_eval(<<'.,.,', 'parser.y', 160)
|
1255
|
+
def _reduce_94(val, _values)
|
1256
|
+
TLetter.new(:LEX_AND_AND, val[0])
|
1257
|
+
end
|
1258
|
+
.,.,
|
1259
|
+
|
1260
|
+
module_eval(<<'.,.,', 'parser.y', 161)
|
1261
|
+
def _reduce_95(val, _values)
|
1262
|
+
TEmpty.new
|
1263
|
+
end
|
1264
|
+
.,.,
|
1265
|
+
|
1266
|
+
module_eval(<<'.,.,', 'parser.y', 162)
|
1267
|
+
def _reduce_96(val, _values)
|
1268
|
+
TEmpty.new
|
1269
|
+
end
|
1270
|
+
.,.,
|
1271
|
+
|
1272
|
+
module_eval(<<'.,.,', 'parser.y', 163)
|
1273
|
+
def _reduce_97(val, _values)
|
1274
|
+
TLetter.new(:LEX_SIMPLE_ESCAPE, val[0])
|
1275
|
+
end
|
1276
|
+
.,.,
|
1277
|
+
|
1278
|
+
module_eval(<<'.,.,', 'parser.y', 164)
|
1279
|
+
def _reduce_98(val, _values)
|
1280
|
+
TLetter.new(:LEX_ANY_LETTER, val[0])
|
1281
|
+
end
|
1282
|
+
.,.,
|
1283
|
+
|
1284
|
+
module_eval(<<'.,.,', 'parser.y', 165)
|
1285
|
+
def _reduce_99(val, _values)
|
1286
|
+
TEmpty.new
|
1287
|
+
end
|
1288
|
+
.,.,
|
1289
|
+
|
1290
|
+
# reduce 100 omitted
|
1291
|
+
|
1292
|
+
# reduce 101 omitted
|
1293
|
+
|
1294
|
+
# reduce 102 omitted
|
1295
|
+
|
1296
|
+
# reduce 103 omitted
|
1297
|
+
|
1298
|
+
# reduce 104 omitted
|
1299
|
+
|
1300
|
+
# reduce 105 omitted
|
1301
|
+
|
1302
|
+
# reduce 106 omitted
|
1303
|
+
|
1304
|
+
# reduce 107 omitted
|
1305
|
+
|
1306
|
+
# reduce 108 omitted
|
1307
|
+
|
1308
|
+
# reduce 109 omitted
|
1309
|
+
|
1310
|
+
# reduce 110 omitted
|
1311
|
+
|
1312
|
+
# reduce 111 omitted
|
1313
|
+
|
1314
|
+
# reduce 112 omitted
|
1315
|
+
|
1316
|
+
# reduce 113 omitted
|
1317
|
+
|
1318
|
+
# reduce 114 omitted
|
1319
|
+
|
1320
|
+
# reduce 115 omitted
|
1321
|
+
|
1322
|
+
# reduce 116 omitted
|
1323
|
+
|
1324
|
+
# reduce 117 omitted
|
1325
|
+
|
1326
|
+
# reduce 118 omitted
|
1327
|
+
|
1328
|
+
# reduce 119 omitted
|
1329
|
+
|
1330
|
+
# reduce 120 omitted
|
1331
|
+
|
1332
|
+
# reduce 121 omitted
|
1333
|
+
|
1334
|
+
# reduce 122 omitted
|
1335
|
+
|
1336
|
+
# reduce 123 omitted
|
1337
|
+
|
1338
|
+
# reduce 124 omitted
|
1339
|
+
|
1340
|
+
# reduce 125 omitted
|
1341
|
+
|
1342
|
+
# reduce 126 omitted
|
1343
|
+
|
1344
|
+
# reduce 127 omitted
|
1345
|
+
|
1346
|
+
# reduce 128 omitted
|
1347
|
+
|
1348
|
+
# reduce 129 omitted
|
1349
|
+
|
1350
|
+
# reduce 130 omitted
|
1351
|
+
|
1352
|
+
# reduce 131 omitted
|
1353
|
+
|
1354
|
+
# reduce 132 omitted
|
1355
|
+
|
1356
|
+
# reduce 133 omitted
|
1357
|
+
|
1358
|
+
# reduce 134 omitted
|
1359
|
+
|
1360
|
+
# reduce 135 omitted
|
1361
|
+
|
1362
|
+
def _reduce_none(val, _values)
|
1363
|
+
val[0]
|
1364
|
+
end
|
1365
|
+
|
1366
|
+
end # class RegextestFrontParser
|