# line 1 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
# line 677 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
# THIS IS A GENERATED FILE, DO NOT EDIT DIRECTLY
# This file was generated from lib/regexp_parser/scanner/scanner.rl
module Regexp::Scanner
# line 13 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner.rb"
class << self
attr_accessor :_re_scanner_trans_keys
private :_re_scanner_trans_keys, :_re_scanner_trans_keys=
end
self._re_scanner_trans_keys = [
0, 0, -128, -65, -128, -65,
-128, -65, -128, -65, -128,
-65, -128, -65, 33, 120,
41, 41, 41, 41, 39, 122,
33, 122, 48, 122, 39,
60, 39, 122, 48, 57,
39, 57, 48, 57, 39, 57,
39, 122, 43, 122, 48,
57, 48, 62, 48, 57,
43, 62, 43, 122, 44, 125,
48, 125, 123, 123, 9,
122, 9, 125, 9, 125,
9, 125, 9, 125, 49, 54,
46, 46, 49, 49, 125,
125, 46, 46, 48, 49,
46, 46, 48, 50, 46, 46,
48, 48, 9, 122, -128,
-65, -128, -65, -128, -65,
-128, -65, -128, -65, -128, -65,
48, 122, 45, 122, 45,
122, 93, 93, 94, 120,
97, 120, 108, 115, 110, 112,
117, 117, 109, 109, 58,
58, 93, 93, 104, 104,
97, 97, 99, 99, 105, 105,
105, 105, 108, 108, 97,
97, 110, 110, 107, 107,
110, 110, 116, 116, 114, 114,
108, 108, 105, 105, 103,
103, 105, 105, 116, 116,
114, 114, 97, 97, 112, 112,
104, 104, 111, 111, 119,
119, 101, 101, 114, 114,
114, 117, 105, 105, 110, 110,
110, 110, 99, 99, 112,
112, 97, 97, 99, 99,
101, 101, 112, 112, 112, 112,
111, 111, 114, 114, 100,
100, 100, 100, 65, 122,
61, 61, 93, 93, -128, -65,
-128, -65, -128, -65, -128,
-65, -128, -65, -128, -65,
92, 92, 120, 120, 48, 102,
45, 45, 45, 45, 67,
99, 45, 45, 48, 123,
48, 102, 48, 102, 48, 102,
48, 102, 48, 102, 48,
102, 48, 102, 9, 125,
48, 125, 48, 123, 9, 125,
9, 125, -128, 127, -62,
-33, -32, -17, -16, -12,
1, 127, 32, 126, 63, 63,
43, 63, 43, 63, 43,
63, 65, 122, 43, 63,
80, 112, -62, 127, -128, -65,
-62, -33, -128, -65, -32,
-17, -128, -65, -16, -12,
1, 127, 38, 38, 93, 93,
45, 45, 46, 61, -62,
127, -62, -33, -32, -17,
-16, -12, 1, 127, 32, 126,
32, 126, 32, 126, 48,
102, 32, 126, 36, 125,
48, 55, 48, 55, 92, 92,
48, 102, 125, 125, 125,
125, 125, 125, 125, 125,
125, 125, 125, 125, 125, 125,
125, 125, 9, 125, 9,
125, 9, 125, 9, 125,
9, 125, 9, 125, 9, 125,
9, 32, 9, 125, 48,
125, 48, 125, 48, 125,
48, 125, 48, 125, 48, 125,
48, 125, 125, 125, 0
]
class << self
attr_accessor :_re_scanner_key_spans
private :_re_scanner_key_spans, :_re_scanner_key_spans=
end
self._re_scanner_key_spans = [
0, 64, 64, 64, 64, 64, 64, 88,
1, 1, 84, 90, 75, 22, 84, 10,
19, 10, 19, 84, 80, 10, 15, 10,
20, 80, 82, 78, 1, 114, 117, 117,
117, 117, 6, 1, 1, 1, 1, 2,
1, 3, 1, 1, 114, 64, 64, 64,
64, 64, 64, 75, 78, 78, 1, 27,
24, 8, 3, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
4, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 58,
1, 1, 64, 64, 64, 64, 64, 64,
1, 1, 55, 1, 1, 33, 1, 76,
55, 55, 55, 55, 55, 55, 55, 117,
78, 76, 117, 117, 256, 30, 16, 5,
127, 95, 1, 21, 21, 21, 58, 21,
33, 190, 64, 30, 64, 16, 64, 5,
127, 1, 1, 1, 16, 190, 30, 16,
5, 127, 95, 95, 95, 55, 95, 90,
8, 8, 1, 55, 1, 1, 1, 1,
1, 1, 1, 1, 117, 117, 117, 117,
117, 117, 117, 24, 117, 78, 78, 78,
78, 78, 78, 78, 1
]
class << self
attr_accessor :_re_scanner_index_offsets
private :_re_scanner_index_offsets, :_re_scanner_index_offsets=
end
self._re_scanner_index_offsets = [
0, 0, 65, 130, 195, 260, 325, 390,
479, 481, 483, 568, 659, 735, 758, 843,
854, 874, 885, 905, 990, 1071, 1082, 1098,
1109, 1130, 1211, 1294, 1373, 1375, 1490, 1608,
1726, 1844, 1962, 1969, 1971, 1973, 1975, 1977,
1980, 1982, 1986, 1988, 1990, 2105, 2170, 2235,
2300, 2365, 2430, 2495, 2571, 2650, 2729, 2731,
2759, 2784, 2793, 2797, 2799, 2801, 2803, 2805,
2807, 2809, 2811, 2813, 2815, 2817, 2819, 2821,
2823, 2825, 2827, 2829, 2831, 2833, 2835, 2837,
2839, 2841, 2843, 2845, 2847, 2849, 2851, 2853,
2855, 2860, 2862, 2864, 2866, 2868, 2870, 2872,
2874, 2876, 2878, 2880, 2882, 2884, 2886, 2888,
2947, 2949, 2951, 3016, 3081, 3146, 3211, 3276,
3341, 3343, 3345, 3401, 3403, 3405, 3439, 3441,
3518, 3574, 3630, 3686, 3742, 3798, 3854, 3910,
4028, 4107, 4184, 4302, 4420, 4677, 4708, 4725,
4731, 4859, 4955, 4957, 4979, 5001, 5023, 5082,
5104, 5138, 5329, 5394, 5425, 5490, 5507, 5572,
5578, 5706, 5708, 5710, 5712, 5729, 5920, 5951,
5968, 5974, 6102, 6198, 6294, 6390, 6446, 6542,
6633, 6642, 6651, 6653, 6709, 6711, 6713, 6715,
6717, 6719, 6721, 6723, 6725, 6843, 6961, 7079,
7197, 7315, 7433, 7551, 7576, 7694, 7773, 7852,
7931, 8010, 8089, 8168, 8247
]
class << self
attr_accessor :_re_scanner_indicies
private :_re_scanner_indicies, :_re_scanner_indicies=
end
self._re_scanner_indicies = [
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1,
0, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2,
2, 0, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 0, 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, 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, 4,
4, 4, 4, 4, 4, 4, 4, 4,
4, 4, 4, 0, 5, 5, 5, 5,
5, 5, 5, 5, 5, 5, 5, 5,
5, 5, 5, 5, 5, 5, 5, 5,
5, 5, 5, 5, 5, 5, 5, 5,
5, 5, 5, 5, 5, 5, 5, 5,
5, 5, 5, 5, 5, 5, 5, 5,
5, 5, 5, 5, 5, 5, 5, 5,
5, 5, 5, 5, 5, 5, 5, 5,
5, 5, 5, 5, 0, 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, 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, 6, 6, 6, 6, 6, 6, 6,
6, 6, 6, 6, 6, 0, 8, 7,
9, 7, 7, 7, 10, 7, 7, 7,
7, 7, 11, 7, 7, 7, 7, 7,
7, 7, 7, 7, 7, 7, 7, 12,
7, 13, 8, 12, 7, 7, 7, 7,
7, 7, 7, 7, 7, 7, 7, 7,
7, 7, 7, 7, 7, 7, 7, 7,
7, 7, 7, 7, 7, 7, 7, 7,
7, 7, 7, 7, 7, 7, 7, 7,
7, 7, 7, 7, 7, 7, 11, 7,
7, 7, 11, 7, 7, 7, 7, 7,
7, 7, 7, 7, 7, 11, 7, 7,
14, 15, 14, 12, 7, 7, 7, 7,
7, 7, 7, 7, 10, 10, 10, 10,
10, 10, 10, 10, 10, 10, 7, 7,
7, 7, 7, 7, 7, 10, 10, 10,
10, 10, 10, 10, 10, 10, 10, 10,
10, 10, 10, 10, 10, 10, 10, 10,
10, 10, 10, 10, 10, 10, 10, 7,
7, 7, 7, 7, 7, 10, 10, 10,
10, 10, 10, 10, 10, 10, 10, 10,
10, 10, 10, 10, 10, 10, 10, 10,
10, 10, 10, 10, 10, 10, 10, 7,
8, 7, 7, 7, 7, 7, 7, 7,
7, 7, 7, 7, 7, 7, 7, 16,
16, 16, 16, 16, 16, 16, 16, 16,
16, 7, 7, 7, 8, 12, 7, 7,
16, 16, 16, 16, 16, 16, 16, 16,
16, 16, 16, 16, 16, 16, 16, 16,
16, 16, 16, 16, 16, 16, 16, 16,
16, 16, 7, 7, 7, 7, 7, 7,
16, 16, 16, 16, 16, 16, 16, 16,
16, 16, 16, 16, 16, 16, 16, 16,
16, 16, 16, 16, 16, 16, 16, 16,
16, 16, 7, 16, 16, 16, 16, 16,
16, 16, 16, 16, 16, 7, 7, 7,
7, 12, 7, 7, 16, 16, 16, 16,
16, 16, 16, 16, 16, 16, 16, 16,
16, 16, 16, 16, 16, 16, 16, 16,
16, 16, 16, 16, 16, 16, 7, 7,
7, 7, 7, 7, 16, 16, 16, 16,
16, 16, 16, 16, 16, 16, 16, 16,
16, 16, 16, 16, 16, 16, 16, 16,
16, 16, 16, 16, 16, 16, 7, 18,
17, 17, 17, 17, 17, 17, 17, 17,
17, 17, 17, 17, 17, 17, 17, 17,
17, 17, 17, 17, 19, 17, 20, 17,
17, 17, 21, 17, 22, 17, 17, 23,
23, 23, 23, 23, 23, 23, 23, 23,
23, 17, 17, 17, 17, 17, 17, 17,
23, 23, 23, 23, 23, 23, 23, 23,
23, 23, 23, 23, 23, 23, 23, 23,
23, 23, 23, 23, 23, 23, 23, 23,
23, 23, 17, 17, 17, 17, 17, 17,
23, 23, 23, 23, 23, 23, 23, 23,
23, 23, 23, 23, 23, 23, 23, 23,
23, 23, 23, 23, 23, 23, 23, 23,
23, 23, 17, 24, 24, 24, 24, 24,
24, 24, 24, 24, 24, 17, 20, 17,
17, 17, 17, 17, 17, 17, 17, 24,
24, 24, 24, 24, 24, 24, 24, 24,
24, 17, 24, 25, 25, 25, 25, 25,
25, 25, 25, 25, 17, 20, 17, 17,
17, 21, 17, 21, 17, 17, 25, 25,
25, 25, 25, 25, 25, 25, 25, 25,
17, 20, 17, 17, 17, 21, 17, 21,
17, 17, 23, 23, 23, 23, 23, 23,
23, 23, 23, 23, 17, 17, 17, 17,
17, 17, 17, 23, 23, 23, 23, 23,
23, 23, 23, 23, 23, 23, 23, 23,
23, 23, 23, 23, 23, 23, 23, 23,
23, 23, 23, 23, 23, 17, 17, 17,
17, 17, 17, 23, 23, 23, 23, 23,
23, 23, 23, 23, 23, 23, 23, 23,
23, 23, 23, 23, 23, 23, 23, 23,
23, 23, 23, 23, 23, 17, 26, 17,
27, 17, 17, 28, 28, 28, 28, 28,
28, 28, 28, 28, 28, 17, 17, 17,
17, 20, 17, 17, 28, 28, 28, 28,
28, 28, 28, 28, 28, 28, 28, 28,
28, 28, 28, 28, 28, 28, 28, 28,
28, 28, 28, 28, 28, 28, 17, 17,
17, 17, 17, 17, 28, 28, 28, 28,
28, 28, 28, 28, 28, 28, 28, 28,
28, 28, 28, 28, 28, 28, 28, 28,
28, 28, 28, 28, 28, 28, 17, 29,
29, 29, 29, 29, 29, 29, 29, 29,
29, 17, 29, 29, 29, 29, 29, 29,
29, 29, 29, 29, 17, 17, 17, 17,
20, 17, 29, 30, 30, 30, 30, 30,
30, 30, 30, 30, 17, 26, 17, 26,
17, 17, 30, 30, 30, 30, 30, 30,
30, 30, 30, 30, 17, 17, 17, 17,
20, 17, 26, 17, 26, 17, 17, 28,
28, 28, 28, 28, 28, 28, 28, 28,
28, 17, 17, 17, 17, 20, 17, 17,
28, 28, 28, 28, 28, 28, 28, 28,
28, 28, 28, 28, 28, 28, 28, 28,
28, 28, 28, 28, 28, 28, 28, 28,
28, 28, 17, 17, 17, 17, 17, 17,
28, 28, 28, 28, 28, 28, 28, 28,
28, 28, 28, 28, 28, 28, 28, 28,
28, 28, 28, 28, 28, 28, 28, 28,
28, 28, 17, 32, 31, 31, 31, 33,
33, 33, 33, 33, 33, 33, 33, 33,
33, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 34, 31, 32, 32,
32, 32, 32, 32, 32, 32, 32, 32,
31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 34, 31, 35, 36, 37,
37, 37, 37, 37, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 37, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 38,
37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37,
37, 36, 36, 36, 39, 37, 36, 38,
37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37,
37, 36, 37, 37, 37, 37, 37, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 37, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 36, 36, 36, 36,
37, 36, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 36, 36, 40, 36,
37, 37, 37, 37, 37, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 37,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
37, 37, 37, 37, 37, 37, 41, 37,
37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 36, 36, 36, 36, 37, 36,
37, 37, 37, 37, 37, 37, 41, 37,
37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 36, 36, 40, 36, 37, 37,
37, 37, 37, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 37, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 37, 37,
37, 37, 42, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37,
36, 36, 36, 36, 37, 36, 37, 37,
37, 37, 42, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37,
36, 36, 40, 36, 37, 37, 37, 37,
37, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 37, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
43, 36, 36, 36, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 36, 36,
36, 36, 37, 36, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 36, 36,
40, 36, 44, 45, 46, 45, 46, 47,
36, 48, 36, 49, 36, 40, 36, 50,
36, 49, 49, 36, 51, 36, 49, 49,
49, 36, 52, 36, 49, 36, 37, 37,
37, 37, 37, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 37, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 38, 37,
37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37,
36, 36, 36, 36, 37, 36, 38, 37,
37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37,
36, 54, 54, 54, 54, 54, 54, 54,
54, 54, 54, 54, 54, 54, 54, 54,
54, 54, 54, 54, 54, 54, 54, 54,
54, 54, 54, 54, 54, 54, 54, 54,
54, 54, 54, 54, 54, 54, 54, 54,
54, 54, 54, 54, 54, 54, 54, 54,
54, 54, 54, 54, 54, 54, 54, 54,
54, 54, 54, 54, 54, 54, 54, 54,
54, 53, 55, 55, 55, 55, 55, 55,
55, 55, 55, 55, 55, 55, 55, 55,
55, 55, 55, 55, 55, 55, 55, 55,
55, 55, 55, 55, 55, 55, 55, 55,
55, 55, 55, 55, 55, 55, 55, 55,
55, 55, 55, 55, 55, 55, 55, 55,
55, 55, 55, 55, 55, 55, 55, 55,
55, 55, 55, 55, 55, 55, 55, 55,
55, 55, 53, 56, 56, 56, 56, 56,
56, 56, 56, 56, 56, 56, 56, 56,
56, 56, 56, 56, 56, 56, 56, 56,
56, 56, 56, 56, 56, 56, 56, 56,
56, 56, 56, 56, 56, 56, 56, 56,
56, 56, 56, 56, 56, 56, 56, 56,
56, 56, 56, 56, 56, 56, 56, 56,
56, 56, 56, 56, 56, 56, 56, 56,
56, 56, 56, 53, 57, 57, 57, 57,
57, 57, 57, 57, 57, 57, 57, 57,
57, 57, 57, 57, 57, 57, 57, 57,
57, 57, 57, 57, 57, 57, 57, 57,
57, 57, 57, 57, 57, 57, 57, 57,
57, 57, 57, 57, 57, 57, 57, 57,
57, 57, 57, 57, 57, 57, 57, 57,
57, 57, 57, 57, 57, 57, 57, 57,
57, 57, 57, 57, 53, 58, 58, 58,
58, 58, 58, 58, 58, 58, 58, 58,
58, 58, 58, 58, 58, 58, 58, 58,
58, 58, 58, 58, 58, 58, 58, 58,
58, 58, 58, 58, 58, 58, 58, 58,
58, 58, 58, 58, 58, 58, 58, 58,
58, 58, 58, 58, 58, 58, 58, 58,
58, 58, 58, 58, 58, 58, 58, 58,
58, 58, 58, 58, 58, 53, 59, 59,
59, 59, 59, 59, 59, 59, 59, 59,
59, 59, 59, 59, 59, 59, 59, 59,
59, 59, 59, 59, 59, 59, 59, 59,
59, 59, 59, 59, 59, 59, 59, 59,
59, 59, 59, 59, 59, 59, 59, 59,
59, 59, 59, 59, 59, 59, 59, 59,
59, 59, 59, 59, 59, 59, 59, 59,
59, 59, 59, 59, 59, 59, 53, 60,
60, 60, 60, 60, 60, 60, 60, 60,
60, 53, 53, 53, 53, 53, 53, 53,
60, 60, 60, 60, 60, 60, 60, 60,
60, 60, 60, 60, 60, 60, 60, 60,
60, 60, 60, 60, 60, 60, 60, 60,
60, 60, 53, 53, 53, 53, 53, 53,
60, 60, 60, 60, 60, 60, 60, 60,
60, 60, 60, 60, 60, 60, 60, 60,
60, 60, 60, 60, 60, 60, 60, 60,
60, 60, 53, 63, 62, 62, 62, 62,
62, 62, 62, 62, 62, 62, 62, 62,
62, 62, 62, 62, 62, 62, 62, 63,
63, 63, 63, 63, 63, 63, 63, 63,
63, 63, 63, 63, 63, 63, 63, 63,
63, 63, 63, 63, 63, 63, 63, 63,
63, 62, 62, 62, 62, 62, 62, 63,
63, 63, 63, 63, 63, 63, 63, 63,
63, 63, 63, 63, 63, 63, 63, 63,
63, 63, 63, 63, 63, 63, 63, 63,
63, 62, 63, 64, 62, 62, 62, 62,
62, 62, 62, 62, 62, 62, 62, 62,
62, 62, 62, 62, 62, 62, 63, 63,
63, 63, 63, 63, 63, 63, 63, 63,
63, 63, 63, 63, 63, 63, 63, 63,
63, 63, 63, 63, 63, 63, 63, 63,
62, 62, 62, 62, 62, 62, 63, 63,
63, 63, 63, 63, 63, 63, 63, 63,
63, 63, 63, 63, 63, 63, 63, 63,
63, 63, 63, 63, 63, 63, 63, 63,
62, 65, 62, 66, 62, 62, 67, 68,
69, 70, 62, 62, 71, 62, 62, 62,
62, 72, 62, 62, 62, 73, 62, 62,
74, 62, 75, 62, 76, 77, 62, 67,
68, 69, 70, 62, 62, 71, 62, 62,
62, 62, 72, 62, 62, 62, 73, 62,
62, 74, 62, 75, 62, 76, 77, 62,
78, 62, 62, 62, 62, 62, 62, 79,
62, 80, 62, 81, 62, 82, 62, 83,
62, 84, 62, 85, 62, 86, 62, 83,
62, 87, 62, 88, 62, 83, 62, 89,
62, 90, 62, 91, 62, 83, 62, 92,
62, 93, 62, 94, 62, 83, 62, 95,
62, 96, 62, 97, 62, 83, 62, 98,
62, 99, 62, 100, 62, 83, 62, 101,
62, 102, 62, 103, 62, 83, 62, 104,
62, 62, 105, 62, 106, 62, 97, 62,
107, 62, 97, 62, 108, 62, 109, 62,
110, 62, 83, 62, 111, 62, 102, 62,
112, 62, 113, 62, 83, 62, 70, 62,
114, 114, 114, 114, 114, 114, 114, 114,
114, 114, 114, 114, 114, 114, 114, 114,
114, 114, 114, 114, 114, 114, 114, 114,
114, 114, 62, 62, 62, 62, 62, 62,
114, 114, 114, 114, 114, 114, 114, 114,
114, 114, 114, 114, 114, 114, 114, 114,
114, 114, 114, 114, 114, 114, 114, 114,
114, 114, 62, 115, 62, 116, 62, 118,
118, 118, 118, 118, 118, 118, 118, 118,
118, 118, 118, 118, 118, 118, 118, 118,
118, 118, 118, 118, 118, 118, 118, 118,
118, 118, 118, 118, 118, 118, 118, 118,
118, 118, 118, 118, 118, 118, 118, 118,
118, 118, 118, 118, 118, 118, 118, 118,
118, 118, 118, 118, 118, 118, 118, 118,
118, 118, 118, 118, 118, 118, 118, 117,
119, 119, 119, 119, 119, 119, 119, 119,
119, 119, 119, 119, 119, 119, 119, 119,
119, 119, 119, 119, 119, 119, 119, 119,
119, 119, 119, 119, 119, 119, 119, 119,
119, 119, 119, 119, 119, 119, 119, 119,
119, 119, 119, 119, 119, 119, 119, 119,
119, 119, 119, 119, 119, 119, 119, 119,
119, 119, 119, 119, 119, 119, 119, 119,
117, 120, 120, 120, 120, 120, 120, 120,
120, 120, 120, 120, 120, 120, 120, 120,
120, 120, 120, 120, 120, 120, 120, 120,
120, 120, 120, 120, 120, 120, 120, 120,
120, 120, 120, 120, 120, 120, 120, 120,
120, 120, 120, 120, 120, 120, 120, 120,
120, 120, 120, 120, 120, 120, 120, 120,
120, 120, 120, 120, 120, 120, 120, 120,
120, 117, 121, 121, 121, 121, 121, 121,
121, 121, 121, 121, 121, 121, 121, 121,
121, 121, 121, 121, 121, 121, 121, 121,
121, 121, 121, 121, 121, 121, 121, 121,
121, 121, 121, 121, 121, 121, 121, 121,
121, 121, 121, 121, 121, 121, 121, 121,
121, 121, 121, 121, 121, 121, 121, 121,
121, 121, 121, 121, 121, 121, 121, 121,
121, 121, 117, 122, 122, 122, 122, 122,
122, 122, 122, 122, 122, 122, 122, 122,
122, 122, 122, 122, 122, 122, 122, 122,
122, 122, 122, 122, 122, 122, 122, 122,
122, 122, 122, 122, 122, 122, 122, 122,
122, 122, 122, 122, 122, 122, 122, 122,
122, 122, 122, 122, 122, 122, 122, 122,
122, 122, 122, 122, 122, 122, 122, 122,
122, 122, 122, 117, 123, 123, 123, 123,
123, 123, 123, 123, 123, 123, 123, 123,
123, 123, 123, 123, 123, 123, 123, 123,
123, 123, 123, 123, 123, 123, 123, 123,
123, 123, 123, 123, 123, 123, 123, 123,
123, 123, 123, 123, 123, 123, 123, 123,
123, 123, 123, 123, 123, 123, 123, 123,
123, 123, 123, 123, 123, 123, 123, 123,
123, 123, 123, 123, 117, 125, 124, 126,
124, 127, 127, 127, 127, 127, 127, 127,
127, 127, 127, 124, 124, 124, 124, 124,
124, 124, 127, 127, 127, 127, 127, 127,
124, 124, 124, 124, 124, 124, 124, 124,
124, 124, 124, 124, 124, 124, 124, 124,
124, 124, 124, 124, 124, 124, 124, 124,
124, 124, 127, 127, 127, 127, 127, 127,
124, 128, 36, 129, 36, 132, 131, 131,
131, 131, 131, 131, 131, 131, 131, 131,
131, 131, 131, 131, 131, 131, 131, 131,
131, 131, 131, 131, 131, 131, 131, 131,
131, 131, 131, 131, 131, 133, 131, 133,
131, 134, 134, 134, 134, 134, 134, 134,
134, 134, 134, 36, 36, 36, 36, 36,
36, 36, 134, 134, 134, 134, 134, 134,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 134, 134, 134, 134, 134, 134,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 135, 36, 136, 136,
136, 136, 136, 136, 136, 136, 136, 136,
36, 36, 36, 36, 36, 36, 36, 136,
136, 136, 136, 136, 136, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 136,
136, 136, 136, 136, 136, 36, 137, 137,
137, 137, 137, 137, 137, 137, 137, 137,
36, 36, 36, 36, 36, 36, 36, 137,
137, 137, 137, 137, 137, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 137,
137, 137, 137, 137, 137, 36, 138, 138,
138, 138, 138, 138, 138, 138, 138, 138,
36, 36, 36, 36, 36, 36, 36, 138,
138, 138, 138, 138, 138, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 138,
138, 138, 138, 138, 138, 36, 139, 139,
139, 139, 139, 139, 139, 139, 139, 139,
36, 36, 36, 36, 36, 36, 36, 139,
139, 139, 139, 139, 139, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 139,
139, 139, 139, 139, 139, 36, 140, 140,
140, 140, 140, 140, 140, 140, 140, 140,
36, 36, 36, 36, 36, 36, 36, 140,
140, 140, 140, 140, 140, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 140,
140, 140, 140, 140, 140, 36, 141, 141,
141, 141, 141, 141, 141, 141, 141, 141,
36, 36, 36, 36, 36, 36, 36, 141,
141, 141, 141, 141, 141, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 141,
141, 141, 141, 141, 141, 36, 142, 142,
142, 142, 142, 142, 142, 142, 142, 142,
36, 36, 36, 36, 36, 36, 36, 142,
142, 142, 142, 142, 142, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 142,
142, 142, 142, 142, 142, 36, 143, 143,
143, 143, 143, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 143, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 139, 139, 139,
139, 139, 139, 139, 139, 139, 139, 36,
36, 36, 36, 36, 36, 36, 139, 139,
139, 139, 139, 139, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 139, 139,
139, 139, 139, 139, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 138, 36, 139, 139, 139, 139,
139, 139, 139, 139, 139, 139, 36, 36,
36, 36, 36, 36, 36, 139, 139, 139,
139, 139, 139, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 139, 139, 139,
139, 139, 139, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 138, 36, 145, 145, 145, 145, 145,
145, 145, 145, 145, 145, 144, 144, 144,
144, 144, 144, 144, 145, 145, 145, 145,
145, 145, 144, 144, 144, 144, 144, 144,
144, 144, 144, 144, 144, 144, 144, 144,
144, 144, 144, 144, 144, 144, 144, 144,
144, 144, 144, 144, 145, 145, 145, 145,
145, 145, 144, 144, 144, 144, 144, 144,
144, 144, 144, 144, 144, 144, 144, 144,
144, 144, 144, 144, 144, 144, 146, 144,
148, 148, 148, 148, 148, 147, 147, 147,
147, 147, 147, 147, 147, 147, 147, 147,
147, 147, 147, 147, 147, 147, 147, 148,
147, 147, 147, 147, 147, 147, 147, 147,
147, 147, 147, 147, 147, 147, 147, 149,
149, 149, 149, 149, 149, 149, 149, 149,
149, 147, 147, 147, 147, 147, 147, 147,
149, 149, 149, 149, 149, 149, 147, 147,
147, 147, 147, 147, 147, 147, 147, 147,
147, 147, 147, 147, 147, 147, 147, 147,
147, 147, 147, 147, 147, 147, 147, 147,
149, 149, 149, 149, 149, 149, 147, 147,
147, 147, 147, 147, 147, 147, 147, 147,
147, 147, 147, 147, 147, 147, 147, 147,
147, 147, 147, 147, 150, 147, 152, 152,
152, 152, 152, 151, 151, 151, 151, 151,
151, 151, 151, 151, 151, 151, 151, 151,
151, 151, 151, 151, 151, 152, 151, 151,
151, 151, 151, 151, 151, 151, 151, 151,
151, 151, 151, 151, 151, 151, 151, 151,
151, 151, 151, 151, 151, 151, 151, 151,
151, 151, 151, 151, 151, 151, 151, 151,
151, 151, 151, 151, 151, 151, 151, 151,
151, 151, 151, 151, 151, 151, 151, 151,
151, 151, 151, 151, 151, 151, 151, 151,
151, 151, 151, 151, 151, 151, 151, 151,
151, 151, 151, 151, 151, 151, 151, 151,
151, 151, 151, 151, 151, 151, 151, 151,
151, 151, 151, 151, 151, 151, 151, 151,
151, 151, 150, 151, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 31, 153, 153,
153, 153, 153, 153, 153, 153, 153, 153,
153, 153, 153, 153, 153, 153, 153, 153,
153, 153, 153, 153, 153, 153, 153, 153,
153, 153, 153, 153, 154, 154, 154, 154,
154, 154, 154, 154, 154, 154, 154, 154,
154, 154, 154, 154, 155, 155, 155, 155,
155, 31, 31, 31, 31, 31, 31, 31,
31, 31, 31, 31, 31, 156, 156, 156,
156, 156, 156, 156, 156, 156, 156, 156,
156, 156, 156, 156, 156, 156, 156, 156,
156, 156, 156, 156, 156, 156, 156, 156,
156, 156, 156, 156, 157, 157, 157, 157,
158, 157, 157, 157, 159, 160, 161, 162,
157, 157, 163, 157, 157, 157, 157, 157,
157, 157, 157, 157, 157, 157, 157, 157,
157, 157, 157, 164, 157, 157, 157, 157,
157, 157, 157, 157, 157, 157, 157, 157,
157, 157, 157, 157, 157, 157, 157, 157,
157, 157, 157, 157, 157, 157, 157, 165,
166, 31, 167, 157, 157, 157, 157, 157,
157, 157, 157, 157, 157, 157, 157, 157,
157, 157, 157, 157, 157, 157, 157, 157,
157, 157, 157, 157, 157, 157, 157, 33,
168, 31, 157, 156, 157, 153, 153, 153,
153, 153, 153, 153, 153, 153, 153, 153,
153, 153, 153, 153, 153, 153, 153, 153,
153, 153, 153, 153, 153, 153, 153, 153,
153, 153, 153, 169, 154, 154, 154, 154,
154, 154, 154, 154, 154, 154, 154, 154,
154, 154, 154, 154, 169, 155, 155, 155,
155, 155, 169, 156, 156, 156, 156, 156,
156, 156, 156, 156, 156, 156, 156, 156,
156, 156, 156, 156, 156, 156, 156, 156,
156, 156, 156, 156, 156, 156, 156, 156,
156, 156, 169, 169, 169, 169, 169, 169,
169, 169, 169, 169, 169, 169, 169, 169,
169, 169, 169, 169, 169, 169, 169, 169,
169, 169, 169, 169, 169, 169, 169, 169,
169, 169, 169, 169, 169, 169, 169, 169,
169, 169, 169, 169, 169, 169, 169, 169,
169, 169, 169, 169, 169, 169, 169, 169,
169, 169, 169, 169, 169, 169, 169, 169,
169, 169, 169, 169, 169, 169, 169, 169,
169, 169, 169, 169, 169, 169, 169, 169,
169, 169, 169, 169, 169, 169, 169, 169,
169, 169, 169, 169, 169, 169, 169, 169,
169, 156, 169, 157, 157, 157, 157, 169,
157, 157, 157, 169, 169, 169, 169, 157,
157, 169, 157, 157, 157, 157, 157, 157,
157, 157, 157, 157, 157, 157, 157, 157,
157, 157, 169, 157, 157, 157, 157, 157,
157, 157, 157, 157, 157, 157, 157, 157,
157, 157, 157, 157, 157, 157, 157, 157,
157, 157, 157, 157, 157, 157, 169, 169,
169, 169, 157, 157, 157, 157, 157, 157,
157, 157, 157, 157, 157, 157, 157, 157,
157, 157, 157, 157, 157, 157, 157, 157,
157, 157, 157, 157, 157, 157, 169, 169,
169, 157, 169, 171, 170, 173, 172, 172,
172, 172, 172, 172, 172, 172, 172, 172,
172, 172, 172, 172, 172, 172, 172, 172,
172, 173, 172, 175, 174, 174, 174, 174,
174, 174, 174, 174, 174, 174, 174, 174,
174, 174, 174, 174, 174, 174, 174, 175,
174, 177, 176, 176, 176, 176, 176, 176,
176, 176, 176, 176, 176, 176, 176, 176,
176, 176, 176, 176, 176, 177, 176, 179,
179, 178, 180, 178, 178, 179, 180, 178,
178, 178, 178, 178, 178, 178, 178, 178,
178, 180, 178, 178, 178, 180, 178, 178,
179, 178, 178, 178, 178, 178, 178, 178,
179, 178, 180, 178, 178, 181, 180, 178,
178, 181, 178, 178, 178, 178, 178, 178,
178, 180, 178, 178, 178, 180, 178, 178,
179, 178, 183, 182, 182, 182, 182, 182,
182, 182, 182, 182, 182, 182, 182, 182,
182, 182, 182, 182, 182, 182, 183, 182,
184, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
184, 36, 186, 186, 186, 186, 186, 186,
186, 186, 186, 186, 186, 186, 186, 186,
186, 186, 186, 186, 186, 186, 186, 186,
186, 186, 186, 186, 186, 186, 186, 186,
187, 187, 187, 187, 187, 187, 187, 187,
187, 187, 187, 187, 187, 187, 187, 187,
188, 188, 188, 188, 188, 185, 185, 185,
185, 185, 185, 185, 185, 185, 185, 185,
185, 189, 189, 189, 189, 189, 189, 189,
189, 189, 189, 189, 189, 189, 189, 189,
189, 189, 189, 189, 189, 189, 189, 189,
189, 189, 189, 189, 189, 189, 189, 189,
185, 185, 185, 185, 190, 185, 191, 185,
190, 190, 190, 190, 185, 192, 190, 185,
193, 193, 193, 193, 193, 193, 193, 193,
193, 193, 185, 185, 185, 185, 185, 190,
185, 193, 193, 193, 193, 193, 193, 193,
193, 193, 193, 193, 193, 193, 193, 193,
193, 193, 193, 193, 193, 193, 193, 193,
193, 193, 193, 194, 195, 196, 197, 185,
185, 193, 193, 193, 193, 193, 193, 193,
193, 193, 193, 193, 193, 193, 193, 193,
193, 193, 193, 193, 193, 193, 193, 193,
193, 193, 193, 190, 190, 190, 185, 189,
185, 54, 54, 54, 54, 54, 54, 54,
54, 54, 54, 54, 54, 54, 54, 54,
54, 54, 54, 54, 54, 54, 54, 54,
54, 54, 54, 54, 54, 54, 54, 54,
54, 54, 54, 54, 54, 54, 54, 54,
54, 54, 54, 54, 54, 54, 54, 54,
54, 54, 54, 54, 54, 54, 54, 54,
54, 54, 54, 54, 54, 54, 54, 54,
54, 198, 199, 199, 199, 199, 199, 199,
199, 199, 199, 199, 199, 199, 199, 199,
199, 199, 199, 199, 199, 199, 199, 199,
199, 199, 199, 199, 199, 199, 199, 199,
198, 56, 56, 56, 56, 56, 56, 56,
56, 56, 56, 56, 56, 56, 56, 56,
56, 56, 56, 56, 56, 56, 56, 56,
56, 56, 56, 56, 56, 56, 56, 56,
56, 56, 56, 56, 56, 56, 56, 56,
56, 56, 56, 56, 56, 56, 56, 56,
56, 56, 56, 56, 56, 56, 56, 56,
56, 56, 56, 56, 56, 56, 56, 56,
56, 198, 200, 200, 200, 200, 200, 200,
200, 200, 200, 200, 200, 200, 200, 200,
200, 200, 198, 59, 59, 59, 59, 59,
59, 59, 59, 59, 59, 59, 59, 59,
59, 59, 59, 59, 59, 59, 59, 59,
59, 59, 59, 59, 59, 59, 59, 59,
59, 59, 59, 59, 59, 59, 59, 59,
59, 59, 59, 59, 59, 59, 59, 59,
59, 59, 59, 59, 59, 59, 59, 59,
59, 59, 59, 59, 59, 59, 59, 59,
59, 59, 59, 198, 201, 201, 201, 201,
201, 198, 189, 189, 189, 189, 189, 189,
189, 189, 189, 189, 189, 189, 189, 189,
189, 189, 189, 189, 189, 189, 189, 189,
189, 189, 189, 189, 189, 189, 189, 189,
189, 198, 198, 198, 198, 198, 198, 198,
198, 198, 198, 198, 198, 198, 198, 198,
198, 198, 198, 198, 198, 198, 198, 198,
198, 198, 198, 198, 198, 198, 198, 198,
198, 198, 198, 198, 198, 198, 198, 198,
198, 198, 198, 198, 198, 198, 198, 198,
198, 198, 198, 198, 198, 198, 198, 198,
198, 198, 198, 198, 198, 198, 198, 198,
198, 198, 198, 198, 198, 198, 198, 198,
198, 198, 198, 198, 198, 198, 198, 198,
198, 198, 198, 198, 198, 198, 198, 198,
198, 198, 198, 198, 198, 198, 198, 198,
189, 198, 202, 198, 203, 198, 204, 198,
207, 206, 206, 206, 206, 206, 206, 206,
206, 206, 206, 206, 208, 206, 206, 209,
206, 210, 210, 210, 210, 210, 210, 210,
210, 210, 210, 210, 210, 210, 210, 210,
210, 210, 210, 210, 210, 210, 210, 210,
210, 210, 210, 210, 210, 210, 210, 211,
211, 211, 211, 211, 211, 211, 211, 211,
211, 211, 211, 211, 211, 211, 211, 212,
212, 212, 212, 212, 36, 36, 36, 36,
36, 36, 36, 36, 36, 36, 36, 36,
213, 213, 213, 213, 213, 213, 213, 213,
213, 213, 213, 213, 213, 213, 213, 213,
213, 213, 213, 213, 213, 213, 213, 213,
213, 213, 213, 213, 213, 213, 213, 214,
214, 214, 214, 215, 214, 214, 214, 215,
215, 215, 215, 216, 215, 215, 214, 214,
214, 214, 214, 214, 214, 214, 214, 214,
214, 214, 214, 214, 214, 214, 215, 214,
214, 214, 214, 217, 214, 214, 214, 217,
214, 214, 214, 214, 214, 214, 214, 218,
214, 214, 217, 214, 214, 214, 217, 214,
214, 214, 215, 215, 215, 215, 214, 214,
214, 219, 214, 217, 214, 214, 214, 217,
214, 214, 214, 214, 214, 214, 214, 218,
214, 214, 217, 214, 214, 214, 217, 220,
214, 214, 215, 215, 215, 214, 213, 36,
210, 210, 210, 210, 210, 210, 210, 210,
210, 210, 210, 210, 210, 210, 210, 210,
210, 210, 210, 210, 210, 210, 210, 210,
210, 210, 210, 210, 210, 210, 221, 211,
211, 211, 211, 211, 211, 211, 211, 211,
211, 211, 211, 211, 211, 211, 211, 221,
212, 212, 212, 212, 212, 221, 213, 213,
213, 213, 213, 213, 213, 213, 213, 213,
213, 213, 213, 213, 213, 213, 213, 213,
213, 213, 213, 213, 213, 213, 213, 213,
213, 213, 213, 213, 213, 221, 221, 221,
221, 221, 221, 221, 221, 221, 221, 221,
221, 221, 221, 221, 221, 221, 221, 221,
221, 221, 221, 221, 221, 221, 221, 221,
221, 221, 221, 221, 221, 221, 221, 221,
221, 221, 221, 221, 221, 221, 221, 221,
221, 221, 221, 221, 221, 221, 221, 221,
221, 221, 221, 221, 221, 221, 221, 221,
221, 221, 221, 221, 221, 221, 221, 221,
221, 221, 221, 221, 221, 221, 221, 221,
221, 221, 221, 221, 221, 221, 221, 221,
221, 221, 221, 221, 221, 221, 221, 221,
221, 221, 221, 221, 213, 221, 214, 214,
214, 214, 117, 214, 214, 214, 117, 117,
117, 117, 214, 117, 117, 214, 214, 214,
214, 214, 214, 214, 214, 214, 214, 214,
214, 214, 214, 214, 214, 117, 214, 214,
214, 214, 214, 214, 214, 214, 214, 214,
214, 214, 214, 214, 214, 214, 214, 214,
214, 214, 214, 214, 214, 214, 214, 214,
214, 117, 117, 117, 117, 214, 214, 214,
214, 214, 214, 214, 214, 214, 214, 214,
214, 214, 214, 214, 214, 214, 214, 214,
214, 214, 214, 214, 214, 214, 214, 214,
214, 117, 117, 117, 214, 117, 214, 214,
214, 214, 221, 214, 214, 214, 221, 221,
221, 221, 214, 221, 221, 214, 222, 222,
222, 222, 222, 222, 222, 222, 222, 222,
214, 214, 214, 214, 214, 221, 214, 222,
222, 222, 222, 222, 222, 214, 214, 214,
214, 214, 214, 214, 214, 214, 214, 214,
214, 214, 214, 214, 214, 214, 214, 214,
214, 221, 221, 221, 221, 214, 214, 222,
222, 222, 222, 222, 222, 214, 214, 214,
214, 214, 214, 214, 214, 214, 214, 214,
214, 214, 214, 214, 214, 214, 214, 214,
214, 221, 221, 221, 214, 221, 214, 214,
214, 214, 223, 214, 214, 214, 223, 223,
223, 223, 214, 224, 223, 214, 225, 225,
225, 225, 225, 225, 225, 225, 225, 225,
214, 214, 214, 214, 214, 223, 214, 225,
225, 225, 225, 225, 225, 214, 214, 214,
214, 214, 214, 214, 214, 214, 214, 214,
214, 214, 214, 214, 214, 214, 214, 214,
214, 223, 223, 223, 223, 214, 214, 225,
225, 225, 225, 225, 225, 214, 214, 214,
214, 214, 214, 214, 214, 214, 214, 214,
214, 214, 214, 214, 214, 214, 214, 214,
214, 223, 223, 223, 214, 223, 227, 227,
227, 227, 227, 227, 227, 227, 227, 227,
226, 226, 226, 226, 226, 226, 226, 227,
227, 227, 227, 227, 227, 226, 226, 226,
226, 226, 226, 226, 226, 226, 226, 226,
226, 226, 226, 226, 226, 226, 226, 226,
226, 226, 226, 226, 226, 226, 226, 227,
227, 227, 227, 227, 227, 226, 214, 214,
214, 214, 223, 214, 214, 214, 223, 223,
223, 223, 214, 224, 223, 214, 214, 214,
214, 214, 214, 214, 214, 214, 214, 214,
214, 214, 214, 214, 214, 223, 214, 214,
214, 214, 214, 214, 214, 214, 214, 214,
214, 214, 214, 214, 214, 214, 214, 214,
214, 214, 214, 214, 214, 214, 214, 214,
214, 223, 223, 223, 223, 214, 214, 214,
214, 214, 214, 214, 214, 214, 214, 214,
214, 214, 214, 214, 214, 214, 214, 214,
214, 214, 214, 214, 214, 214, 214, 214,
214, 223, 223, 223, 214, 223, 229, 228,
228, 228, 229, 229, 229, 229, 228, 228,
229, 228, 230, 231, 231, 231, 231, 231,
231, 231, 232, 232, 228, 228, 228, 228,
228, 229, 228, 36, 36, 233, 36, 228,
228, 36, 36, 228, 228, 228, 228, 234,
228, 228, 235, 228, 228, 36, 228, 228,
228, 36, 228, 228, 36, 229, 229, 229,
229, 228, 228, 236, 236, 128, 36, 236,
236, 36, 36, 228, 228, 36, 228, 228,
236, 228, 235, 228, 236, 236, 236, 237,
236, 36, 238, 228, 36, 229, 229, 229,
228, 240, 240, 240, 240, 240, 240, 240,
240, 239, 242, 242, 242, 242, 242, 242,
242, 242, 241, 245, 244, 248, 248, 248,
248, 248, 248, 248, 248, 248, 248, 247,
247, 247, 247, 247, 247, 247, 248, 248,
248, 248, 248, 248, 247, 247, 247, 247,
247, 247, 247, 247, 247, 247, 247, 247,
247, 247, 247, 247, 247, 247, 247, 247,
247, 247, 247, 247, 247, 247, 248, 248,
248, 248, 248, 248, 247, 249, 250, 249,
251, 249, 252, 249, 253, 249, 254, 249,
255, 249, 256, 249, 150, 257, 257, 257,
257, 257, 250, 250, 250, 250, 250, 250,
250, 250, 250, 250, 250, 250, 250, 250,
250, 250, 250, 250, 257, 250, 250, 250,
250, 250, 250, 250, 250, 250, 250, 250,
250, 250, 250, 250, 250, 250, 250, 250,
250, 250, 250, 250, 250, 250, 250, 250,
250, 250, 250, 250, 250, 250, 250, 250,
250, 250, 250, 250, 250, 250, 250, 250,
250, 250, 250, 250, 250, 250, 250, 250,
250, 250, 250, 250, 250, 250, 250, 250,
250, 250, 250, 250, 250, 250, 250, 250,
250, 250, 250, 250, 250, 250, 250, 250,
250, 250, 250, 250, 250, 250, 250, 250,
250, 250, 250, 250, 250, 250, 250, 250,
250, 150, 250, 258, 258, 258, 258, 258,
251, 251, 251, 251, 251, 251, 251, 251,
251, 251, 251, 251, 251, 251, 251, 251,
251, 251, 258, 251, 251, 251, 251, 251,
251, 251, 251, 251, 251, 251, 251, 251,
251, 251, 251, 251, 251, 251, 251, 251,
251, 251, 251, 251, 251, 251, 251, 251,
251, 251, 251, 251, 251, 251, 251, 251,
251, 251, 251, 251, 251, 251, 251, 251,
251, 251, 251, 251, 251, 251, 251, 251,
251, 251, 251, 251, 251, 251, 251, 251,
251, 251, 251, 251, 251, 251, 251, 251,
251, 251, 251, 251, 251, 251, 251, 251,
251, 251, 251, 251, 251, 251, 251, 251,
251, 251, 251, 251, 251, 251, 251, 150,
251, 259, 259, 259, 259, 259, 252, 252,
252, 252, 252, 252, 252, 252, 252, 252,
252, 252, 252, 252, 252, 252, 252, 252,
259, 252, 252, 252, 252, 252, 252, 252,
252, 252, 252, 252, 252, 252, 252, 252,
252, 252, 252, 252, 252, 252, 252, 252,
252, 252, 252, 252, 252, 252, 252, 252,
252, 252, 252, 252, 252, 252, 252, 252,
252, 252, 252, 252, 252, 252, 252, 252,
252, 252, 252, 252, 252, 252, 252, 252,
252, 252, 252, 252, 252, 252, 252, 252,
252, 252, 252, 252, 252, 252, 252, 252,
252, 252, 252, 252, 252, 252, 252, 252,
252, 252, 252, 252, 252, 252, 252, 252,
252, 252, 252, 252, 252, 150, 252, 260,
260, 260, 260, 260, 253, 253, 253, 253,
253, 253, 253, 253, 253, 253, 253, 253,
253, 253, 253, 253, 253, 253, 260, 253,
253, 253, 253, 253, 253, 253, 253, 253,
253, 253, 253, 253, 253, 253, 253, 253,
253, 253, 253, 253, 253, 253, 253, 253,
253, 253, 253, 253, 253, 253, 253, 253,
253, 253, 253, 253, 253, 253, 253, 253,
253, 253, 253, 253, 253, 253, 253, 253,
253, 253, 253, 253, 253, 253, 253, 253,
253, 253, 253, 253, 253, 253, 253, 253,
253, 253, 253, 253, 253, 253, 253, 253,
253, 253, 253, 253, 253, 253, 253, 253,
253, 253, 253, 253, 253, 253, 253, 253,
253, 253, 253, 150, 253, 261, 261, 261,
261, 261, 254, 254, 254, 254, 254, 254,
254, 254, 254, 254, 254, 254, 254, 254,
254, 254, 254, 254, 261, 254, 254, 254,
254, 254, 254, 254, 254, 254, 254, 254,
254, 254, 254, 254, 254, 254, 254, 254,
254, 254, 254, 254, 254, 254, 254, 254,
254, 254, 254, 254, 254, 254, 254, 254,
254, 254, 254, 254, 254, 254, 254, 254,
254, 254, 254, 254, 254, 254, 254, 254,
254, 254, 254, 254, 254, 254, 254, 254,
254, 254, 254, 254, 254, 254, 254, 254,
254, 254, 254, 254, 254, 254, 254, 254,
254, 254, 254, 254, 254, 254, 254, 254,
254, 254, 254, 254, 254, 254, 254, 254,
254, 150, 254, 262, 262, 262, 262, 262,
255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 262, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 150,
255, 263, 263, 263, 263, 263, 256, 256,
256, 256, 256, 256, 256, 256, 256, 256,
256, 256, 256, 256, 256, 256, 256, 256,
263, 256, 256, 256, 256, 256, 256, 256,
256, 256, 256, 256, 256, 256, 256, 256,
256, 256, 256, 256, 256, 256, 256, 256,
256, 256, 256, 256, 256, 256, 256, 256,
256, 256, 256, 256, 256, 256, 256, 256,
256, 256, 256, 256, 256, 256, 256, 256,
256, 256, 256, 256, 256, 256, 256, 256,
256, 256, 256, 256, 256, 256, 256, 256,
256, 256, 256, 256, 256, 256, 256, 256,
256, 256, 256, 256, 256, 256, 256, 256,
256, 256, 256, 256, 256, 256, 256, 256,
256, 256, 256, 256, 256, 150, 256, 264,
264, 264, 264, 264, 150, 150, 150, 150,
150, 150, 150, 150, 150, 150, 150, 150,
150, 150, 150, 150, 150, 150, 264, 150,
152, 152, 152, 152, 152, 249, 249, 249,
249, 249, 249, 249, 249, 249, 249, 249,
249, 249, 249, 249, 249, 249, 249, 152,
249, 249, 249, 249, 249, 249, 249, 249,
249, 249, 249, 249, 249, 249, 249, 249,
249, 249, 249, 249, 249, 249, 249, 249,
249, 249, 249, 249, 249, 249, 249, 249,
249, 249, 249, 249, 249, 249, 249, 249,
249, 249, 249, 249, 249, 249, 249, 249,
249, 249, 249, 249, 249, 249, 249, 249,
249, 249, 249, 249, 249, 249, 249, 249,
249, 249, 249, 249, 249, 249, 249, 249,
249, 249, 249, 249, 249, 249, 249, 249,
249, 249, 249, 249, 249, 249, 249, 249,
249, 249, 249, 249, 150, 249, 266, 266,
266, 266, 266, 266, 266, 266, 266, 266,
250, 250, 250, 250, 250, 250, 250, 266,
266, 266, 266, 266, 266, 250, 250, 250,
250, 250, 250, 250, 250, 250, 250, 250,
250, 250, 250, 250, 250, 250, 250, 250,
250, 250, 250, 250, 250, 250, 250, 266,
266, 266, 266, 266, 266, 250, 250, 250,
250, 250, 250, 250, 250, 250, 250, 250,
250, 250, 250, 250, 250, 250, 250, 250,
250, 250, 250, 267, 250, 268, 268, 268,
268, 268, 268, 268, 268, 268, 268, 251,
251, 251, 251, 251, 251, 251, 268, 268,
268, 268, 268, 268, 251, 251, 251, 251,
251, 251, 251, 251, 251, 251, 251, 251,
251, 251, 251, 251, 251, 251, 251, 251,
251, 251, 251, 251, 251, 251, 268, 268,
268, 268, 268, 268, 251, 251, 251, 251,
251, 251, 251, 251, 251, 251, 251, 251,
251, 251, 251, 251, 251, 251, 251, 251,
251, 251, 267, 251, 269, 269, 269, 269,
269, 269, 269, 269, 269, 269, 252, 252,
252, 252, 252, 252, 252, 269, 269, 269,
269, 269, 269, 252, 252, 252, 252, 252,
252, 252, 252, 252, 252, 252, 252, 252,
252, 252, 252, 252, 252, 252, 252, 252,
252, 252, 252, 252, 252, 269, 269, 269,
269, 269, 269, 252, 252, 252, 252, 252,
252, 252, 252, 252, 252, 252, 252, 252,
252, 252, 252, 252, 252, 252, 252, 252,
252, 267, 252, 270, 270, 270, 270, 270,
270, 270, 270, 270, 270, 253, 253, 253,
253, 253, 253, 253, 270, 270, 270, 270,
270, 270, 253, 253, 253, 253, 253, 253,
253, 253, 253, 253, 253, 253, 253, 253,
253, 253, 253, 253, 253, 253, 253, 253,
253, 253, 253, 253, 270, 270, 270, 270,
270, 270, 253, 253, 253, 253, 253, 253,
253, 253, 253, 253, 253, 253, 253, 253,
253, 253, 253, 253, 253, 253, 253, 253,
267, 253, 271, 271, 271, 271, 271, 271,
271, 271, 271, 271, 254, 254, 254, 254,
254, 254, 254, 271, 271, 271, 271, 271,
271, 254, 254, 254, 254, 254, 254, 254,
254, 254, 254, 254, 254, 254, 254, 254,
254, 254, 254, 254, 254, 254, 254, 254,
254, 254, 254, 271, 271, 271, 271, 271,
271, 254, 254, 254, 254, 254, 254, 254,
254, 254, 254, 254, 254, 254, 254, 254,
254, 254, 254, 254, 254, 254, 254, 267,
254, 272, 272, 272, 272, 272, 272, 272,
272, 272, 272, 255, 255, 255, 255, 255,
255, 255, 272, 272, 272, 272, 272, 272,
255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 272, 272, 272, 272, 272, 272,
255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 255, 255, 267, 255,
273, 273, 273, 273, 273, 273, 273, 273,
273, 273, 256, 256, 256, 256, 256, 256,
256, 273, 273, 273, 273, 273, 273, 256,
256, 256, 256, 256, 256, 256, 256, 256,
256, 256, 256, 256, 256, 256, 256, 256,
256, 256, 256, 256, 256, 256, 256, 256,
256, 273, 273, 273, 273, 273, 273, 256,
256, 256, 256, 256, 256, 256, 256, 256,
256, 256, 256, 256, 256, 256, 256, 256,
256, 256, 256, 256, 256, 267, 256, 267,
150, 0
]
class << self
attr_accessor :_re_scanner_trans_targs
private :_re_scanner_trans_targs, :_re_scanner_trans_targs=
end
self._re_scanner_trans_targs = [
132, 133, 3, 134, 5, 6, 135, 132,
132, 8, 10, 132, 132, 11, 9, 132,
12, 132, 14, 20, 132, 15, 17, 19,
16, 18, 21, 23, 25, 22, 24, 0,
27, 26, 143, 29, 0, 30, 31, 44,
144, 32, 33, 34, 35, 38, 40, 42,
36, 37, 39, 41, 43, 145, 147, 149,
46, 49, 151, 48, 145, 145, 145, 53,
54, 145, 56, 57, 68, 72, 76, 80,
84, 88, 93, 97, 99, 102, 58, 65,
59, 63, 60, 61, 62, 145, 64, 66,
67, 69, 70, 71, 73, 74, 75, 77,
78, 79, 81, 82, 83, 85, 86, 87,
89, 91, 90, 92, 94, 95, 96, 98,
100, 101, 104, 105, 145, 157, 158, 108,
159, 110, 111, 160, 157, 113, 114, 165,
167, 170, 167, 167, 118, 167, 120, 123,
121, 122, 167, 124, 125, 126, 127, 128,
167, 171, 130, 172, 180, 189, 167, 167,
131, 1, 2, 4, 136, 137, 132, 138,
132, 139, 140, 132, 141, 132, 142, 132,
132, 132, 132, 7, 132, 132, 132, 132,
132, 132, 132, 132, 132, 13, 132, 132,
28, 145, 146, 148, 150, 152, 145, 153,
154, 155, 156, 145, 145, 145, 145, 45,
47, 50, 145, 145, 51, 145, 145, 52,
55, 103, 106, 107, 109, 161, 162, 157,
162, 157, 157, 157, 163, 157, 164, 157,
112, 166, 157, 157, 167, 167, 168, 168,
167, 115, 116, 167, 167, 119, 129, 167,
169, 167, 167, 167, 167, 117, 167, 167,
167, 167, 173, 174, 175, 176, 177, 178,
179, 181, 182, 183, 184, 185, 186, 187,
188, 167, 190, 167, 191, 192, 193, 194,
195, 196
]
class << self
attr_accessor :_re_scanner_trans_actions
private :_re_scanner_trans_actions, :_re_scanner_trans_actions=
end
self._re_scanner_trans_actions = [
1, 2, 0, 2, 0, 0, 2, 3,
4, 5, 0, 6, 7, 0, 5, 8,
0, 9, 0, 0, 10, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 11,
0, 0, 0, 0, 0, 0, 0, 0,
13, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 14, 15, 15,
0, 0, 15, 0, 16, 17, 18, 0,
0, 19, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 20, 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, 0, 0, 21, 22, 23, 0,
23, 0, 0, 23, 24, 0, 0, 0,
25, 15, 26, 27, 0, 28, 0, 0,
0, 0, 29, 0, 0, 0, 0, 0,
30, 0, 0, 0, 0, 0, 31, 32,
0, 0, 0, 0, 0, 0, 35, 36,
37, 0, 0, 38, 0, 39, 15, 40,
41, 42, 43, 44, 45, 46, 47, 48,
49, 50, 51, 52, 53, 0, 54, 55,
0, 57, 0, 15, 15, 0, 58, 0,
0, 15, 15, 59, 60, 61, 62, 0,
0, 0, 63, 64, 0, 65, 66, 0,
0, 0, 0, 0, 0, 0, 23, 67,
68, 69, 70, 71, 0, 72, 15, 73,
0, 15, 74, 75, 76, 77, 78, 79,
80, 0, 0, 81, 82, 0, 0, 83,
0, 84, 85, 86, 87, 0, 88, 89,
90, 91, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
15, 92, 0, 93, 0, 0, 0, 0,
0, 0
]
class << self
attr_accessor :_re_scanner_to_state_actions
private :_re_scanner_to_state_actions, :_re_scanner_to_state_actions=
end
self._re_scanner_to_state_actions = [
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, 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,
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, 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,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 33, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
56, 56, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 33, 0, 0,
0, 0, 0, 0, 0, 0, 0, 56,
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, 0
]
class << self
attr_accessor :_re_scanner_from_state_actions
private :_re_scanner_from_state_actions, :_re_scanner_from_state_actions=
end
self._re_scanner_from_state_actions = [
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, 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,
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, 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,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 34, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
34, 34, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 34, 0, 0,
0, 0, 0, 0, 0, 0, 0, 34,
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, 0
]
class << self
attr_accessor :_re_scanner_eof_actions
private :_re_scanner_eof_actions, :_re_scanner_eof_actions=
end
self._re_scanner_eof_actions = [
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, 11, 11, 12, 12, 12, 12,
12, 12, 12, 12, 12, 12, 12, 12,
12, 12, 12, 12, 12, 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, 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, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 11, 11, 0, 0, 11,
11, 11, 11, 11, 11, 11, 11, 11,
11, 11, 11, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 11, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 11,
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, 0
]
class << self
attr_accessor :_re_scanner_eof_trans
private :_re_scanner_eof_trans, :_re_scanner_eof_trans=
end
self._re_scanner_eof_trans = [
0, 1, 1, 1, 1, 1, 1, 8,
8, 8, 8, 8, 8, 18, 18, 18,
18, 18, 18, 18, 18, 18, 18, 18,
18, 18, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 54, 54, 54,
54, 54, 54, 54, 62, 62, 62, 62,
62, 62, 62, 62, 62, 62, 62, 62,
62, 62, 62, 62, 62, 62, 62, 62,
62, 62, 62, 62, 62, 62, 62, 62,
62, 62, 62, 62, 62, 62, 62, 62,
62, 62, 62, 62, 62, 62, 62, 62,
62, 62, 62, 62, 62, 62, 62, 62,
62, 62, 118, 118, 118, 118, 118, 118,
125, 125, 125, 0, 0, 131, 131, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 152, 0, 170, 170, 170,
170, 170, 171, 173, 175, 177, 179, 183,
0, 0, 199, 199, 199, 199, 199, 199,
199, 199, 199, 199, 206, 0, 222, 222,
222, 222, 118, 222, 224, 227, 224, 0,
240, 242, 244, 247, 250, 250, 250, 250,
250, 250, 250, 250, 250, 250, 250, 250,
250, 250, 250, 250, 250, 266, 266, 266,
266, 266, 266, 266, 266
]
class << self
attr_accessor :re_scanner_start
end
self.re_scanner_start = 132;
class << self
attr_accessor :re_scanner_first_final
end
self.re_scanner_first_final = 132;
class << self
attr_accessor :re_scanner_error
end
self.re_scanner_error = 0;
class << self
attr_accessor :re_scanner_en_unicode_property
end
self.re_scanner_en_unicode_property = 144;
class << self
attr_accessor :re_scanner_en_character_set
end
self.re_scanner_en_character_set = 145;
class << self
attr_accessor :re_scanner_en_set_escape_sequence
end
self.re_scanner_en_set_escape_sequence = 157;
class << self
attr_accessor :re_scanner_en_escape_sequence
end
self.re_scanner_en_escape_sequence = 167;
class << self
attr_accessor :re_scanner_en_main
end
self.re_scanner_en_main = 132;
# line 684 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
# General scanner error (catch all)
class ScannerError < StandardError
def initialize(what)
super what
end
end
# Base for all scanner validation errors
class ValidationError < StandardError
def initialize(reason)
super reason
end
end
# Unexpected end of pattern
class PrematureEndError < ScannerError
def initialize(where = '')
super "Premature end of pattern at #{where}"
end
end
# Invalid sequence format. Used for escape sequences, mainly.
class InvalidSequenceError < ValidationError
def initialize(what = 'sequence', where = '')
super "Invalid #{what} at #{where}"
end
end
# Invalid group. Used for named groups.
class InvalidGroupError < ValidationError
def initialize(what, reason)
super "Invalid #{what}, #{reason}."
end
end
# Invalid back reference. Used for name a number refs/calls.
class InvalidBackrefError < ValidationError
def initialize(what, reason)
super "Invalid back reference #{what}, #{reason}"
end
end
# The property name was not recognized by the scanner.
class UnknownUnicodePropertyError < ValidationError
def initialize(name)
super "Unknown unicode character property name #{name}"
end
end
# Scans the given regular expression text, or Regexp object and collects the
# emitted token into an array that gets returned at the end. If a block is
# given, it gets called for each emitted token.
#
# This method may raise errors if a syntax error is encountered.
# --------------------------------------------------------------------------
def self.scan(input, &block)
top, stack = 0, []
input = input.source if input.is_a?(Regexp)
data = input.unpack("c*") if input.is_a?(String)
eof = data.length
@tokens = []
@block = block_given? ? block : nil
in_group, group_depth = false, 0
in_set, set_depth, set_type = false, 0, :set
# line 1516 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner.rb"
begin
p ||= 0
pe ||= data.length
cs = re_scanner_start
top = 0
ts = nil
te = nil
act = 0
end
# line 754 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
# line 1529 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner.rb"
begin
testEof = false
_slen, _trans, _keys, _inds, _acts, _nacts = nil
_goto_level = 0
_resume = 10
_eof_trans = 15
_again = 20
_test_eof = 30
_out = 40
while true
if _goto_level <= 0
if p == pe
_goto_level = _test_eof
next
end
if cs == 0
_goto_level = _out
next
end
end
if _goto_level <= _resume
case _re_scanner_from_state_actions[cs]
when 34 then
# line 1 "NONE"
begin
ts = p
end
# line 1557 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner.rb"
end
_keys = cs << 1
_inds = _re_scanner_index_offsets[cs]
_slen = _re_scanner_key_spans[cs]
_trans = if ( _slen > 0 &&
_re_scanner_trans_keys[_keys] <= data[p].ord &&
data[p].ord <= _re_scanner_trans_keys[_keys + 1]
) then
_re_scanner_indicies[ _inds + data[p].ord - _re_scanner_trans_keys[_keys] ]
else
_re_scanner_indicies[ _inds + _slen ]
end
end
if _goto_level <= _eof_trans
cs = _re_scanner_trans_targs[_trans]
if _re_scanner_trans_actions[_trans] != 0
case _re_scanner_trans_actions[_trans]
when 11 then
# line 124 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
text = ts ? copy(data, ts-1..-1) : data.pack('c*')
raise PrematureEndError.new( text )
end
when 5 then
# line 137 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
group_depth -= 1; in_group = group_depth > 0 ? true : false end
when 15 then
# line 1 "NONE"
begin
te = p+1
end
when 13 then
# line 60 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/property.rl"
begin
te = p+1
begin
text = text(data, ts, te, 1).first
if in_set
type = :set
else
type = text[1,1] == 'p' ? :property : :nonproperty
end
name = data[ts+2..te-2].pack('c*').gsub(/[\s_]/,'').downcase
if name[0].chr == '^'
name = name[1..-1]
type = :nonproperty
end
case name
# Named
when 'alnum'
self.emit(type, :alnum, text, ts-1, te)
when 'alpha'
self.emit(type, :alpha, text, ts-1, te)
when 'ascii'
self.emit(type, :ascii, text, ts-1, te)
when 'blank'
self.emit(type, :blank, text, ts-1, te)
when 'cntrl'
self.emit(type, :cntrl, text, ts-1, te)
when 'digit'
self.emit(type, :digit, text, ts-1, te)
when 'graph'
self.emit(type, :graph, text, ts-1, te)
when 'lower'
self.emit(type, :lower, text, ts-1, te)
when 'print'
self.emit(type, :print, text, ts-1, te)
when 'punct'
self.emit(type, :punct, text, ts-1, te)
when 'space'
self.emit(type, :space, text, ts-1, te)
when 'upper'
self.emit(type, :upper, text, ts-1, te)
when 'xdigit'
self.emit(type, :xdigit, text, ts-1, te)
when 'any'
self.emit(type, :any, text, ts-1, te)
when 'assigned'
self.emit(type, :assigned, text, ts-1, te)
when 'newline'
self.emit(type, :newline, text, ts-1, te)
when 'word'
self.emit(type, :word, text, ts-1, te)
# Letters
when 'l', 'letter'
self.emit(type, :letter_any, text, ts-1, te)
when 'lu', 'uppercaseletter'
self.emit(type, :letter_uppercase, text, ts-1, te)
when 'll', 'lowercaseletter'
self.emit(type, :letter_lowercase, text, ts-1, te)
when 'lt', 'titlecaseletter'
self.emit(type, :letter_titlecase, text, ts-1, te)
when 'lm', 'modifierletter'
self.emit(type, :letter_modifier, text, ts-1, te)
when 'lo', 'otherletter'
self.emit(type, :letter_other, text, ts-1, te)
# Marks
when 'm', 'mark'
self.emit(type, :mark_any, text, ts-1, te)
when 'mn', 'nonspacingmark'
self.emit(type, :mark_nonspacing, text, ts-1, te)
when 'mc', 'spacingmark'
self.emit(type, :mark_spacing, text, ts-1, te)
when 'me', 'enclosingmark'
self.emit(type, :mark_enclosing, text, ts-1, te)
# Numbers
when 'n', 'number'
self.emit(type, :number_any, text, ts-1, te)
when 'nd', 'decimalnumber'
self.emit(type, :number_decimal, text, ts-1, te)
when 'nl', 'letternumber'
self.emit(type, :number_letter, text, ts-1, te)
when 'no', 'othernumber'
self.emit(type, :number_other, text, ts-1, te)
# Punctuation
when 'p', 'punctuation'
self.emit(type, :punct_any, text, ts-1, te)
when 'pc', 'connectorpunctuation'
self.emit(type, :punct_connector, text, ts-1, te)
when 'pd', 'dashpunctuation'
self.emit(type, :punct_dash, text, ts-1, te)
when 'ps', 'openpunctuation'
self.emit(type, :punct_open, text, ts-1, te)
when 'pe', 'closepunctuation'
self.emit(type, :punct_close, text, ts-1, te)
when 'pi', 'initialpunctuation'
self.emit(type, :punct_initial, text, ts-1, te)
when 'pf', 'finalpunctuation'
self.emit(type, :punct_final, text, ts-1, te)
when 'po', 'otherpunctuation'
self.emit(type, :punct_other, text, ts-1, te)
# Symbols
when 's', 'symbol'
self.emit(type, :symbol_any, text, ts-1, te)
when 'sm', 'mathsymbol'
self.emit(type, :symbol_math, text, ts-1, te)
when 'sc', 'currencysymbol'
self.emit(type, :symbol_currency, text, ts-1, te)
when 'sk', 'modifiersymbol'
self.emit(type, :symbol_modifier, text, ts-1, te)
when 'so', 'othersymbol'
self.emit(type, :symbol_other, text, ts-1, te)
# Separators
when 'z', 'separator'
self.emit(type, :separator_any, text, ts-1, te)
when 'zs', 'spaceseparator'
self.emit(type, :separator_space, text, ts-1, te)
when 'zl', 'lineseparator'
self.emit(type, :separator_line, text, ts-1, te)
when 'zp', 'paragraphseparator'
self.emit(type, :separator_para, text, ts-1, te)
# Codepoints
when 'c', 'other'
self.emit(type, :other, text, ts-1, te)
when 'cc', 'control'
self.emit(type, :control, text, ts-1, te)
when 'cf', 'format'
self.emit(type, :format, text, ts-1, te)
when 'cs', 'surrogate'
self.emit(type, :surrogate, text, ts-1, te)
when 'co', 'privateuse'
self.emit(type, :private_use, text, ts-1, te)
when 'cn', 'unassigned'
self.emit(type, :unassigned, text, ts-1, te)
# Age
when 'age=1.1'
self.emit(type, :age_1_1, text, ts-1, te)
when 'age=2.0'
self.emit(type, :age_2_0, text, ts-1, te)
when 'age=2.1'
self.emit(type, :age_2_1, text, ts-1, te)
when 'age=3.0'
self.emit(type, :age_3_0, text, ts-1, te)
when 'age=3.1'
self.emit(type, :age_3_1, text, ts-1, te)
when 'age=3.2'
self.emit(type, :age_3_2, text, ts-1, te)
when 'age=4.0'
self.emit(type, :age_4_0, text, ts-1, te)
when 'age=4.1'
self.emit(type, :age_4_1, text, ts-1, te)
when 'age=5.0'
self.emit(type, :age_5_0, text, ts-1, te)
when 'age=5.1'
self.emit(type, :age_5_1, text, ts-1, te)
when 'age=5.2'
self.emit(type, :age_5_2, text, ts-1, te)
when 'age=6.0'
self.emit(type, :age_6_0, text, ts-1, te)
# Derived Properties
when 'ahex', 'asciihexdigit'
self.emit(type, :ascii_hex, text, ts-1, te)
when 'alphabetic'
self.emit(type, :alphabetic, text, ts-1, te)
when 'cased'
self.emit(type, :cased, text, ts-1, te)
when 'cwcf', 'changeswhencasefolded'
self.emit(type, :changes_when_casefolded, text, ts-1, te)
when 'cwcm', 'changeswhencasemapped'
self.emit(type, :changes_when_casemapped, text, ts-1, te)
when 'cwl', 'changeswhenlowercased'
self.emit(type, :changes_when_lowercased, text, ts-1, te)
when 'cwt', 'changeswhentitlecased'
self.emit(type, :changes_when_titlecased, text, ts-1, te)
when 'cwu', 'changeswhenuppercased'
self.emit(type, :changes_when_uppercased, text, ts-1, te)
when 'ci', 'caseignorable'
self.emit(type, :case_ignorable, text, ts-1, te)
when 'bidic', 'bidicontrol'
self.emit(type, :bidi_control, text, ts-1, te)
when 'dash'
self.emit(type, :dash, text, ts-1, te)
when 'dep', 'deprecated'
self.emit(type, :deprecated, text, ts-1, te)
when 'di', 'defaultignorablecodepoint'
self.emit(type, :default_ignorable_cp, text, ts-1, te)
when 'dia', 'diacritic'
self.emit(type, :diacritic, text, ts-1, te)
when 'ext', 'extender'
self.emit(type, :extender, text, ts-1, te)
when 'grbase', 'graphemebase'
self.emit(type, :grapheme_base, text, ts-1, te)
when 'grext', 'graphemeextend'
self.emit(type, :grapheme_extend, text, ts-1, te)
when 'grlink', 'graphemelink' # NOTE: deprecated as of Unicode 5.0
self.emit(type, :grapheme_link, text, ts-1, te)
when 'hex', 'hexdigit'
self.emit(type, :hex_digit, text, ts-1, te)
when 'hyphen' # NOTE: deprecated as of Unicode 6.0
self.emit(type, :hyphen, text, ts-1, te)
when 'idc', 'idcontinue'
self.emit(type, :id_continue, text, ts-1, te)
when 'ideo', 'ideographic'
self.emit(type, :ideographic, text, ts-1, te)
when 'ids', 'idstart'
self.emit(type, :id_start, text, ts-1, te)
when 'idsb', 'idsbinaryoperator'
self.emit(type, :ids_binary_op, text, ts-1, te)
when 'idst', 'idstrinaryoperator'
self.emit(type, :ids_trinary_op, text, ts-1, te)
when 'joinc', 'joincontrol'
self.emit(type, :join_control, text, ts-1, te)
when 'loe', 'logicalorderexception'
self.emit(type, :logical_order_exception, text, ts-1, te)
when 'lowercase'
self.emit(type, :lowercase, text, ts-1, te)
when 'math'
self.emit(type, :math, text, ts-1, te)
when 'nchar', 'noncharactercodepoint'
self.emit(type, :non_character_cp, text, ts-1, te)
when 'oalpha', 'otheralphabetic'
self.emit(type, :other_alphabetic, text, ts-1, te)
when 'odi', 'otherdefaultignorablecodepoint'
self.emit(type, :other_default_ignorable_cp, text, ts-1, te)
when 'ogrext', 'othergraphemeextend'
self.emit(type, :other_grapheme_extended, text, ts-1, te)
when 'oidc', 'otheridcontinue'
self.emit(type, :other_id_continue, text, ts-1, te)
when 'oids', 'otheridstart'
self.emit(type, :other_id_start, text, ts-1, te)
when 'olower', 'otherlowercase'
self.emit(type, :other_lowercase, text, ts-1, te)
when 'omath', 'othermath'
self.emit(type, :other_math, text, ts-1, te)
when 'oupper', 'otheruppercase'
self.emit(type, :other_uppercase, text, ts-1, te)
when 'patsyn', 'patternsyntax'
self.emit(type, :pattern_syntax, text, ts-1, te)
when 'patws', 'patternwhitespace'
self.emit(type, :pattern_whitespace, text, ts-1, te)
when 'qmark', 'quotationmark'
self.emit(type, :quotation_mark, text, ts-1, te)
when 'radical'
self.emit(type, :radical, text, ts-1, te)
when 'sd', 'softdotted'
self.emit(type, :soft_dotted, text, ts-1, te)
when 'sterm'
self.emit(type, :sentence_terminal, text, ts-1, te)
when 'term', 'terminalpunctuation'
self.emit(type, :terminal_punctuation, text, ts-1, te)
when 'uideo', 'unifiedideograph'
self.emit(type, :unified_ideograph, text, ts-1, te)
when 'uppercase'
self.emit(type, :uppercase, text, ts-1, te)
when 'vs', 'variationselector'
self.emit(type, :variation_selector, text, ts-1, te)
when 'wspace', 'whitespace'
self.emit(type, :whitespace, text, ts-1, te)
when 'xids', 'xidstart'
self.emit(type, :xid_start, text, ts-1, te)
when 'xidc', 'xidcontinue'
self.emit(type, :xid_continue, text, ts-1, te)
# Scripts
when 'arab', 'arabic'
self.emit(type, :script_arabic, text, ts-1, te)
when 'armi', 'imperialaramaic'
self.emit(type, :script_imperial_aramaic, text, ts-1, te)
when 'armn', 'armenian'
self.emit(type, :script_armenian, text, ts-1, te)
when 'avst', 'avestan'
self.emit(type, :script_avestan, text, ts-1, te)
when 'bali', 'balinese'
self.emit(type, :script_balinese, text, ts-1, te)
when 'bamu', 'bamum'
self.emit(type, :script_bamum, text, ts-1, te)
when 'batk', 'batak'
self.emit(type, :script_batak, text, ts-1, te)
when 'beng', 'bengali'
self.emit(type, :script_bengali, text, ts-1, te)
when 'bopo', 'bopomofo'
self.emit(type, :script_bopomofo, text, ts-1, te)
when 'brah', 'brahmi'
self.emit(type, :script_brahmi, text, ts-1, te)
when 'brai', 'braille'
self.emit(type, :script_braille, text, ts-1, te)
when 'bugi', 'buginese'
self.emit(type, :script_buginese, text, ts-1, te)
when 'buhd', 'buhid'
self.emit(type, :script_buhid, text, ts-1, te)
when 'cans', 'canadianaboriginal'
self.emit(type, :script_canadian_aboriginal, text, ts-1, te)
when 'cari', 'carian'
self.emit(type, :script_carian, text, ts-1, te)
when 'cham'
self.emit(type, :script_cham, text, ts-1, te)
when 'cher', 'cherokee'
self.emit(type, :script_cherokee, text, ts-1, te)
when 'copt', 'coptic', 'qaac'
self.emit(type, :script_coptic, text, ts-1, te)
when 'cprt', 'cypriot'
self.emit(type, :script_cypriot, text, ts-1, te)
when 'cyrl', 'cyrillic'
self.emit(type, :script_cyrillic, text, ts-1, te)
when 'deva', 'devanagari'
self.emit(type, :script_devanagari, text, ts-1, te)
when 'dsrt', 'deseret'
self.emit(type, :script_deseret, text, ts-1, te)
when 'egyp', 'egyptianhieroglyphs'
self.emit(type, :script_egyptian_hieroglyphs, text, ts-1, te)
when 'ethi', 'ethiopic'
self.emit(type, :script_ethiopic, text, ts-1, te)
when 'geor', 'georgian'
self.emit(type, :script_georgian, text, ts-1, te)
when 'glag', 'glagolitic'
self.emit(type, :script_glagolitic, text, ts-1, te)
when 'goth', 'gothic'
self.emit(type, :script_gothic, text, ts-1, te)
when 'grek', 'greek'
self.emit(type, :script_greek, text, ts-1, te)
when 'gujr', 'gujarati'
self.emit(type, :script_gujarati, text, ts-1, te)
when 'guru', 'gurmukhi'
self.emit(type, :script_gurmukhi, text, ts-1, te)
when 'hang', 'hangul'
self.emit(type, :script_hangul, text, ts-1, te)
when 'hani', 'han'
self.emit(type, :script_han, text, ts-1, te)
when 'hano', 'hanunoo'
self.emit(type, :script_hanunoo, text, ts-1, te)
when 'hebr', 'hebrew'
self.emit(type, :script_hebrew, text, ts-1, te)
when 'hira', 'hiragana'
self.emit(type, :script_hiragana, text, ts-1, te)
when 'hrkt', 'katakanaorhiragana'
self.emit(type, :script_katakana_or_hiragana, text, ts-1, te)
when 'ital', 'olditalic'
self.emit(type, :script_old_italic, text, ts-1, te)
when 'java', 'javanese'
self.emit(type, :script_javanese, text, ts-1, te)
when 'kali', 'kayahli'
self.emit(type, :script_kayah_li, text, ts-1, te)
when 'kana', 'katakana'
self.emit(type, :script_katakana, text, ts-1, te)
when 'khar', 'kharoshthi'
self.emit(type, :script_kharoshthi, text, ts-1, te)
when 'khmr', 'khmer'
self.emit(type, :script_khmer, text, ts-1, te)
when 'knda', 'kannada'
self.emit(type, :script_kannada, text, ts-1, te)
when 'kthi', 'kaithi'
self.emit(type, :script_kaithi, text, ts-1, te)
when 'lana', 'taitham'
self.emit(type, :script_tai_tham, text, ts-1, te)
when 'laoo', 'lao'
self.emit(type, :script_lao, text, ts-1, te)
when 'latn', 'latin'
self.emit(type, :script_latin, text, ts-1, te)
when 'lepc', 'lepcha'
self.emit(type, :script_lepcha, text, ts-1, te)
when 'limb', 'limbu'
self.emit(type, :script_limbu, text, ts-1, te)
when 'linb', 'linearb'
self.emit(type, :script_linear_b, text, ts-1, te)
when 'lisu'
self.emit(type, :script_lisu, text, ts-1, te)
when 'lyci', 'lycian'
self.emit(type, :script_lycian, text, ts-1, te)
when 'lydi', 'lydian'
self.emit(type, :script_lydian, text, ts-1, te)
when 'mlym', 'malayalam'
self.emit(type, :script_malayalam, text, ts-1, te)
when 'mand', 'mandaic'
self.emit(type, :script_mandaic, text, ts-1, te)
when 'mong', 'mongolian'
self.emit(type, :script_mongolian, text, ts-1, te)
when 'mtei', 'meeteimayek'
self.emit(type, :script_meetei_mayek, text, ts-1, te)
when 'mymr', 'myanmar'
self.emit(type, :script_myanmar, text, ts-1, te)
when 'nkoo', 'nko'
self.emit(type, :script_nko, text, ts-1, te)
when 'ogam', 'ogham'
self.emit(type, :script_ogham, text, ts-1, te)
when 'olck', 'olchiki'
self.emit(type, :script_ol_chiki, text, ts-1, te)
when 'orkh', 'oldturkic'
self.emit(type, :script_old_turkic, text, ts-1, te)
when 'orya', 'oriya'
self.emit(type, :script_oriya, text, ts-1, te)
when 'osma', 'osmanya'
self.emit(type, :script_osmanya, text, ts-1, te)
when 'phag', 'phagspa'
self.emit(type, :script_phags_pa, text, ts-1, te)
when 'phli', 'inscriptionalpahlavi'
self.emit(type, :script_inscriptional_pahlavi, text, ts-1, te)
when 'phnx', 'phoenician'
self.emit(type, :script_phoenician, text, ts-1, te)
when 'prti', 'inscriptionalparthian'
self.emit(type, :script_inscriptional_parthian, text, ts-1, te)
when 'rjng', 'rejang'
self.emit(type, :script_rejang, text, ts-1, te)
when 'runr', 'runic'
self.emit(type, :script_runic, text, ts-1, te)
when 'samr', 'samaritan'
self.emit(type, :script_samaritan, text, ts-1, te)
when 'sarb', 'oldsoutharabian'
self.emit(type, :script_old_south_arabian, text, ts-1, te)
when 'saur', 'saurashtra'
self.emit(type, :script_saurashtra, text, ts-1, te)
when 'shaw', 'shavian'
self.emit(type, :script_shavian, text, ts-1, te)
when 'sinh', 'sinhala'
self.emit(type, :script_sinhala, text, ts-1, te)
when 'sund', 'sundanese'
self.emit(type, :script_sundanese, text, ts-1, te)
when 'sylo', 'sylotinagri'
self.emit(type, :script_syloti_nagri, text, ts-1, te)
when 'syrc', 'syriac'
self.emit(type, :script_syriac, text, ts-1, te)
when 'tagb', 'tagbanwa'
self.emit(type, :script_tagbanwa, text, ts-1, te)
when 'tale', 'taile'
self.emit(type, :script_tai_le, text, ts-1, te)
when 'talu', 'newtailue'
self.emit(type, :script_new_tai_lue, text, ts-1, te)
when 'taml', 'tamil'
self.emit(type, :script_tamil, text, ts-1, te)
when 'tavt', 'taiviet'
self.emit(type, :script_tai_viet, text, ts-1, te)
when 'telu', 'telugu'
self.emit(type, :script_telugu, text, ts-1, te)
when 'tfng', 'tifinagh'
self.emit(type, :script_tifinagh, text, ts-1, te)
when 'tglg', 'tagalog'
self.emit(type, :script_tagalog, text, ts-1, te)
when 'thaa', 'thaana'
self.emit(type, :script_thaana, text, ts-1, te)
when 'thai'
self.emit(type, :script_thai, text, ts-1, te)
when 'tibt', 'tibetan'
self.emit(type, :script_tibetan, text, ts-1, te)
when 'ugar', 'ugaritic'
self.emit(type, :script_ugaritic, text, ts-1, te)
when 'vaii', 'vai'
self.emit(type, :script_vai, text, ts-1, te)
when 'xpeo', 'oldpersian'
self.emit(type, :script_old_persian, text, ts-1, te)
when 'xsux', 'cuneiform'
self.emit(type, :script_cuneiform, text, ts-1, te)
when 'yiii', 'yi'
self.emit(type, :script_yi, text, ts-1, te)
when 'zinh', 'inherited', 'qaai'
self.emit(type, :script_inherited, text, ts-1, te)
when 'zyyy', 'common'
self.emit(type, :script_common, text, ts-1, te)
when 'zzzz', 'unknown'
self.emit(type, :script_unknown, text, ts-1, te)
else
# Should this really be an error? Or would emitting
# an :unknown for the property be better?
#
# self.emit(type, :unknown, text, ts-1, te)
raise UnknownUnicodePropertyError.new(name)
end
begin
top -= 1
cs = stack[top]
_goto_level = _again
next
end
end
end
when 60 then
# line 143 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
set_type = set_depth > 1 ? :subset : :set
set_depth -= 1; in_set = set_depth > 0 ? true : false
emit(set_type, :close, *text(data, ts, te))
if set_depth == 0
begin
cs = 132
_goto_level = _again
next
end
else
begin
top -= 1
cs = stack[top]
_goto_level = _again
next
end
end
end
end
when 64 then
# line 156 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin # special case, emits two tokens
set_type = set_depth > 1 ? :subset : :set
set_depth -= 1; in_set = set_depth > 0 ? true : false
emit(set_type, :member, copy(data, ts..te-2), ts, te)
emit(set_type, :close, copy(data, ts+1..te-1), ts, te)
if set_depth == 0
begin
cs = 132
_goto_level = _again
next
end
else
begin
top -= 1
cs = stack[top]
_goto_level = _again
next
end
end
end
end
when 61 then
# line 170 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
text = text(data, ts, te).first
if @tokens.last[1] == :open
emit(set_type, :negate, text, ts, te)
else
emit(set_type, :member, text, ts, te)
end
end
end
when 16 then
# line 179 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
emit(set_type, :range, *text(data, ts, te))
end
end
when 63 then
# line 183 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
emit(set_type, :intersection, *text(data, ts, te))
end
end
when 59 then
# line 187 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
begin
stack[top] = cs
top+= 1
cs = 157
_goto_level = _again
next
end
end
end
when 20 then
# line 199 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
text = text(data, ts, te).first
class_name = text[2..-3]
if class_name[0].chr == '^'
class_name = "non#{class_name[1..-1]}"
end
token_sym = "class_#{class_name}".to_sym
emit(set_type, token_sym, text, ts, te)
end
end
when 19 then
# line 211 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
emit(set_type, :collation, *text(data, ts, te))
end
end
when 21 then
# line 215 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
emit(set_type, :equivalent, *text(data, ts, te))
end
end
when 58 then
# line 221 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
emit(set_type, :member, *text(data, ts, te))
end
end
when 57 then
# line 229 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
emit(set_type, :member, *text(data, ts, te))
end
end
when 66 then
# line 191 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p
p = p - 1; begin
set_depth += 1; in_set = true
set_type = set_depth > 1 ? :subset : :set
emit(set_type, :open, *text(data, ts, te))
begin
stack[top] = cs
top+= 1
cs = 145
_goto_level = _again
next
end
end
end
when 62 then
# line 229 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p
p = p - 1; begin
emit(set_type, :member, *text(data, ts, te))
end
end
when 18 then
# line 191 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
begin p = ((te))-1; end
begin
set_depth += 1; in_set = true
set_type = set_depth > 1 ? :subset : :set
emit(set_type, :open, *text(data, ts, te))
begin
stack[top] = cs
top+= 1
cs = 145
_goto_level = _again
next
end
end
end
when 14 then
# line 229 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
begin p = ((te))-1; end
begin
emit(set_type, :member, *text(data, ts, te))
end
end
when 71 then
# line 237 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
emit(set_type, :backspace, *text(data, ts, te, 1))
begin
top -= 1
cs = stack[top]
_goto_level = _again
next
end
end
end
when 69 then
# line 242 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
case text = text(data, ts, te, 1).first
when '\d'; emit(set_type, :type_digit, text, ts-1, te)
when '\D'; emit(set_type, :type_nondigit, text, ts-1, te)
when '\h'; emit(set_type, :type_hex, text, ts-1, te)
when '\H'; emit(set_type, :type_nonhex, text, ts-1, te)
when '\s'; emit(set_type, :type_space, text, ts-1, te)
when '\S'; emit(set_type, :type_nonspace, text, ts-1, te)
when '\w'; emit(set_type, :type_word, text, ts-1, te)
when '\W'; emit(set_type, :type_nonword, text, ts-1, te)
end
begin
top -= 1
cs = stack[top]
_goto_level = _again
next
end
end
end
when 75 then
# line 256 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
emit(set_type, :range_hex, *text(data, ts, te, 1))
begin
top -= 1
cs = stack[top]
_goto_level = _again
next
end
end
end
when 67 then
# line 266 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
emit(set_type, :escape, *text(data, ts, te, 1))
begin
top -= 1
cs = stack[top]
_goto_level = _again
next
end
end
end
when 70 then
# line 271 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
p = p - 1;
cs = 145;
begin
stack[top] = cs
top+= 1
cs = 144
_goto_level = _again
next
end
begin
top -= 1
cs = stack[top]
_goto_level = _again
next
end
end
end
when 74 then
# line 256 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p
p = p - 1; begin
emit(set_type, :range_hex, *text(data, ts, te, 1))
begin
top -= 1
cs = stack[top]
_goto_level = _again
next
end
end
end
when 73 then
# line 261 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p
p = p - 1; begin
emit(set_type, :member_hex, *text(data, ts, te, 1))
begin
top -= 1
cs = stack[top]
_goto_level = _again
next
end
end
end
when 72 then
# line 283 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p
p = p - 1; begin
emit(set_type, :escape, *text(data, ts, te, 1))
begin
top -= 1
cs = stack[top]
_goto_level = _again
next
end
end
end
when 24 then
# line 261 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
begin p = ((te))-1; end
begin
emit(set_type, :member_hex, *text(data, ts, te, 1))
begin
top -= 1
cs = stack[top]
_goto_level = _again
next
end
end
end
when 22 then
# line 1 "NONE"
begin
case act
when 0 then
begin begin
cs = 0
_goto_level = _again
next
end
end
when 18 then
begin begin p = ((te))-1; end
emit(set_type, :escape, *text(data, ts, te, 1))
begin
top -= 1
cs = stack[top]
_goto_level = _again
next
end
end
when 20 then
begin begin p = ((te))-1; end
emit(set_type, :escape, *text(data, ts, te, 1))
begin
top -= 1
cs = stack[top]
_goto_level = _again
next
end
end
end
end
when 80 then
# line 293 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
text = text(data, ts, te, 1).first
emit(:backref, :number, text, ts-1, te)
begin
top -= 1
cs = stack[top]
_goto_level = _again
next
end
end
end
when 85 then
# line 299 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
emit(:escape, :octal, *text(data, ts, te, 1))
begin
top -= 1
cs = stack[top]
_goto_level = _again
next
end
end
end
when 77 then
# line 304 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
case text = text(data, ts, te, 1).first
when '\.'; emit(:escape, :dot, text, ts-1, te)
when '\|'; emit(:escape, :alternation, text, ts-1, te)
when '\^'; emit(:escape, :bol, text, ts-1, te)
when '\$'; emit(:escape, :eol, text, ts-1, te)
when '\?'; emit(:escape, :zero_or_one, text, ts-1, te)
when '\*'; emit(:escape, :zero_or_more, text, ts-1, te)
when '\+'; emit(:escape, :one_or_more, text, ts-1, te)
when '\('; emit(:escape, :group_open, text, ts-1, te)
when '\)'; emit(:escape, :group_close, text, ts-1, te)
when '\{'; emit(:escape, :interval_open, text, ts-1, te)
when '\}'; emit(:escape, :interval_close, text, ts-1, te)
when '\['; emit(:escape, :set_open, text, ts-1, te)
when '\]'; emit(:escape, :set_close, text, ts-1, te)
when "\\\\";
emit(:escape, :backslash, text, ts-1, te)
end
begin
top -= 1
cs = stack[top]
_goto_level = _again
next
end
end
end
when 82 then
# line 325 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
# \b is emitted as backspace only when inside a character set, otherwise
# it is a word boundary anchor. A syntax might "normalize" it if needed.
case text = text(data, ts, te, 1).first
when '\a'; emit(:escape, :bell, text, ts-1, te)
when '\e'; emit(:escape, :escape, text, ts-1, te)
when '\f'; emit(:escape, :form_feed, text, ts-1, te)
when '\n'; emit(:escape, :newline, text, ts-1, te)
when '\r'; emit(:escape, :carriage, text, ts-1, te)
when '\s'; emit(:escape, :space, text, ts-1, te)
when '\t'; emit(:escape, :tab, text, ts-1, te)
when '\v'; emit(:escape, :vertical_tab, text, ts-1, te)
end
begin
top -= 1
cs = stack[top]
_goto_level = _again
next
end
end
end
when 29 then
# line 341 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
text = text(data, ts, te, 1).first
if text[2].chr == '{'
emit(:escape, :codepoint_list, text, ts-1, te)
else
emit(:escape, :codepoint, text, ts-1, te)
end
begin
top -= 1
cs = stack[top]
_goto_level = _again
next
end
end
end
when 90 then
# line 351 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
emit(:escape, :hex, *text(data, ts, te, 1))
begin
top -= 1
cs = stack[top]
_goto_level = _again
next
end
end
end
when 93 then
# line 356 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
emit(:escape, :hex_wide, *text(data, ts, te, 1))
begin
top -= 1
cs = stack[top]
_goto_level = _again
next
end
end
end
when 31 then
# line 365 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
raise InvalidSequenceError.new("wide hex sequence")
begin
top -= 1
cs = stack[top]
_goto_level = _again
next
end
end
end
when 25 then
# line 370 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
if data[te]
c = data[te].chr
if c =~ /[\x00-\x7F]/
emit(:escape, :control, copy(data, ts-1..te), ts-1, te+1)
p += 1
else
raise InvalidSequenceError.new("control sequence")
end
else
raise PrematureEndError.new("control sequence")
end
begin
top -= 1
cs = stack[top]
_goto_level = _again
next
end
end
end
when 28 then
# line 385 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
if data[te]
c = data[te].chr
if c =~ /[\x00-\x7F]/
emit(:escape, :meta_sequence, copy(data, ts-1..te), ts-1, te+1)
p += 1
else
raise InvalidSequenceError.new("meta sequence")
end
else
raise PrematureEndError.new("meta sequence")
end
begin
top -= 1
cs = stack[top]
_goto_level = _again
next
end
end
end
when 81 then
# line 400 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
p = p - 1;
cs = 132;
begin
stack[top] = cs
top+= 1
cs = 144
_goto_level = _again
next
end
begin
top -= 1
cs = stack[top]
_goto_level = _again
next
end
end
end
when 76 then
# line 406 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
emit(:escape, :literal, *text(data, ts, te, 1))
begin
top -= 1
cs = stack[top]
_goto_level = _again
next
end
end
end
when 84 then
# line 299 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p
p = p - 1; begin
emit(:escape, :octal, *text(data, ts, te, 1))
begin
top -= 1
cs = stack[top]
_goto_level = _again
next
end
end
end
when 89 then
# line 351 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p
p = p - 1; begin
emit(:escape, :hex, *text(data, ts, te, 1))
begin
top -= 1
cs = stack[top]
_goto_level = _again
next
end
end
end
when 91 then
# line 365 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p
p = p - 1; begin
raise InvalidSequenceError.new("wide hex sequence")
begin
top -= 1
cs = stack[top]
_goto_level = _again
next
end
end
end
when 87 then
# line 385 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p
p = p - 1; begin
if data[te]
c = data[te].chr
if c =~ /[\x00-\x7F]/
emit(:escape, :meta_sequence, copy(data, ts-1..te), ts-1, te+1)
p += 1
else
raise InvalidSequenceError.new("meta sequence")
end
else
raise PrematureEndError.new("meta sequence")
end
begin
top -= 1
cs = stack[top]
_goto_level = _again
next
end
end
end
when 32 then
# line 365 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
begin p = ((te))-1; end
begin
raise InvalidSequenceError.new("wide hex sequence")
begin
top -= 1
cs = stack[top]
_goto_level = _again
next
end
end
end
when 27 then
# line 385 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
begin p = ((te))-1; end
begin
if data[te]
c = data[te].chr
if c =~ /[\x00-\x7F]/
emit(:escape, :meta_sequence, copy(data, ts-1..te), ts-1, te+1)
p += 1
else
raise InvalidSequenceError.new("meta sequence")
end
else
raise PrematureEndError.new("meta sequence")
end
begin
top -= 1
cs = stack[top]
_goto_level = _again
next
end
end
end
when 83 then
# line 1 "NONE"
begin
case act
when 21 then
begin begin p = ((te))-1; end
text = text(data, ts, te, 1).first
emit(:backref, :number, text, ts-1, te)
begin
top -= 1
cs = stack[top]
_goto_level = _again
next
end
end
when 22 then
begin begin p = ((te))-1; end
emit(:escape, :octal, *text(data, ts, te, 1))
begin
top -= 1
cs = stack[top]
_goto_level = _again
next
end
end
end
end
when 38 then
# line 419 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
emit(:meta, :dot, *text(data, ts, te))
end
end
when 41 then
# line 423 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
emit(:meta, :alternation, *text(data, ts, te))
end
end
when 40 then
# line 429 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
emit(:anchor, :bol, *text(data, ts, te))
end
end
when 35 then
# line 433 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
emit(:anchor, :eol, *text(data, ts, te))
end
end
when 52 then
# line 437 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
case text = text(data, ts, te).first
when '\\A'; emit(:anchor, :bos, text, ts, te)
when '\\z'; emit(:anchor, :eos, text, ts, te)
when '\\Z'; emit(:anchor, :eos_ob_eol, text, ts, te)
when '\\b'; emit(:anchor, :word_boundary, text, ts, te)
when '\\B'; emit(:anchor, :nonword_boundary, text, ts, te)
when '\\G'; emit(:anchor, :match_start, text, ts, te)
else
raise ScannerError.new(
"Unexpected character in anchor at #{text} (char #{ts})")
end
end
end
when 53 then
# line 457 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
case text = text(data, ts, te).first
when '\\d'; emit(:type, :digit, text, ts, te)
when '\\D'; emit(:type, :nondigit, text, ts, te)
when '\\h'; emit(:type, :hex, text, ts, te)
when '\\H'; emit(:type, :nonhex, text, ts, te)
when '\\s'; emit(:type, :space, text, ts, te)
when '\\S'; emit(:type, :nonspace, text, ts, te)
when '\\w'; emit(:type, :word, text, ts, te)
when '\\W'; emit(:type, :nonword, text, ts, te)
else
raise ScannerError.new(
"Unexpected character in type at #{text} (char #{ts})")
end
end
end
when 39 then
# line 476 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
set_depth += 1; in_set = true
set_type = set_depth > 1 ? :subset : :set
emit(set_type, :open, *text(data, ts, te))
begin
stack[top] = cs
top+= 1
cs = 145
_goto_level = _again
next
end
end
end
when 6 then
# line 501 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
p = scan_options(p, data, ts, te)
end
end
when 4 then
# line 511 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
case text = text(data, ts, te).first
when '(?='; emit(:assertion, :lookahead, text, ts, te)
when '(?!'; emit(:assertion, :nlookahead, text, ts, te)
when '(?<='; emit(:assertion, :lookbehind, text, ts, te)
when '(?<!'; emit(:assertion, :nlookbehind, text, ts, te)
end
end
end
when 7 then
# line 527 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
case text = text(data, ts, te).first
when '(?:'; emit(:group, :passive, text, ts, te)
when '(?>'; emit(:group, :atomic, text, ts, te)
when /^\(\?<(\w*)>/
empty_name_error(:group, 'named group (ab)') if $1.empty?
emit(:group, :named_ab, text, ts, te)
when /^\(\?'(\w*)'/
empty_name_error(:group, 'named group (sq)') if $1.empty?
emit(:group, :named_sq, text, ts, te)
else
raise ScannerError.new(
"Unknown subexpression group format '#{text}'")
end
end
end
when 10 then
# line 560 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
case text = text(data, ts, te).first
when /^\\([gk])<>/ # angle brackets
empty_backref_error("ref/call (ab)")
when /^\\([gk])''/ # single quotes
empty_backref_error("ref/call (sq)")
when /^\\([gk])<[^\d-](\w+)?>/ # angle-brackets
if $1 == 'k'
emit(:backref, :name_ref_ab, text, ts, te)
else
emit(:backref, :name_call_ab, text, ts, te)
end
when /^\\([gk])'[^\d-](\w+)?'/ #single quotes
if $1 == 'k'
emit(:backref, :name_ref_sq, text, ts, te)
else
emit(:backref, :name_call_sq, text, ts, te)
end
when /^\\([gk])<\d+>/ # angle-brackets
if $1 == 'k'
emit(:backref, :number_ref_ab, text, ts, te)
else
emit(:backref, :number_call_ab, text, ts, te)
end
when /^\\([gk])'\d+'/ # single quotes
if $1 == 'k'
emit(:backref, :number_ref_sq, text, ts, te)
else
emit(:backref, :number_call_sq, text, ts, te)
end
when /^\\([gk])<-\d+>/ # angle-brackets
if $1 == 'k'
emit(:backref, :number_rel_ref_ab, text, ts, te)
else
emit(:backref, :number_rel_call_ab, text, ts, te)
end
when /^\\([gk])'-\d+'/ # single quotes
if $1 == 'k'
emit(:backref, :number_rel_ref_sq, text, ts, te)
else
emit(:backref, :number_rel_call_sq, text, ts, te)
end
when /^\\k<[^\d-](\w+)?[+\-]\d+>/ # angle-brackets
emit(:backref, :name_nest_ref_ab, text, ts, te)
when /^\\k'[^\d-](\w+)?[+\-]\d+'/ # single-quotes
emit(:backref, :name_nest_ref_sq, text, ts, te)
when /^\\([gk])<\d+[+\-]\d+>/ # angle-brackets
emit(:backref, :number_nest_ref_ab, text, ts, te)
when /^\\([gk])'\d+[+\-]\d+'/ # single-quotes
emit(:backref, :number_nest_ref_sq, text, ts, te)
else
raise ScannerError.new(
"Unknown backreference format '#{text}'")
end
end
end
when 50 then
# line 631 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
case text = text(data, ts, te).first
when '?' ; emit(:quantifier, :zero_or_one, text, ts, te)
when '??'; emit(:quantifier, :zero_or_one_reluctant, text, ts, te)
when '?+'; emit(:quantifier, :zero_or_one_possessive, text, ts, te)
end
end
end
when 46 then
# line 639 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
case text = text(data, ts, te).first
when '*' ; emit(:quantifier, :zero_or_more, text, ts, te)
when '*?'; emit(:quantifier, :zero_or_more_reluctant, text, ts, te)
when '*+'; emit(:quantifier, :zero_or_more_possessive, text, ts, te)
end
end
end
when 48 then
# line 647 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
case text = text(data, ts, te).first
when '+' ; emit(:quantifier, :one_or_more, text, ts, te)
when '+?'; emit(:quantifier, :one_or_more_reluctant, text, ts, te)
when '++'; emit(:quantifier, :one_or_more_possessive, text, ts, te)
end
end
end
when 55 then
# line 655 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
emit(:quantifier, :interval, *text(data, ts, te))
end
end
when 43 then
# line 548 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p
p = p - 1; begin
text = text(data, ts, te).first
emit(:group, :capture, text, ts, te)
end
end
when 49 then
# line 631 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p
p = p - 1; begin
case text = text(data, ts, te).first
when '?' ; emit(:quantifier, :zero_or_one, text, ts, te)
when '??'; emit(:quantifier, :zero_or_one_reluctant, text, ts, te)
when '?+'; emit(:quantifier, :zero_or_one_possessive, text, ts, te)
end
end
end
when 45 then
# line 639 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p
p = p - 1; begin
case text = text(data, ts, te).first
when '*' ; emit(:quantifier, :zero_or_more, text, ts, te)
when '*?'; emit(:quantifier, :zero_or_more_reluctant, text, ts, te)
when '*+'; emit(:quantifier, :zero_or_more_possessive, text, ts, te)
end
end
end
when 47 then
# line 647 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p
p = p - 1; begin
case text = text(data, ts, te).first
when '+' ; emit(:quantifier, :one_or_more, text, ts, te)
when '+?'; emit(:quantifier, :one_or_more_reluctant, text, ts, te)
when '++'; emit(:quantifier, :one_or_more_possessive, text, ts, te)
end
end
end
when 54 then
# line 655 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p
p = p - 1; begin
emit(:quantifier, :interval, *text(data, ts, te))
end
end
when 51 then
# line 661 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p
p = p - 1; begin
begin
stack[top] = cs
top+= 1
cs = 167
_goto_level = _again
next
end
end
end
when 42 then
# line 672 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p
p = p - 1; begin
append_literal(data, ts, te)
end
end
when 3 then
# line 548 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
begin p = ((te))-1; end
begin
text = text(data, ts, te).first
emit(:group, :capture, text, ts, te)
end
end
when 9 then
# line 661 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
begin p = ((te))-1; end
begin
begin
stack[top] = cs
top+= 1
cs = 167
_goto_level = _again
next
end
end
end
when 1 then
# line 1 "NONE"
begin
case act
when 0 then
begin begin
cs = 0
_goto_level = _again
next
end
end
when 53 then
begin begin p = ((te))-1; end
append_literal(data, ts, te)
end
end
end
when 65 then
# line 124 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
text = ts ? copy(data, ts-1..-1) : data.pack('c*')
raise PrematureEndError.new( text )
end
# line 191 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p
p = p - 1; begin
set_depth += 1; in_set = true
set_type = set_depth > 1 ? :subset : :set
emit(set_type, :open, *text(data, ts, te))
begin
stack[top] = cs
top+= 1
cs = 145
_goto_level = _again
next
end
end
end
when 17 then
# line 124 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
text = ts ? copy(data, ts-1..-1) : data.pack('c*')
raise PrematureEndError.new( text )
end
# line 191 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
begin p = ((te))-1; end
begin
set_depth += 1; in_set = true
set_type = set_depth > 1 ? :subset : :set
emit(set_type, :open, *text(data, ts, te))
begin
stack[top] = cs
top+= 1
cs = 145
_goto_level = _again
next
end
end
end
when 88 then
# line 124 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
text = ts ? copy(data, ts-1..-1) : data.pack('c*')
raise PrematureEndError.new( text )
end
# line 351 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p
p = p - 1; begin
emit(:escape, :hex, *text(data, ts, te, 1))
begin
top -= 1
cs = stack[top]
_goto_level = _again
next
end
end
end
when 92 then
# line 124 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
text = ts ? copy(data, ts-1..-1) : data.pack('c*')
raise PrematureEndError.new( text )
end
# line 365 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p
p = p - 1; begin
raise InvalidSequenceError.new("wide hex sequence")
begin
top -= 1
cs = stack[top]
_goto_level = _again
next
end
end
end
when 86 then
# line 124 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
text = ts ? copy(data, ts-1..-1) : data.pack('c*')
raise PrematureEndError.new( text )
end
# line 385 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p
p = p - 1; begin
if data[te]
c = data[te].chr
if c =~ /[\x00-\x7F]/
emit(:escape, :meta_sequence, copy(data, ts-1..te), ts-1, te+1)
p += 1
else
raise InvalidSequenceError.new("meta sequence")
end
else
raise PrematureEndError.new("meta sequence")
end
begin
top -= 1
cs = stack[top]
_goto_level = _again
next
end
end
end
when 26 then
# line 124 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
text = ts ? copy(data, ts-1..-1) : data.pack('c*')
raise PrematureEndError.new( text )
end
# line 385 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
begin p = ((te))-1; end
begin
if data[te]
c = data[te].chr
if c =~ /[\x00-\x7F]/
emit(:escape, :meta_sequence, copy(data, ts-1..te), ts-1, te+1)
p += 1
else
raise InvalidSequenceError.new("meta sequence")
end
else
raise PrematureEndError.new("meta sequence")
end
begin
top -= 1
cs = stack[top]
_goto_level = _again
next
end
end
end
when 30 then
# line 130 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
text = ts ? copy(data, ts-1..-1) : data.pack('c*')
raise InvalidSequenceError.new('sequence', text)
end
# line 361 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
begin
top -= 1
cs = stack[top]
_goto_level = _again
next
end
end
end
when 44 then
# line 137 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
group_depth -= 1; in_group = group_depth > 0 ? true : false end
# line 136 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
group_depth += 1; in_group = true end
when 8 then
# line 137 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
group_depth -= 1; in_group = group_depth > 0 ? true : false end
# line 489 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
emit(:group, :comment, *text(data, ts, te))
end
end
when 37 then
# line 137 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
group_depth -= 1; in_group = group_depth > 0 ? true : false end
# line 553 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
te = p+1
begin
emit(:group, :close, *text(data, ts, te))
end
end
when 36 then
# line 1 "NONE"
begin
te = p+1
end
# line 136 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
group_depth += 1; in_group = true end
when 68 then
# line 1 "NONE"
begin
te = p+1
end
# line 266 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
act = 18; end
when 23 then
# line 1 "NONE"
begin
te = p+1
end
# line 283 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
act = 20; end
when 79 then
# line 1 "NONE"
begin
te = p+1
end
# line 293 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
act = 21; end
when 78 then
# line 1 "NONE"
begin
te = p+1
end
# line 299 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
act = 22; end
when 2 then
# line 1 "NONE"
begin
te = p+1
end
# line 672 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
act = 53; end
# line 3475 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner.rb"
end
end
end
if _goto_level <= _again
case _re_scanner_to_state_actions[cs]
when 56 then
# line 1 "NONE"
begin
ts = nil; end
when 33 then
# line 1 "NONE"
begin
ts = nil; end
# line 1 "NONE"
begin
act = 0
end
# line 3493 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner.rb"
end
if cs == 0
_goto_level = _out
next
end
p += 1
if p != pe
_goto_level = _resume
next
end
end
if _goto_level <= _test_eof
if p == eof
if _re_scanner_eof_trans[cs] > 0
_trans = _re_scanner_eof_trans[cs] - 1;
_goto_level = _eof_trans
next;
end
case _re_scanner_eof_actions[cs]
when 12 then
# line 52 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/property.rl"
begin
raise PrematureEndError.new('unicode property')
end
when 11 then
# line 124 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
begin
text = ts ? copy(data, ts-1..-1) : data.pack('c*')
raise PrematureEndError.new( text )
end
# line 3527 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner.rb"
end
end
end
if _goto_level <= _out
break
end
end
end
# line 755 "/Users/ammar/src/ruby/projects/regexp_parser/lib/regexp_parser/scanner/scanner.rl"
if cs == re_scanner_error
text = ts ? copy(data, ts-1..-1) : data.pack('c*')
raise ScannerError.new("Scan error at '#{text}'")
end
raise PrematureEndError.new("(missing group closing paranthesis) "+
"[#{in_group}:#{group_depth}]") if in_group
raise PrematureEndError.new("(missing set closing bracket) "+
"[#{in_set}:#{set_depth}]") if in_set
# when the entire expression is a literal run
emit_literal if @literal
@tokens
end
private
# Ragel's regex-based scan of the group options introduced a lot of
# ambiguity, so we just ask it to find the beginning of what looks
# like an options run and handle the rest in here.
def self.scan_options(p, data, ts, te)
text = text(data, ts, te).first
options_char, options_length = true, 0
# Copy while we have option characters, the maximum is 7, for (?mix-mix,
# even though it doesn't make sense it is possible.
while options_char and options_length < 7
if data[te + options_length]
c = data[te + options_length].chr
if c =~ /[-mix]/
text << c ; p += 1 ; options_length += 1
else
options_char = false
end
else
raise PrematureEndError.new("expression options `#{text}'")
end
end
if data[te + options_length]
c = data[te + options_length].chr
if c == ':'
# Include the ':' in the options text
text << c ; p += 1 ; options_length += 1
emit(:group, :options, text, ts, te + options_length)
elsif c == ')'
# Don't include the closing ')', let group_close handle it.
emit(:group, :options, text, ts, te + options_length)
else
# Plain Regexp reports this as 'undefined group option'
raise ScannerError.new(
"Unexpected `#{c}' in options sequence, ':' or ')' expected")
end
else
raise PrematureEndError.new("expression options `#{text}'")
end
p # return the new value of the data pointer
end
# Copy from ts to te from data as text
def self.copy(data, range)
data[range].pack('c*')
end
# Copy from ts to te from data as text, returning an array with the text
# and the offsets used to copy it.
def self.text(data, ts, te, soff = 0)
[copy(data, ts-soff..te-1), ts-soff, te]
end
# Appends one or more characters to the literal buffer, to be emitted later
# by a call to emit_literal. Contents can be a mix of ASCII and UTF-8.
def self.append_literal(data, ts, te)
@literal ||= []
@literal << text(data, ts, te)
end
# Emits the literal run collected by calls to the append_literal method,
# using the total start (ts) and end (te) offsets of the run.
def self.emit_literal
ts, te = @literal.first[1], @literal.last[2]
text = @literal.map {|t| t[0]}.join
text.force_encoding('utf-8') if text.respond_to?(:force_encoding)
@literal = nil
emit(:literal, :literal, text, ts, te)
end
# Emits an array with the details of the scanned pattern
def self.emit(type, token, text, ts, te)
#puts "EMIT: type: #{type}, token: #{token}, text: #{text}, ts: #{ts}, te: #{te}"
emit_literal if @literal
if @block
@block.call type, token, text, ts, te
end
@tokens << [type, token, text, ts, te]
end
# Centralizes and unifies the handling of validation related
# errors.
def self.validation_error(type, what, reason)
case type
when :group
error = InvalidGroupError.new(what, reason)
when :backref
error = InvalidBackrefError.new(what, reason)
when :sequence
error = InvalidSequenceError.new(what, reason)
else
error = ValidationError.new('expression')
end
# TODO: configuration option to treat scanner level validation
# errors as warnings or ignore them
if false # @@config.validation_warn
$stderr.puts error.to_s # unless @@config.validation_ignore
else
raise error # unless @@config.validation_ignore
end
end
# Used for references with an empty name or number
def self.empty_backref_error(type, what)
validation_error(:backref, what, 'ref ID is empty')
end
# Used for named expressions with an empty name
def self.empty_name_error(type, what)
validation_error(type, what, 'name is empty')
end
end # module Regexp::Scanner