radius 0.7.0.prerelease2 → 0.7.0.prerelease3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,1181 +1,11 @@
1
-
2
- # line 1 "squiggle_scanner.rl"
3
-
4
- # line 85 "squiggle_scanner.rl"
5
-
6
-
7
- module Radius
8
- class SquiggleScanner
9
- def operate(prefix, data)
10
- data = Radius::OrdString.new data
11
- buf = ""
12
- csel = ""
13
- @prematch = ''
14
- @starttag = nil
15
- @attrs = {}
16
- @flavor = :tasteless
17
- @cursor = 0
18
- @tagstart = 0
19
- @nodes = ['']
20
- remainder = data.dup
21
-
22
- until remainder.length == 0
23
- p = perform_parse(prefix, remainder)
24
- remainder = remainder[p..-1]
25
- end
26
-
27
- return @nodes
28
- end
1
+ module Radius
2
+ class SquiggleScanner < Scanner
29
3
 
30
- private
31
- def perform_parse(prefix, data)
32
- stack = []
33
- p = 0
34
- ts = 0
35
- te = 0
36
- act = 0
37
- eof = data.length
38
-
39
- @prefix = prefix
40
-
41
- # line 42 "squiggle_scanner.rb"
42
- class << self
43
- attr_accessor :_parser_trans_keys
44
- private :_parser_trans_keys, :_parser_trans_keys=
45
- end
46
- self._parser_trans_keys = [
47
- 0, 0, 9, 122, 9, 125,
48
- 9, 125, 9, 122, 9,
49
- 61, 9, 39, 34, 92,
50
- 34, 92, 9, 125, 9, 125,
51
- 125, 125, 34, 92, 9,
52
- 125, 9, 125, 9, 122,
53
- 9, 92, 9, 92, 9, 125,
54
- 34, 125, 34, 92, 34,
55
- 92, 9, 125, 39, 92,
56
- 39, 92, 9, 125, 9, 122,
57
- 9, 92, 9, 92, 34,
58
- 92, 34, 92, 9, 125,
59
- 9, 125, 9, 122, 9, 92,
60
- 9, 92, 9, 125, 34,
61
- 125, 9, 125, 9, 125,
62
- 39, 125, 39, 92, 45, 122,
63
- 9, 125, 9, 125, 0,
64
- 0, 123, 123, 9, 122,
65
- 0, 0, 0, 0, 34, 92,
66
- 34, 92, 34, 92, 34,
67
- 92, 39, 92, 39, 92,
68
- 0, 0, 0
69
- ]
70
-
71
- class << self
72
- attr_accessor :_parser_key_spans
73
- private :_parser_key_spans, :_parser_key_spans=
74
- end
75
- self._parser_key_spans = [
76
- 0, 114, 117, 117, 114, 53, 31, 59,
77
- 59, 117, 117, 1, 59, 117, 117, 114,
78
- 84, 84, 117, 92, 59, 59, 117, 54,
79
- 54, 117, 114, 84, 84, 59, 59, 117,
80
- 117, 114, 84, 84, 117, 92, 117, 117,
81
- 87, 54, 78, 117, 117, 0, 1, 114,
82
- 0, 0, 59, 59, 59, 59, 54, 54,
83
- 0
84
- ]
85
-
86
- class << self
87
- attr_accessor :_parser_index_offsets
88
- private :_parser_index_offsets, :_parser_index_offsets=
89
- end
90
- self._parser_index_offsets = [
91
- 0, 0, 115, 233, 351, 466, 520, 552,
92
- 612, 672, 790, 908, 910, 970, 1088, 1206,
93
- 1321, 1406, 1491, 1609, 1702, 1762, 1822, 1940,
94
- 1995, 2050, 2168, 2283, 2368, 2453, 2513, 2573,
95
- 2691, 2809, 2924, 3009, 3094, 3212, 3305, 3423,
96
- 3541, 3629, 3684, 3763, 3881, 3999, 4000, 4002,
97
- 4117, 4118, 4119, 4179, 4239, 4299, 4359, 4414,
98
- 4469
99
- ]
100
-
101
- class << self
102
- attr_accessor :_parser_indicies
103
- private :_parser_indicies, :_parser_indicies=
104
- end
105
- self._parser_indicies = [
106
- 1, 1, 1, 1, 1, 0, 0, 0,
107
- 0, 0, 0, 0, 0, 0, 0, 0,
108
- 0, 0, 0, 0, 0, 0, 0, 1,
109
- 0, 0, 0, 0, 0, 0, 0, 0,
110
- 0, 0, 0, 0, 2, 2, 3, 2,
111
- 2, 2, 2, 2, 2, 2, 2, 2,
112
- 2, 2, 0, 0, 0, 0, 2, 0,
113
- 2, 2, 2, 2, 2, 2, 2, 2,
114
- 2, 2, 2, 2, 2, 2, 2, 2,
115
- 2, 2, 2, 2, 2, 2, 2, 2,
116
- 2, 2, 0, 0, 0, 0, 2, 0,
117
- 2, 2, 2, 2, 2, 2, 2, 2,
118
- 2, 2, 2, 2, 2, 2, 2, 2,
119
- 2, 2, 2, 2, 2, 2, 2, 2,
120
- 2, 2, 0, 4, 4, 4, 4, 4,
121
- 0, 0, 0, 0, 0, 0, 0, 0,
122
- 0, 0, 0, 0, 0, 0, 0, 0,
123
- 0, 0, 4, 0, 0, 0, 0, 0,
124
- 0, 0, 0, 0, 0, 0, 0, 5,
125
- 5, 6, 5, 5, 5, 5, 5, 5,
126
- 5, 5, 5, 5, 5, 0, 0, 0,
127
- 0, 5, 0, 5, 5, 5, 5, 5,
128
- 5, 5, 5, 5, 5, 5, 5, 5,
129
- 5, 5, 5, 5, 5, 5, 5, 5,
130
- 5, 5, 5, 5, 5, 0, 0, 0,
131
- 0, 5, 0, 5, 5, 5, 5, 5,
132
- 5, 5, 5, 5, 5, 5, 5, 5,
133
- 5, 5, 5, 5, 5, 5, 5, 5,
134
- 5, 5, 5, 5, 5, 0, 0, 7,
135
- 0, 8, 8, 8, 8, 8, 0, 0,
136
- 0, 0, 0, 0, 0, 0, 0, 0,
137
- 0, 0, 0, 0, 0, 0, 0, 0,
138
- 8, 0, 0, 0, 0, 0, 0, 0,
139
- 0, 0, 0, 0, 0, 9, 9, 10,
140
- 9, 9, 9, 9, 9, 9, 9, 9,
141
- 9, 9, 9, 0, 0, 0, 0, 9,
142
- 0, 9, 9, 9, 9, 9, 9, 9,
143
- 9, 9, 9, 9, 9, 9, 9, 9,
144
- 9, 9, 9, 9, 9, 9, 9, 9,
145
- 9, 9, 9, 0, 0, 0, 0, 9,
146
- 0, 9, 9, 9, 9, 9, 9, 9,
147
- 9, 9, 9, 9, 9, 9, 9, 9,
148
- 9, 9, 9, 9, 9, 9, 9, 9,
149
- 9, 9, 9, 0, 0, 11, 0, 13,
150
- 13, 13, 13, 13, 12, 12, 12, 12,
151
- 12, 12, 12, 12, 12, 12, 12, 12,
152
- 12, 12, 12, 12, 12, 12, 13, 12,
153
- 12, 12, 12, 12, 12, 12, 12, 12,
154
- 12, 12, 12, 14, 14, 12, 14, 14,
155
- 14, 14, 14, 14, 14, 14, 14, 14,
156
- 14, 12, 12, 15, 12, 14, 12, 14,
157
- 14, 14, 14, 14, 14, 14, 14, 14,
158
- 14, 14, 14, 14, 14, 14, 14, 14,
159
- 14, 14, 14, 14, 14, 14, 14, 14,
160
- 14, 12, 12, 12, 12, 14, 12, 14,
161
- 14, 14, 14, 14, 14, 14, 14, 14,
162
- 14, 14, 14, 14, 14, 14, 14, 14,
163
- 14, 14, 14, 14, 14, 14, 14, 14,
164
- 14, 12, 16, 16, 16, 16, 16, 12,
165
- 12, 12, 12, 12, 12, 12, 12, 12,
166
- 12, 12, 12, 12, 12, 12, 12, 12,
167
- 12, 16, 12, 12, 12, 12, 12, 12,
168
- 12, 12, 12, 12, 12, 12, 12, 12,
169
- 12, 12, 12, 12, 12, 12, 12, 12,
170
- 12, 12, 12, 12, 12, 12, 17, 12,
171
- 17, 17, 17, 17, 17, 12, 12, 12,
172
- 12, 12, 12, 12, 12, 12, 12, 12,
173
- 12, 12, 12, 12, 12, 12, 12, 17,
174
- 12, 18, 12, 12, 12, 12, 19, 12,
175
- 21, 20, 20, 20, 20, 20, 20, 20,
176
- 20, 20, 20, 20, 20, 20, 20, 20,
177
- 20, 20, 20, 20, 20, 20, 20, 20,
178
- 20, 20, 20, 20, 20, 20, 20, 20,
179
- 20, 20, 20, 20, 20, 20, 20, 20,
180
- 20, 20, 20, 20, 20, 20, 20, 20,
181
- 20, 20, 20, 20, 20, 20, 20, 20,
182
- 20, 20, 22, 20, 24, 23, 23, 23,
183
- 23, 23, 23, 23, 23, 23, 23, 23,
184
- 23, 23, 23, 23, 23, 23, 23, 23,
185
- 23, 23, 23, 23, 23, 23, 23, 23,
186
- 23, 23, 23, 23, 23, 23, 23, 23,
187
- 23, 23, 23, 23, 23, 23, 23, 23,
188
- 23, 23, 23, 23, 23, 23, 23, 23,
189
- 23, 23, 23, 23, 23, 23, 25, 23,
190
- 26, 26, 26, 26, 26, 12, 12, 12,
191
- 12, 12, 12, 12, 12, 12, 12, 12,
192
- 12, 12, 12, 12, 12, 12, 12, 26,
193
- 12, 12, 12, 12, 12, 12, 12, 12,
194
- 12, 12, 12, 12, 27, 27, 28, 27,
195
- 27, 27, 27, 27, 27, 27, 27, 27,
196
- 27, 27, 12, 12, 12, 12, 27, 12,
197
- 27, 27, 27, 27, 27, 27, 27, 27,
198
- 27, 27, 27, 27, 27, 27, 27, 27,
199
- 27, 27, 27, 27, 27, 27, 27, 27,
200
- 27, 27, 12, 12, 12, 12, 27, 12,
201
- 27, 27, 27, 27, 27, 27, 27, 27,
202
- 27, 27, 27, 27, 27, 27, 27, 27,
203
- 27, 27, 27, 27, 27, 27, 27, 27,
204
- 27, 27, 12, 12, 29, 12, 30, 30,
205
- 30, 30, 30, 12, 12, 12, 12, 12,
206
- 12, 12, 12, 12, 12, 12, 12, 12,
207
- 12, 12, 12, 12, 12, 30, 12, 12,
208
- 12, 12, 12, 12, 12, 12, 12, 12,
209
- 12, 12, 31, 31, 32, 31, 31, 31,
210
- 31, 31, 31, 31, 31, 31, 31, 31,
211
- 12, 12, 12, 12, 31, 12, 31, 31,
212
- 31, 31, 31, 31, 31, 31, 31, 31,
213
- 31, 31, 31, 31, 31, 31, 31, 31,
214
- 31, 31, 31, 31, 31, 31, 31, 31,
215
- 12, 12, 12, 12, 31, 12, 31, 31,
216
- 31, 31, 31, 31, 31, 31, 31, 31,
217
- 31, 31, 31, 31, 31, 31, 31, 31,
218
- 31, 31, 31, 31, 31, 31, 31, 31,
219
- 12, 12, 33, 12, 34, 12, 35, 23,
220
- 23, 23, 23, 23, 23, 23, 23, 23,
221
- 23, 23, 23, 23, 23, 23, 23, 23,
222
- 23, 23, 23, 23, 23, 23, 23, 23,
223
- 23, 23, 23, 23, 23, 23, 23, 23,
224
- 23, 23, 23, 23, 23, 23, 23, 23,
225
- 23, 23, 23, 23, 23, 23, 23, 23,
226
- 23, 23, 23, 23, 23, 23, 23, 23,
227
- 25, 23, 36, 36, 36, 36, 36, 23,
228
- 23, 23, 23, 23, 23, 23, 23, 23,
229
- 23, 23, 23, 23, 23, 23, 23, 23,
230
- 23, 36, 23, 24, 23, 23, 23, 23,
231
- 23, 23, 23, 23, 23, 23, 37, 37,
232
- 38, 37, 37, 37, 37, 37, 37, 37,
233
- 37, 37, 37, 37, 23, 23, 23, 23,
234
- 37, 23, 37, 37, 37, 37, 37, 37,
235
- 37, 37, 37, 37, 37, 37, 37, 37,
236
- 37, 37, 37, 37, 37, 37, 37, 37,
237
- 37, 37, 37, 37, 23, 25, 23, 23,
238
- 37, 23, 37, 37, 37, 37, 37, 37,
239
- 37, 37, 37, 37, 37, 37, 37, 37,
240
- 37, 37, 37, 37, 37, 37, 37, 37,
241
- 37, 37, 37, 37, 23, 23, 39, 23,
242
- 40, 40, 40, 40, 40, 23, 23, 23,
243
- 23, 23, 23, 23, 23, 23, 23, 23,
244
- 23, 23, 23, 23, 23, 23, 23, 40,
245
- 23, 24, 23, 23, 23, 23, 23, 23,
246
- 23, 23, 23, 23, 41, 41, 42, 41,
247
- 41, 41, 41, 41, 41, 41, 41, 41,
248
- 41, 41, 23, 23, 23, 23, 41, 23,
249
- 41, 41, 41, 41, 41, 41, 41, 41,
250
- 41, 41, 41, 41, 41, 41, 41, 41,
251
- 41, 41, 41, 41, 41, 41, 41, 41,
252
- 41, 41, 23, 25, 23, 23, 41, 23,
253
- 41, 41, 41, 41, 41, 41, 41, 41,
254
- 41, 41, 41, 41, 41, 41, 41, 41,
255
- 41, 41, 41, 41, 41, 41, 41, 41,
256
- 41, 41, 23, 23, 43, 23, 44, 44,
257
- 44, 44, 44, 23, 23, 23, 23, 23,
258
- 23, 23, 23, 23, 23, 23, 23, 23,
259
- 23, 23, 23, 23, 23, 44, 23, 24,
260
- 23, 23, 23, 23, 23, 23, 23, 23,
261
- 23, 23, 45, 45, 23, 45, 45, 45,
262
- 45, 45, 45, 45, 45, 45, 45, 45,
263
- 23, 23, 46, 23, 45, 23, 45, 45,
264
- 45, 45, 45, 45, 45, 45, 45, 45,
265
- 45, 45, 45, 45, 45, 45, 45, 45,
266
- 45, 45, 45, 45, 45, 45, 45, 45,
267
- 23, 25, 23, 23, 45, 23, 45, 45,
268
- 45, 45, 45, 45, 45, 45, 45, 45,
269
- 45, 45, 45, 45, 45, 45, 45, 45,
270
- 45, 45, 45, 45, 45, 45, 45, 45,
271
- 23, 47, 47, 47, 47, 47, 23, 23,
272
- 23, 23, 23, 23, 23, 23, 23, 23,
273
- 23, 23, 23, 23, 23, 23, 23, 23,
274
- 47, 23, 24, 23, 23, 23, 23, 23,
275
- 23, 23, 23, 23, 23, 23, 23, 23,
276
- 23, 23, 23, 23, 23, 23, 23, 23,
277
- 23, 23, 23, 23, 23, 48, 23, 23,
278
- 23, 23, 23, 23, 23, 23, 23, 23,
279
- 23, 23, 23, 23, 23, 23, 23, 23,
280
- 23, 23, 23, 23, 23, 23, 23, 23,
281
- 23, 23, 23, 23, 25, 23, 48, 48,
282
- 48, 48, 48, 23, 23, 23, 23, 23,
283
- 23, 23, 23, 23, 23, 23, 23, 23,
284
- 23, 23, 23, 23, 23, 48, 23, 49,
285
- 23, 23, 23, 23, 50, 23, 23, 23,
286
- 23, 23, 23, 23, 23, 23, 23, 23,
287
- 23, 23, 23, 23, 23, 23, 23, 23,
288
- 23, 23, 23, 23, 23, 23, 23, 23,
289
- 23, 23, 23, 23, 23, 23, 23, 23,
290
- 23, 23, 23, 23, 23, 23, 23, 23,
291
- 23, 23, 23, 23, 23, 23, 23, 23,
292
- 23, 25, 23, 51, 51, 51, 51, 51,
293
- 20, 20, 20, 20, 20, 20, 20, 20,
294
- 20, 20, 20, 20, 20, 20, 20, 20,
295
- 20, 20, 51, 20, 21, 20, 20, 20,
296
- 20, 20, 20, 20, 20, 20, 20, 52,
297
- 52, 53, 52, 52, 52, 52, 52, 52,
298
- 52, 52, 52, 52, 52, 20, 20, 20,
299
- 20, 52, 20, 52, 52, 52, 52, 52,
300
- 52, 52, 52, 52, 52, 52, 52, 52,
301
- 52, 52, 52, 52, 52, 52, 52, 52,
302
- 52, 52, 52, 52, 52, 20, 22, 20,
303
- 20, 52, 20, 52, 52, 52, 52, 52,
304
- 52, 52, 52, 52, 52, 52, 52, 52,
305
- 52, 52, 52, 52, 52, 52, 52, 52,
306
- 52, 52, 52, 52, 52, 20, 20, 54,
307
- 20, 24, 23, 23, 23, 23, 23, 23,
308
- 23, 23, 23, 23, 23, 23, 23, 23,
309
- 23, 23, 23, 23, 23, 23, 23, 23,
310
- 23, 23, 23, 23, 23, 23, 23, 23,
311
- 23, 23, 23, 23, 23, 23, 23, 23,
312
- 23, 23, 23, 23, 23, 23, 23, 23,
313
- 23, 23, 23, 23, 23, 23, 23, 23,
314
- 23, 23, 23, 25, 23, 23, 23, 23,
315
- 23, 23, 23, 23, 23, 23, 23, 23,
316
- 23, 23, 23, 23, 23, 23, 23, 23,
317
- 23, 23, 23, 23, 23, 23, 23, 23,
318
- 23, 23, 23, 23, 55, 23, 57, 56,
319
- 56, 56, 56, 58, 56, 56, 56, 56,
320
- 56, 56, 56, 56, 56, 56, 56, 56,
321
- 56, 56, 56, 56, 56, 56, 56, 56,
322
- 56, 56, 56, 56, 56, 56, 56, 56,
323
- 56, 56, 56, 56, 56, 56, 56, 56,
324
- 56, 56, 56, 56, 56, 56, 56, 56,
325
- 56, 56, 56, 56, 56, 56, 56, 56,
326
- 59, 56, 61, 60, 60, 60, 60, 35,
327
- 60, 60, 60, 60, 60, 60, 60, 60,
328
- 60, 60, 60, 60, 60, 60, 60, 60,
329
- 60, 60, 60, 60, 60, 60, 60, 60,
330
- 60, 60, 60, 60, 60, 60, 60, 60,
331
- 60, 60, 60, 60, 60, 60, 60, 60,
332
- 60, 60, 60, 60, 60, 60, 60, 60,
333
- 60, 60, 60, 60, 62, 60, 64, 64,
334
- 64, 64, 64, 63, 63, 63, 63, 63,
335
- 63, 63, 63, 63, 63, 63, 63, 63,
336
- 63, 63, 63, 63, 63, 64, 63, 63,
337
- 63, 63, 63, 63, 24, 63, 63, 63,
338
- 63, 63, 65, 65, 66, 65, 65, 65,
339
- 65, 65, 65, 65, 65, 65, 65, 65,
340
- 63, 63, 63, 63, 65, 63, 65, 65,
341
- 65, 65, 65, 65, 65, 65, 65, 65,
342
- 65, 65, 65, 65, 65, 65, 65, 65,
343
- 65, 65, 65, 65, 65, 65, 65, 65,
344
- 63, 67, 63, 63, 65, 63, 65, 65,
345
- 65, 65, 65, 65, 65, 65, 65, 65,
346
- 65, 65, 65, 65, 65, 65, 65, 65,
347
- 65, 65, 65, 65, 65, 65, 65, 65,
348
- 63, 63, 68, 63, 24, 63, 63, 63,
349
- 63, 63, 63, 63, 63, 63, 63, 63,
350
- 63, 63, 63, 63, 63, 63, 63, 63,
351
- 63, 63, 63, 63, 63, 63, 63, 63,
352
- 63, 63, 63, 63, 63, 63, 63, 63,
353
- 63, 63, 63, 63, 63, 63, 63, 63,
354
- 63, 63, 63, 63, 63, 63, 63, 63,
355
- 63, 67, 63, 61, 63, 63, 63, 63,
356
- 63, 63, 63, 63, 63, 63, 63, 63,
357
- 63, 63, 63, 63, 63, 63, 63, 63,
358
- 63, 63, 63, 63, 63, 63, 63, 63,
359
- 63, 63, 63, 63, 63, 63, 63, 63,
360
- 63, 63, 63, 63, 63, 63, 63, 63,
361
- 63, 63, 63, 63, 63, 63, 63, 63,
362
- 67, 63, 69, 69, 69, 69, 69, 63,
363
- 63, 63, 63, 63, 63, 63, 63, 63,
364
- 63, 63, 63, 63, 63, 63, 63, 63,
365
- 63, 69, 63, 63, 63, 63, 63, 63,
366
- 24, 63, 63, 63, 63, 63, 70, 70,
367
- 71, 70, 70, 70, 70, 70, 70, 70,
368
- 70, 70, 70, 70, 63, 63, 63, 63,
369
- 70, 63, 70, 70, 70, 70, 70, 70,
370
- 70, 70, 70, 70, 70, 70, 70, 70,
371
- 70, 70, 70, 70, 70, 70, 70, 70,
372
- 70, 70, 70, 70, 63, 67, 63, 63,
373
- 70, 63, 70, 70, 70, 70, 70, 70,
374
- 70, 70, 70, 70, 70, 70, 70, 70,
375
- 70, 70, 70, 70, 70, 70, 70, 70,
376
- 70, 70, 70, 70, 63, 63, 72, 63,
377
- 73, 73, 73, 73, 73, 63, 63, 63,
378
- 63, 63, 63, 63, 63, 63, 63, 63,
379
- 63, 63, 63, 63, 63, 63, 63, 73,
380
- 63, 63, 63, 63, 63, 63, 24, 63,
381
- 63, 63, 63, 63, 74, 74, 63, 74,
382
- 74, 74, 74, 74, 74, 74, 74, 74,
383
- 74, 74, 63, 63, 75, 63, 74, 63,
384
- 74, 74, 74, 74, 74, 74, 74, 74,
385
- 74, 74, 74, 74, 74, 74, 74, 74,
386
- 74, 74, 74, 74, 74, 74, 74, 74,
387
- 74, 74, 63, 67, 63, 63, 74, 63,
388
- 74, 74, 74, 74, 74, 74, 74, 74,
389
- 74, 74, 74, 74, 74, 74, 74, 74,
390
- 74, 74, 74, 74, 74, 74, 74, 74,
391
- 74, 74, 63, 76, 76, 76, 76, 76,
392
- 63, 63, 63, 63, 63, 63, 63, 63,
393
- 63, 63, 63, 63, 63, 63, 63, 63,
394
- 63, 63, 76, 63, 63, 63, 63, 63,
395
- 63, 24, 63, 63, 63, 63, 63, 63,
396
- 63, 63, 63, 63, 63, 63, 63, 63,
397
- 63, 63, 63, 63, 63, 63, 63, 77,
398
- 63, 63, 63, 63, 63, 63, 63, 63,
399
- 63, 63, 63, 63, 63, 63, 63, 63,
400
- 63, 63, 63, 63, 63, 63, 63, 63,
401
- 63, 63, 63, 63, 63, 63, 67, 63,
402
- 77, 77, 77, 77, 77, 63, 63, 63,
403
- 63, 63, 63, 63, 63, 63, 63, 63,
404
- 63, 63, 63, 63, 63, 63, 63, 77,
405
- 63, 78, 63, 63, 63, 63, 79, 63,
406
- 63, 63, 63, 63, 63, 63, 63, 63,
407
- 63, 63, 63, 63, 63, 63, 63, 63,
408
- 63, 63, 63, 63, 63, 63, 63, 63,
409
- 63, 63, 63, 63, 63, 63, 63, 63,
410
- 63, 63, 63, 63, 63, 63, 63, 63,
411
- 63, 63, 63, 63, 63, 63, 63, 63,
412
- 63, 63, 63, 67, 63, 80, 56, 56,
413
- 56, 56, 58, 56, 56, 56, 56, 56,
414
- 56, 56, 56, 56, 56, 56, 56, 56,
415
- 56, 56, 56, 56, 56, 56, 56, 56,
416
- 56, 56, 56, 56, 56, 56, 56, 56,
417
- 56, 56, 56, 56, 56, 56, 56, 56,
418
- 56, 56, 56, 56, 56, 56, 56, 56,
419
- 56, 56, 56, 56, 56, 56, 56, 59,
420
- 56, 81, 60, 60, 60, 60, 81, 60,
421
- 60, 60, 60, 60, 60, 60, 60, 60,
422
- 60, 60, 60, 60, 60, 60, 60, 60,
423
- 60, 60, 60, 60, 60, 60, 60, 60,
424
- 60, 60, 60, 60, 60, 60, 60, 60,
425
- 60, 60, 60, 60, 60, 60, 60, 60,
426
- 60, 60, 60, 60, 60, 60, 60, 60,
427
- 60, 60, 60, 62, 60, 82, 82, 82,
428
- 82, 82, 60, 60, 60, 60, 60, 60,
429
- 60, 60, 60, 60, 60, 60, 60, 60,
430
- 60, 60, 60, 60, 82, 60, 61, 60,
431
- 60, 60, 60, 35, 60, 60, 60, 60,
432
- 60, 83, 83, 84, 83, 83, 83, 83,
433
- 83, 83, 83, 83, 83, 83, 83, 60,
434
- 60, 60, 60, 83, 60, 83, 83, 83,
435
- 83, 83, 83, 83, 83, 83, 83, 83,
436
- 83, 83, 83, 83, 83, 83, 83, 83,
437
- 83, 83, 83, 83, 83, 83, 83, 60,
438
- 62, 60, 60, 83, 60, 83, 83, 83,
439
- 83, 83, 83, 83, 83, 83, 83, 83,
440
- 83, 83, 83, 83, 83, 83, 83, 83,
441
- 83, 83, 83, 83, 83, 83, 83, 60,
442
- 60, 85, 60, 86, 86, 86, 86, 86,
443
- 60, 60, 60, 60, 60, 60, 60, 60,
444
- 60, 60, 60, 60, 60, 60, 60, 60,
445
- 60, 60, 86, 60, 61, 60, 60, 60,
446
- 60, 35, 60, 60, 60, 60, 60, 87,
447
- 87, 88, 87, 87, 87, 87, 87, 87,
448
- 87, 87, 87, 87, 87, 60, 60, 60,
449
- 60, 87, 60, 87, 87, 87, 87, 87,
450
- 87, 87, 87, 87, 87, 87, 87, 87,
451
- 87, 87, 87, 87, 87, 87, 87, 87,
452
- 87, 87, 87, 87, 87, 60, 62, 60,
453
- 60, 87, 60, 87, 87, 87, 87, 87,
454
- 87, 87, 87, 87, 87, 87, 87, 87,
455
- 87, 87, 87, 87, 87, 87, 87, 87,
456
- 87, 87, 87, 87, 87, 60, 60, 89,
457
- 60, 90, 90, 90, 90, 90, 60, 60,
458
- 60, 60, 60, 60, 60, 60, 60, 60,
459
- 60, 60, 60, 60, 60, 60, 60, 60,
460
- 90, 60, 61, 60, 60, 60, 60, 35,
461
- 60, 60, 60, 60, 60, 91, 91, 60,
462
- 91, 91, 91, 91, 91, 91, 91, 91,
463
- 91, 91, 91, 60, 60, 92, 60, 91,
464
- 60, 91, 91, 91, 91, 91, 91, 91,
465
- 91, 91, 91, 91, 91, 91, 91, 91,
466
- 91, 91, 91, 91, 91, 91, 91, 91,
467
- 91, 91, 91, 60, 62, 60, 60, 91,
468
- 60, 91, 91, 91, 91, 91, 91, 91,
469
- 91, 91, 91, 91, 91, 91, 91, 91,
470
- 91, 91, 91, 91, 91, 91, 91, 91,
471
- 91, 91, 91, 60, 93, 93, 93, 93,
472
- 93, 60, 60, 60, 60, 60, 60, 60,
473
- 60, 60, 60, 60, 60, 60, 60, 60,
474
- 60, 60, 60, 93, 60, 61, 60, 60,
475
- 60, 60, 35, 60, 60, 60, 60, 60,
476
- 60, 60, 60, 60, 60, 60, 60, 60,
477
- 60, 60, 60, 60, 60, 60, 60, 60,
478
- 94, 60, 60, 60, 60, 60, 60, 60,
479
- 60, 60, 60, 60, 60, 60, 60, 60,
480
- 60, 60, 60, 60, 60, 60, 60, 60,
481
- 60, 60, 60, 60, 60, 60, 60, 62,
482
- 60, 94, 94, 94, 94, 94, 60, 60,
483
- 60, 60, 60, 60, 60, 60, 60, 60,
484
- 60, 60, 60, 60, 60, 60, 60, 60,
485
- 94, 60, 95, 60, 60, 60, 60, 96,
486
- 60, 60, 60, 60, 60, 60, 60, 60,
487
- 60, 60, 60, 60, 60, 60, 60, 60,
488
- 60, 60, 60, 60, 60, 60, 60, 60,
489
- 60, 60, 60, 60, 60, 60, 60, 60,
490
- 60, 60, 60, 60, 60, 60, 60, 60,
491
- 60, 60, 60, 60, 60, 60, 60, 60,
492
- 60, 60, 60, 60, 62, 60, 97, 97,
493
- 97, 97, 97, 56, 56, 56, 56, 56,
494
- 56, 56, 56, 56, 56, 56, 56, 56,
495
- 56, 56, 56, 56, 56, 97, 56, 80,
496
- 56, 56, 56, 56, 58, 56, 56, 56,
497
- 56, 56, 98, 98, 99, 98, 98, 98,
498
- 98, 98, 98, 98, 98, 98, 98, 98,
499
- 56, 56, 56, 56, 98, 56, 98, 98,
500
- 98, 98, 98, 98, 98, 98, 98, 98,
501
- 98, 98, 98, 98, 98, 98, 98, 98,
502
- 98, 98, 98, 98, 98, 98, 98, 98,
503
- 56, 59, 56, 56, 98, 56, 98, 98,
504
- 98, 98, 98, 98, 98, 98, 98, 98,
505
- 98, 98, 98, 98, 98, 98, 98, 98,
506
- 98, 98, 98, 98, 98, 98, 98, 98,
507
- 56, 56, 100, 56, 61, 60, 60, 60,
508
- 60, 35, 60, 60, 60, 60, 60, 60,
509
- 60, 60, 60, 60, 60, 60, 60, 60,
510
- 60, 60, 60, 60, 60, 60, 60, 60,
511
- 60, 60, 60, 60, 60, 60, 60, 60,
512
- 60, 60, 60, 60, 60, 60, 60, 60,
513
- 60, 60, 60, 60, 60, 60, 60, 60,
514
- 60, 60, 60, 60, 60, 60, 62, 60,
515
- 60, 60, 60, 60, 60, 60, 60, 60,
516
- 60, 60, 60, 60, 60, 60, 60, 60,
517
- 60, 60, 60, 60, 60, 60, 60, 60,
518
- 60, 60, 60, 60, 60, 60, 60, 101,
519
- 60, 97, 97, 97, 97, 97, 56, 56,
520
- 56, 56, 56, 56, 56, 56, 56, 56,
521
- 56, 56, 56, 56, 56, 56, 56, 56,
522
- 97, 56, 57, 56, 56, 56, 56, 58,
523
- 56, 56, 56, 56, 56, 98, 98, 99,
524
- 98, 98, 98, 98, 98, 98, 98, 98,
525
- 98, 98, 98, 56, 56, 56, 56, 98,
526
- 56, 98, 98, 98, 98, 98, 98, 98,
527
- 98, 98, 98, 98, 98, 98, 98, 98,
528
- 98, 98, 98, 98, 98, 98, 98, 98,
529
- 98, 98, 98, 56, 59, 56, 56, 98,
530
- 56, 98, 98, 98, 98, 98, 98, 98,
531
- 98, 98, 98, 98, 98, 98, 98, 98,
532
- 98, 98, 98, 98, 98, 98, 98, 98,
533
- 98, 98, 98, 56, 56, 100, 56, 103,
534
- 103, 103, 103, 103, 102, 102, 102, 102,
535
- 102, 102, 102, 102, 102, 102, 102, 102,
536
- 102, 102, 102, 102, 102, 102, 103, 102,
537
- 102, 102, 102, 102, 102, 21, 102, 102,
538
- 102, 102, 102, 104, 104, 105, 104, 104,
539
- 104, 104, 104, 104, 104, 104, 104, 104,
540
- 104, 102, 102, 102, 102, 104, 102, 104,
541
- 104, 104, 104, 104, 104, 104, 104, 104,
542
- 104, 104, 104, 104, 104, 104, 104, 104,
543
- 104, 104, 104, 104, 104, 104, 104, 104,
544
- 104, 102, 106, 102, 102, 104, 102, 104,
545
- 104, 104, 104, 104, 104, 104, 104, 104,
546
- 104, 104, 104, 104, 104, 104, 104, 104,
547
- 104, 104, 104, 104, 104, 104, 104, 104,
548
- 104, 102, 102, 107, 102, 24, 63, 63,
549
- 63, 63, 63, 63, 63, 63, 63, 63,
550
- 63, 63, 63, 63, 63, 63, 63, 63,
551
- 63, 63, 63, 63, 63, 63, 63, 63,
552
- 63, 63, 63, 63, 63, 63, 63, 63,
553
- 63, 63, 63, 63, 63, 63, 63, 63,
554
- 63, 63, 63, 63, 63, 63, 63, 63,
555
- 63, 63, 67, 63, 63, 63, 63, 63,
556
- 63, 63, 63, 63, 63, 63, 63, 63,
557
- 63, 63, 63, 63, 63, 63, 63, 63,
558
- 63, 63, 63, 63, 63, 63, 63, 63,
559
- 63, 63, 63, 108, 63, 21, 102, 102,
560
- 102, 102, 102, 102, 102, 102, 102, 102,
561
- 102, 102, 102, 102, 102, 102, 102, 102,
562
- 102, 102, 102, 102, 102, 102, 102, 102,
563
- 102, 102, 102, 102, 102, 102, 102, 102,
564
- 102, 102, 102, 102, 102, 102, 102, 102,
565
- 102, 102, 102, 102, 102, 102, 102, 102,
566
- 102, 102, 106, 102, 109, 109, 0, 109,
567
- 109, 109, 109, 109, 109, 109, 109, 109,
568
- 109, 109, 0, 0, 0, 0, 109, 0,
569
- 109, 109, 109, 109, 109, 109, 109, 109,
570
- 109, 109, 109, 109, 109, 109, 109, 109,
571
- 109, 109, 109, 109, 109, 109, 109, 109,
572
- 109, 109, 0, 0, 0, 0, 109, 0,
573
- 109, 109, 109, 109, 109, 109, 109, 109,
574
- 109, 109, 109, 109, 109, 109, 109, 109,
575
- 109, 109, 109, 109, 109, 109, 109, 109,
576
- 109, 109, 0, 110, 110, 110, 110, 110,
577
- 0, 0, 0, 0, 0, 0, 0, 0,
578
- 0, 0, 0, 0, 0, 0, 0, 0,
579
- 0, 0, 110, 0, 0, 0, 0, 0,
580
- 0, 0, 0, 0, 0, 0, 0, 111,
581
- 111, 0, 111, 111, 111, 111, 111, 111,
582
- 111, 111, 111, 111, 111, 0, 0, 0,
583
- 0, 111, 0, 111, 111, 111, 111, 111,
584
- 111, 111, 111, 111, 111, 111, 111, 111,
585
- 111, 111, 111, 111, 111, 111, 111, 111,
586
- 111, 111, 111, 111, 111, 0, 0, 0,
587
- 0, 111, 0, 111, 111, 111, 111, 111,
588
- 111, 111, 111, 111, 111, 111, 111, 111,
589
- 111, 111, 111, 111, 111, 111, 111, 111,
590
- 111, 111, 111, 111, 111, 0, 0, 112,
591
- 0, 113, 113, 113, 113, 113, 0, 0,
592
- 0, 0, 0, 0, 0, 0, 0, 0,
593
- 0, 0, 0, 0, 0, 0, 0, 0,
594
- 113, 0, 0, 0, 0, 0, 0, 0,
595
- 0, 0, 0, 0, 0, 0, 0, 0,
596
- 0, 0, 0, 0, 0, 0, 0, 0,
597
- 0, 0, 0, 0, 0, 0, 0, 0,
598
- 0, 0, 0, 0, 0, 0, 0, 0,
599
- 0, 0, 0, 0, 0, 0, 0, 0,
600
- 0, 0, 0, 0, 0, 0, 0, 0,
601
- 0, 0, 0, 0, 0, 0, 0, 0,
602
- 0, 0, 0, 0, 0, 0, 0, 0,
603
- 0, 0, 0, 0, 0, 0, 0, 0,
604
- 0, 0, 0, 0, 0, 0, 0, 0,
605
- 0, 0, 0, 0, 0, 114, 0, 115,
606
- 117, 116, 1, 1, 1, 1, 1, 118,
607
- 118, 118, 118, 118, 118, 118, 118, 118,
608
- 118, 118, 118, 118, 118, 118, 118, 118,
609
- 118, 1, 118, 118, 118, 118, 118, 118,
610
- 118, 118, 118, 118, 118, 118, 2, 2,
611
- 3, 2, 2, 2, 2, 2, 2, 2,
612
- 2, 2, 2, 2, 118, 118, 118, 118,
613
- 2, 118, 2, 2, 2, 2, 2, 2,
614
- 2, 2, 2, 2, 2, 2, 2, 2,
615
- 2, 2, 2, 2, 2, 2, 2, 2,
616
- 2, 2, 2, 2, 118, 118, 118, 118,
617
- 2, 118, 2, 2, 2, 2, 2, 2,
618
- 2, 2, 2, 2, 2, 2, 2, 2,
619
- 2, 2, 2, 2, 2, 2, 2, 2,
620
- 2, 2, 2, 2, 118, 119, 120, 24,
621
- 23, 23, 23, 23, 23, 23, 23, 23,
622
- 23, 23, 23, 23, 23, 23, 23, 23,
623
- 23, 23, 23, 23, 23, 23, 23, 23,
624
- 23, 23, 23, 23, 23, 23, 23, 23,
625
- 23, 23, 23, 23, 23, 23, 23, 23,
626
- 23, 23, 23, 23, 23, 23, 23, 23,
627
- 23, 23, 23, 23, 23, 23, 23, 23,
628
- 23, 25, 23, 24, 23, 23, 23, 23,
629
- 23, 23, 23, 23, 23, 23, 23, 23,
630
- 23, 23, 23, 23, 23, 23, 23, 23,
631
- 23, 23, 23, 23, 23, 23, 23, 23,
632
- 23, 23, 23, 23, 23, 23, 23, 23,
633
- 23, 23, 23, 23, 23, 23, 23, 23,
634
- 23, 23, 23, 23, 23, 23, 23, 23,
635
- 23, 23, 23, 23, 23, 25, 23, 61,
636
- 60, 60, 60, 60, 35, 60, 60, 60,
637
- 60, 60, 60, 60, 60, 60, 60, 60,
638
- 60, 60, 60, 60, 60, 60, 60, 60,
639
- 60, 60, 60, 60, 60, 60, 60, 60,
640
- 60, 60, 60, 60, 60, 60, 60, 60,
641
- 60, 60, 60, 60, 60, 60, 60, 60,
642
- 60, 60, 60, 60, 60, 60, 60, 60,
643
- 60, 62, 60, 61, 60, 60, 60, 60,
644
- 35, 60, 60, 60, 60, 60, 60, 60,
645
- 60, 60, 60, 60, 60, 60, 60, 60,
646
- 60, 60, 60, 60, 60, 60, 60, 60,
647
- 60, 60, 60, 60, 60, 60, 60, 60,
648
- 60, 60, 60, 60, 60, 60, 60, 60,
649
- 60, 60, 60, 60, 60, 60, 60, 60,
650
- 60, 60, 60, 60, 60, 62, 60, 24,
651
- 63, 63, 63, 63, 63, 63, 63, 63,
652
- 63, 63, 63, 63, 63, 63, 63, 63,
653
- 63, 63, 63, 63, 63, 63, 63, 63,
654
- 63, 63, 63, 63, 63, 63, 63, 63,
655
- 63, 63, 63, 63, 63, 63, 63, 63,
656
- 63, 63, 63, 63, 63, 63, 63, 63,
657
- 63, 63, 63, 63, 67, 63, 24, 63,
658
- 63, 63, 63, 63, 63, 63, 63, 63,
659
- 63, 63, 63, 63, 63, 63, 63, 63,
660
- 63, 63, 63, 63, 63, 63, 63, 63,
661
- 63, 63, 63, 63, 63, 63, 63, 63,
662
- 63, 63, 63, 63, 63, 63, 63, 63,
663
- 63, 63, 63, 63, 63, 63, 63, 63,
664
- 63, 63, 63, 67, 63, 121, 0
665
- ]
666
-
667
- class << self
668
- attr_accessor :_parser_trans_targs
669
- private :_parser_trans_targs, :_parser_trans_targs=
670
- end
671
- self._parser_trans_targs = [
672
- 46, 1, 2, 42, 3, 2, 11, 49,
673
- 3, 4, 11, 49, 46, 5, 4, 6,
674
- 5, 6, 7, 41, 8, 9, 12, 8,
675
- 9, 12, 10, 4, 11, 49, 10, 4,
676
- 11, 49, 48, 13, 14, 15, 19, 51,
677
- 14, 15, 19, 51, 16, 15, 17, 16,
678
- 17, 18, 20, 14, 15, 19, 51, 50,
679
- 21, 22, 13, 30, 21, 22, 30, 23,
680
- 25, 26, 40, 24, 55, 25, 26, 40,
681
- 55, 27, 26, 28, 27, 28, 29, 39,
682
- 22, 31, 32, 33, 37, 53, 32, 33,
683
- 37, 53, 34, 33, 35, 34, 35, 36,
684
- 38, 32, 33, 37, 53, 52, 23, 25,
685
- 26, 40, 24, 55, 54, 43, 44, 43,
686
- 56, 44, 56, 0, 46, 47, 46, 46,
687
- 46, 46
688
- ]
689
-
690
- class << self
691
- attr_accessor :_parser_trans_actions
692
- private :_parser_trans_actions, :_parser_trans_actions=
693
- end
694
- self._parser_trans_actions = [
695
- 1, 0, 2, 0, 3, 0, 3, 3,
696
- 0, 4, 0, 0, 5, 6, 0, 6,
697
- 0, 0, 0, 0, 7, 8, 7, 0,
698
- 9, 0, 10, 11, 12, 12, 0, 13,
699
- 14, 14, 0, 9, 10, 11, 12, 15,
700
- 0, 13, 14, 16, 6, 0, 6, 0,
701
- 0, 9, 0, 17, 18, 19, 20, 21,
702
- 7, 22, 8, 7, 0, 9, 0, 0,
703
- 10, 11, 12, 0, 15, 0, 13, 14,
704
- 16, 6, 0, 6, 0, 0, 0, 9,
705
- 8, 9, 10, 11, 12, 15, 0, 13,
706
- 14, 16, 6, 0, 6, 0, 0, 9,
707
- 9, 17, 18, 19, 20, 21, 7, 17,
708
- 18, 19, 7, 20, 21, 2, 3, 0,
709
- 3, 0, 0, 0, 25, 26, 27, 28,
710
- 29, 30
711
- ]
712
-
713
- class << self
714
- attr_accessor :_parser_to_state_actions
715
- private :_parser_to_state_actions, :_parser_to_state_actions=
716
- end
717
- self._parser_to_state_actions = [
718
- 0, 0, 0, 0, 0, 0, 0, 0,
719
- 0, 0, 0, 0, 0, 0, 0, 0,
720
- 0, 0, 0, 0, 0, 0, 0, 0,
721
- 0, 0, 0, 0, 0, 0, 0, 0,
722
- 0, 0, 0, 0, 0, 0, 0, 0,
723
- 0, 0, 0, 0, 0, 23, 23, 0,
724
- 0, 0, 0, 0, 0, 0, 0, 0,
725
- 0
726
- ]
727
-
728
- class << self
729
- attr_accessor :_parser_from_state_actions
730
- private :_parser_from_state_actions, :_parser_from_state_actions=
731
- end
732
- self._parser_from_state_actions = [
733
- 0, 0, 0, 0, 0, 0, 0, 0,
734
- 0, 0, 0, 0, 0, 0, 0, 0,
735
- 0, 0, 0, 0, 0, 0, 0, 0,
736
- 0, 0, 0, 0, 0, 0, 0, 0,
737
- 0, 0, 0, 0, 0, 0, 0, 0,
738
- 0, 0, 0, 0, 0, 0, 24, 0,
739
- 0, 0, 0, 0, 0, 0, 0, 0,
740
- 0
741
- ]
742
-
743
- class << self
744
- attr_accessor :_parser_eof_trans
745
- private :_parser_eof_trans, :_parser_eof_trans=
746
- end
747
- self._parser_eof_trans = [
748
- 0, 1, 1, 1, 13, 13, 13, 13,
749
- 13, 13, 13, 13, 13, 13, 13, 13,
750
- 13, 13, 13, 13, 13, 13, 13, 13,
751
- 13, 13, 13, 13, 13, 13, 13, 13,
752
- 13, 13, 13, 13, 13, 13, 13, 13,
753
- 13, 13, 1, 1, 1, 0, 0, 119,
754
- 120, 121, 120, 121, 120, 121, 120, 121,
755
- 122
756
- ]
757
-
758
- class << self
759
- attr_accessor :parser_start
760
- end
761
- self.parser_start = 46;
762
- class << self
763
- attr_accessor :parser_first_final
764
- end
765
- self.parser_first_final = 46;
766
- class << self
767
- attr_accessor :parser_error
768
- end
769
- self.parser_error = 0;
770
-
771
- class << self
772
- attr_accessor :parser_en_Closeout
773
- end
774
- self.parser_en_Closeout = 45;
775
- class << self
776
- attr_accessor :parser_en_main
777
- end
778
- self.parser_en_main = 46;
779
-
780
-
781
- # line 121 "squiggle_scanner.rl"
782
-
783
- # line 784 "squiggle_scanner.rb"
784
- begin
785
- p ||= 0
786
- pe ||= data.length
787
- cs = parser_start
788
- ts = nil
789
- te = nil
790
- act = 0
791
- end
792
-
793
- # line 122 "squiggle_scanner.rl"
794
-
795
- # line 796 "squiggle_scanner.rb"
796
- begin
797
- testEof = false
798
- _slen, _trans, _keys, _inds, _acts, _nacts = nil
799
- _goto_level = 0
800
- _resume = 10
801
- _eof_trans = 15
802
- _again = 20
803
- _test_eof = 30
804
- _out = 40
805
- while true
806
- if _goto_level <= 0
807
- if p == pe
808
- _goto_level = _test_eof
809
- next
810
- end
811
- if cs == 0
812
- _goto_level = _out
813
- next
814
- end
815
- end
816
- if _goto_level <= _resume
817
- case _parser_from_state_actions[cs]
818
- when 24 then
819
- # line 1 "NONE"
820
- begin
821
- ts = p
822
- end
823
- # line 824 "squiggle_scanner.rb"
824
- end
825
- _keys = cs << 1
826
- _inds = _parser_index_offsets[cs]
827
- _slen = _parser_key_spans[cs]
828
- _trans = if ( _slen > 0 &&
829
- _parser_trans_keys[_keys] <= data[p].ord &&
830
- data[p].ord <= _parser_trans_keys[_keys + 1]
831
- ) then
832
- _parser_indicies[ _inds + data[p].ord - _parser_trans_keys[_keys] ]
833
- else
834
- _parser_indicies[ _inds + _slen ]
835
- end
836
- end
837
- if _goto_level <= _eof_trans
838
- cs = _parser_trans_targs[_trans]
839
- if _parser_trans_actions[_trans] != 0
840
- case _parser_trans_actions[_trans]
841
- when 2 then
842
- # line 12 "squiggle_scanner.rl"
843
- begin
844
- mark_stg = p end
845
- when 3 then
846
- # line 13 "squiggle_scanner.rl"
847
- begin
848
- @starttag = data[mark_stg..p-1] end
849
- when 10 then
850
- # line 14 "squiggle_scanner.rl"
851
- begin
852
- mark_attr = p end
853
- when 14 then
854
- # line 15 "squiggle_scanner.rl"
855
- begin
856
-
857
- @attrs[@nat] = @vat
858
- end
859
- when 4 then
860
- # line 24 "squiggle_scanner.rl"
861
- begin
862
- mark_nat = p end
863
- when 6 then
864
- # line 25 "squiggle_scanner.rl"
865
- begin
866
- @nat = data[mark_nat..p-1] end
867
- when 7 then
868
- # line 26 "squiggle_scanner.rl"
869
- begin
870
- mark_vat = p end
871
- when 9 then
872
- # line 27 "squiggle_scanner.rl"
873
- begin
874
- @vat = data[mark_vat..p-1] end
875
- when 25 then
876
- # line 80 "squiggle_scanner.rl"
877
- begin
878
- te = p+1
879
- begin
880
- @nodes.last << data[p]
881
- @tagstart = p
882
- end
883
- end
884
- when 27 then
885
- # line 80 "squiggle_scanner.rl"
886
- begin
887
- te = p
888
- p = p - 1; begin
889
- @nodes.last << data[p]
890
- @tagstart = p
891
- end
892
- end
893
- when 1 then
894
- # line 80 "squiggle_scanner.rl"
895
- begin
896
- begin p = ((te))-1; end
897
- begin
898
- @nodes.last << data[p]
899
- @tagstart = p
900
- end
901
- end
902
- when 5 then
903
- # line 1 "NONE"
904
- begin
905
- case act
906
- when 1 then
907
- begin begin p = ((te))-1; end
908
-
909
- tag = {:prefix=>@prefix, :name=>@starttag, :flavor => @flavor, :attrs => @attrs}
910
- @prefix = nil
911
- @name = nil
912
- @flavor = :tasteless
913
- @attrs = {}
914
- @nodes << tag << ''
915
- begin
916
- p += 1
917
- _goto_level = _out
918
- next
919
- end
920
-
921
- end
922
- when 2 then
923
- begin begin p = ((te))-1; end
924
-
925
- @nodes.last << data[p]
926
- @tagstart = p
927
- end
928
- end
929
- end
930
- when 12 then
931
- # line 14 "squiggle_scanner.rl"
932
- begin
933
- mark_attr = p end
934
- # line 15 "squiggle_scanner.rl"
935
- begin
936
-
937
- @attrs[@nat] = @vat
938
- end
939
- when 13 then
940
- # line 15 "squiggle_scanner.rl"
941
- begin
942
-
943
- @attrs[@nat] = @vat
944
- end
945
- # line 24 "squiggle_scanner.rl"
946
- begin
947
- mark_nat = p end
948
- when 17 then
949
- # line 26 "squiggle_scanner.rl"
950
- begin
951
- mark_vat = p end
952
- # line 14 "squiggle_scanner.rl"
953
- begin
954
- mark_attr = p end
955
- when 8 then
956
- # line 26 "squiggle_scanner.rl"
957
- begin
958
- mark_vat = p end
959
- # line 27 "squiggle_scanner.rl"
960
- begin
961
- @vat = data[mark_vat..p-1] end
962
- when 22 then
963
- # line 27 "squiggle_scanner.rl"
964
- begin
965
- @vat = data[mark_vat..p-1] end
966
- # line 26 "squiggle_scanner.rl"
967
- begin
968
- mark_vat = p end
969
- when 29 then
970
- # line 29 "squiggle_scanner.rl"
971
- begin
972
- @flavor = :open end
973
- # line 71 "squiggle_scanner.rl"
974
- begin
975
- te = p
976
- p = p - 1; begin
977
- tag = {:prefix=>@prefix, :name=>@starttag, :flavor => @flavor, :attrs => @attrs}
978
- @prefix = nil
979
- @name = nil
980
- @flavor = :tasteless
981
- @attrs = {}
982
- @nodes << tag << ''
983
- begin
984
- p += 1
985
- _goto_level = _out
986
- next
987
- end
988
-
989
- end
990
- end
991
- when 28 then
992
- # line 30 "squiggle_scanner.rl"
993
- begin
994
- @flavor = :self end
995
- # line 71 "squiggle_scanner.rl"
996
- begin
997
- te = p
998
- p = p - 1; begin
999
- tag = {:prefix=>@prefix, :name=>@starttag, :flavor => @flavor, :attrs => @attrs}
1000
- @prefix = nil
1001
- @name = nil
1002
- @flavor = :tasteless
1003
- @attrs = {}
1004
- @nodes << tag << ''
1005
- begin
1006
- p += 1
1007
- _goto_level = _out
1008
- next
1009
- end
1010
-
1011
- end
1012
- end
1013
- when 30 then
1014
- # line 31 "squiggle_scanner.rl"
1015
- begin
1016
- @flavor = :close end
1017
- # line 71 "squiggle_scanner.rl"
1018
- begin
1019
- te = p
1020
- p = p - 1; begin
1021
- tag = {:prefix=>@prefix, :name=>@starttag, :flavor => @flavor, :attrs => @attrs}
1022
- @prefix = nil
1023
- @name = nil
1024
- @flavor = :tasteless
1025
- @attrs = {}
1026
- @nodes << tag << ''
1027
- begin
1028
- p += 1
1029
- _goto_level = _out
1030
- next
1031
- end
1032
-
1033
- end
1034
- end
1035
- when 21 then
1036
- # line 1 "NONE"
1037
- begin
1038
- te = p+1
1039
- end
1040
- # line 71 "squiggle_scanner.rl"
1041
- begin
1042
- act = 1; end
1043
- when 26 then
1044
- # line 1 "NONE"
1045
- begin
1046
- te = p+1
1047
- end
1048
- # line 80 "squiggle_scanner.rl"
1049
- begin
1050
- act = 2; end
1051
- when 11 then
1052
- # line 14 "squiggle_scanner.rl"
1053
- begin
1054
- mark_attr = p end
1055
- # line 15 "squiggle_scanner.rl"
1056
- begin
1057
-
1058
- @attrs[@nat] = @vat
1059
- end
1060
- # line 24 "squiggle_scanner.rl"
1061
- begin
1062
- mark_nat = p end
1063
- when 19 then
1064
- # line 26 "squiggle_scanner.rl"
1065
- begin
1066
- mark_vat = p end
1067
- # line 14 "squiggle_scanner.rl"
1068
- begin
1069
- mark_attr = p end
1070
- # line 15 "squiggle_scanner.rl"
1071
- begin
1072
-
1073
- @attrs[@nat] = @vat
1074
- end
1075
- when 16 then
1076
- # line 1 "NONE"
1077
- begin
1078
- te = p+1
1079
- end
1080
- # line 15 "squiggle_scanner.rl"
1081
- begin
1082
-
1083
- @attrs[@nat] = @vat
1084
- end
1085
- # line 71 "squiggle_scanner.rl"
1086
- begin
1087
- act = 1; end
1088
- when 18 then
1089
- # line 26 "squiggle_scanner.rl"
1090
- begin
1091
- mark_vat = p end
1092
- # line 14 "squiggle_scanner.rl"
1093
- begin
1094
- mark_attr = p end
1095
- # line 15 "squiggle_scanner.rl"
1096
- begin
1097
-
1098
- @attrs[@nat] = @vat
1099
- end
1100
- # line 24 "squiggle_scanner.rl"
1101
- begin
1102
- mark_nat = p end
1103
- when 15 then
1104
- # line 1 "NONE"
1105
- begin
1106
- te = p+1
1107
- end
1108
- # line 14 "squiggle_scanner.rl"
1109
- begin
1110
- mark_attr = p end
1111
- # line 15 "squiggle_scanner.rl"
1112
- begin
1113
-
1114
- @attrs[@nat] = @vat
1115
- end
1116
- # line 71 "squiggle_scanner.rl"
1117
- begin
1118
- act = 1; end
1119
- when 20 then
1120
- # line 1 "NONE"
1121
- begin
1122
- te = p+1
1123
- end
1124
- # line 26 "squiggle_scanner.rl"
1125
- begin
1126
- mark_vat = p end
1127
- # line 14 "squiggle_scanner.rl"
1128
- begin
1129
- mark_attr = p end
1130
- # line 15 "squiggle_scanner.rl"
1131
- begin
1132
-
1133
- @attrs[@nat] = @vat
1134
- end
1135
- # line 71 "squiggle_scanner.rl"
1136
- begin
1137
- act = 1; end
1138
- # line 1139 "squiggle_scanner.rb"
1139
- end
1140
- end
1141
- end
1142
- if _goto_level <= _again
1143
- case _parser_to_state_actions[cs]
1144
- when 23 then
1145
- # line 1 "NONE"
1146
- begin
1147
- ts = nil; end
1148
- # line 1149 "squiggle_scanner.rb"
1149
- end
1150
-
1151
- if cs == 0
1152
- _goto_level = _out
1153
- next
1154
- end
1155
- p += 1
1156
- if p != pe
1157
- _goto_level = _resume
1158
- next
1159
- end
1160
- end
1161
- if _goto_level <= _test_eof
1162
- if p == eof
1163
- if _parser_eof_trans[cs] > 0
1164
- _trans = _parser_eof_trans[cs] - 1;
1165
- _goto_level = _eof_trans
1166
- next;
1167
- end
1168
- end
1169
-
1170
- end
1171
- if _goto_level <= _out
1172
- break
1173
- end
1174
- end
1175
- end
1176
-
1177
- # line 123 "squiggle_scanner.rl"
1178
- return p
4
+ # The regular expression used to find (1) opening and self-enclosed tag names, (2) self-enclosing trailing slash,
5
+ # (3) attributes and (4) closing tag
6
+ def scanner_regex(prefix = nil)
7
+ %r{\{\s*([\w:]+?)(\s+(?:\w+\s*=\s*(?:"[^"]*?"|'[^']*?')\s*)*|)(\/?)\}|\{\/([\w:]+?)\s*\}}
1179
8
  end
9
+
1180
10
  end
1181
- end
11
+ end