trenni 2.1.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -31,6 +31,7 @@
31
31
 
32
32
  action pcdata_begin {
33
33
  pcdata = ""
34
+ has_entities = false
34
35
  }
35
36
 
36
37
  action pcdata_end {
@@ -40,6 +41,8 @@
40
41
  }
41
42
 
42
43
  action text_end {
44
+ pcdata = MarkupString.raw(pcdata) unless has_entities
45
+
43
46
  delegate.text(pcdata)
44
47
  }
45
48
 
@@ -66,18 +69,21 @@
66
69
 
67
70
  name = data.byteslice(entity_begin...entity_end)
68
71
 
72
+ has_entities = true
69
73
  pcdata << entities[name]
70
74
  }
71
75
 
72
76
  action entity_hex {
73
77
  entity_end = p
74
78
 
79
+ has_entities = true
75
80
  pcdata << data.byteslice(entity_begin...entity_end).to_i(16)
76
81
  }
77
82
 
78
83
  action entity_number {
79
84
  entity_end = p
80
85
 
86
+ has_entities = true
81
87
  pcdata << data.byteslice(entity_begin...entity_end).to_i(10)
82
88
  }
83
89
 
@@ -155,6 +161,8 @@
155
161
 
156
162
  action attribute {
157
163
  if has_value
164
+ pcdata = MarkupString.raw(pcdata) unless has_entities
165
+
158
166
  value = pcdata
159
167
  else
160
168
  value = true
@@ -221,7 +229,7 @@ module Trenni
221
229
  comment_begin = comment_end = nil
222
230
  instruction_begin = instruction_end = nil
223
231
  cdata_begin = cdata_end = nil
224
- has_value = false
232
+ has_entities = has_value = false
225
233
 
226
234
  %% write init;
227
235
  %% write exec;
@@ -28,766 +28,759 @@ require_relative '../parse_error'
28
28
 
29
29
  module Trenni
30
30
  module Fallback
31
-
32
- # line 33 "template.rb"
33
- class << self
34
- attr_accessor :_template_trans_keys
35
- private :_template_trans_keys, :_template_trans_keys=
36
- end
37
- self._template_trans_keys = [
38
- 0, 0, 10, 60, 123, 123,
39
- 63, 63, 123, 123, 63,
40
- 63, 63, 63, 114, 114,
41
- 9, 32, 63, 63, 62, 62,
42
- 9, 32, 123, 123, 63,
43
- 63, 0, 127, 0, 127,
44
- 63, 63, 62, 62, 0, 127,
45
- 63, 63, 62, 62, 34,
46
- 125, 34, 35, 35, 125,
47
- 35, 125, 34, 39, 35, 125,
48
- 35, 125, 34, 123, 34,
49
- 123, 39, 39, 34, 125,
50
- 34, 125, 34, 35, 35, 125,
51
- 35, 125, 34, 39, 35,
52
- 125, 35, 125, 34, 123,
53
- 34, 123, 39, 39, 34, 125,
54
- 9, 60, 10, 60, 10,
55
- 60, 9, 60, 9, 32,
56
- 0, 0, 34, 39, 34, 35,
57
- 39, 39, 0, 0, 34,
58
- 39, 34, 35, 39, 39,
59
- 0, 0, 0
60
- ]
61
-
62
- class << self
63
- attr_accessor :_template_key_spans
64
- private :_template_key_spans, :_template_key_spans=
65
- end
66
- self._template_key_spans = [
67
- 0, 51, 1, 1, 1, 1, 1, 1,
68
- 24, 1, 1, 24, 1, 1, 128, 128,
69
- 1, 1, 128, 1, 1, 92, 2, 91,
70
- 91, 6, 91, 91, 90, 90, 1, 92,
71
- 92, 2, 91, 91, 6, 91, 91, 90,
72
- 90, 1, 92, 52, 51, 51, 52, 24,
73
- 0, 6, 2, 1, 0, 6, 2, 1,
74
- 0
75
- ]
76
-
77
- class << self
78
- attr_accessor :_template_index_offsets
79
- private :_template_index_offsets, :_template_index_offsets=
80
- end
81
- self._template_index_offsets = [
82
- 0, 0, 52, 54, 56, 58, 60, 62,
83
- 64, 89, 91, 93, 118, 120, 122, 251,
84
- 380, 382, 384, 513, 515, 517, 610, 613,
85
- 705, 797, 804, 896, 988, 1079, 1170, 1172,
86
- 1265, 1358, 1361, 1453, 1545, 1552, 1644, 1736,
87
- 1827, 1918, 1920, 2013, 2066, 2118, 2170, 2223,
88
- 2248, 2249, 2256, 2259, 2261, 2262, 2269, 2272,
89
- 2274
90
- ]
91
-
92
- class << self
93
- attr_accessor :_template_indicies
94
- private :_template_indicies, :_template_indicies=
95
- end
96
- self._template_indicies = [
97
- 2, 1, 1, 1, 1, 1, 1, 1,
98
- 1, 1, 1, 1, 1, 1, 1, 1,
99
- 1, 1, 1, 1, 1, 1, 1, 1,
100
- 1, 3, 1, 1, 1, 1, 1, 1,
101
- 1, 1, 1, 1, 1, 1, 1, 1,
102
- 1, 1, 1, 1, 1, 1, 1, 1,
103
- 1, 1, 4, 1, 0, 1, 0, 1,
104
- 5, 6, 5, 6, 7, 6, 8, 5,
105
- 10, 10, 10, 10, 10, 5, 5, 5,
106
- 5, 5, 5, 5, 5, 5, 5, 5,
107
- 5, 5, 5, 5, 5, 5, 5, 10,
108
- 5, 12, 11, 13, 11, 13, 15, 13,
109
- 13, 13, 14, 14, 14, 14, 14, 14,
110
- 14, 14, 14, 14, 14, 14, 14, 14,
111
- 14, 14, 14, 14, 13, 14, 16, 6,
112
- 17, 6, 19, 19, 19, 19, 19, 19,
113
- 19, 19, 19, 19, 19, 19, 19, 19,
114
- 19, 19, 19, 19, 19, 19, 19, 19,
115
- 19, 19, 19, 19, 19, 19, 19, 19,
116
- 19, 19, 19, 19, 19, 19, 19, 19,
117
- 19, 19, 19, 19, 19, 19, 19, 18,
118
- 18, 19, 18, 18, 18, 18, 18, 18,
119
- 18, 18, 18, 18, 18, 19, 19, 19,
120
- 19, 19, 19, 18, 18, 18, 18, 18,
121
- 18, 18, 18, 18, 18, 18, 18, 18,
122
- 18, 18, 18, 18, 18, 18, 18, 18,
123
- 18, 18, 18, 18, 18, 19, 19, 19,
124
- 19, 18, 19, 18, 18, 18, 18, 18,
125
- 18, 18, 18, 18, 18, 18, 18, 18,
126
- 18, 18, 18, 18, 20, 18, 18, 18,
127
- 18, 18, 18, 18, 18, 19, 19, 19,
128
- 19, 19, 18, 19, 19, 19, 19, 19,
129
- 19, 19, 19, 19, 21, 21, 21, 21,
130
- 21, 19, 19, 19, 19, 19, 19, 19,
131
- 19, 19, 19, 19, 19, 19, 19, 19,
132
- 19, 19, 19, 21, 19, 19, 19, 19,
133
- 19, 19, 19, 19, 19, 19, 19, 19,
134
- 18, 18, 19, 18, 18, 18, 18, 18,
135
- 18, 18, 18, 18, 18, 18, 19, 19,
136
- 19, 19, 19, 19, 18, 18, 18, 18,
137
- 18, 18, 18, 18, 18, 18, 18, 18,
138
- 18, 18, 18, 18, 18, 18, 18, 18,
139
- 18, 18, 18, 18, 18, 18, 19, 19,
140
- 19, 19, 18, 19, 18, 18, 18, 18,
141
- 18, 18, 18, 18, 18, 18, 18, 18,
142
- 18, 18, 18, 18, 18, 18, 18, 18,
143
- 18, 18, 18, 18, 18, 18, 19, 19,
144
- 19, 19, 19, 18, 22, 21, 23, 21,
145
- 19, 19, 19, 19, 19, 19, 19, 19,
146
- 19, 24, 24, 24, 24, 24, 19, 19,
147
- 19, 19, 19, 19, 19, 19, 19, 19,
148
- 19, 19, 19, 19, 19, 19, 19, 19,
149
- 24, 19, 19, 19, 19, 19, 19, 19,
150
- 19, 19, 19, 19, 19, 18, 18, 19,
151
- 18, 18, 18, 18, 18, 18, 18, 18,
152
- 18, 18, 18, 19, 19, 19, 19, 19,
153
- 19, 18, 18, 18, 18, 18, 18, 18,
154
- 18, 18, 18, 18, 18, 18, 18, 18,
155
- 18, 18, 18, 18, 18, 18, 18, 18,
156
- 18, 18, 18, 19, 19, 19, 19, 18,
157
- 19, 18, 18, 18, 18, 18, 18, 18,
158
- 18, 18, 18, 18, 18, 18, 18, 18,
159
- 18, 18, 18, 18, 18, 18, 18, 18,
160
- 18, 18, 18, 19, 19, 19, 19, 19,
161
- 18, 26, 25, 27, 25, 29, 28, 28,
162
- 28, 28, 30, 28, 28, 28, 28, 28,
163
- 28, 28, 28, 28, 28, 28, 28, 28,
164
- 28, 28, 28, 28, 28, 28, 28, 28,
165
- 28, 28, 28, 28, 28, 28, 28, 28,
166
- 28, 28, 28, 28, 28, 28, 28, 28,
167
- 28, 28, 28, 28, 28, 28, 28, 28,
168
- 28, 28, 28, 28, 28, 28, 28, 28,
169
- 28, 28, 28, 28, 28, 28, 28, 28,
170
- 28, 28, 28, 28, 28, 28, 28, 28,
171
- 28, 28, 28, 28, 28, 28, 28, 28,
172
- 28, 28, 28, 28, 28, 28, 31, 28,
173
- 32, 28, 33, 34, 29, 35, 33, 33,
174
- 33, 36, 33, 33, 33, 33, 33, 33,
175
- 33, 33, 33, 33, 33, 33, 33, 33,
176
- 33, 33, 33, 33, 33, 33, 33, 33,
177
- 33, 33, 33, 33, 33, 33, 33, 33,
178
- 33, 33, 33, 33, 33, 33, 33, 33,
179
- 33, 33, 33, 33, 33, 33, 33, 33,
180
- 33, 33, 33, 33, 33, 33, 33, 33,
181
- 33, 33, 33, 33, 33, 33, 33, 33,
182
- 33, 33, 33, 33, 33, 33, 33, 33,
183
- 33, 33, 33, 33, 33, 33, 33, 33,
184
- 33, 33, 33, 33, 33, 37, 33, 38,
185
- 33, 35, 33, 33, 33, 36, 33, 33,
186
- 33, 33, 33, 33, 33, 33, 33, 33,
187
- 33, 33, 33, 33, 33, 33, 33, 33,
188
- 33, 33, 33, 33, 33, 33, 33, 33,
189
- 33, 33, 33, 33, 33, 33, 33, 33,
190
- 33, 33, 33, 33, 33, 33, 33, 33,
191
- 33, 33, 33, 33, 33, 33, 33, 33,
192
- 33, 33, 33, 33, 33, 33, 33, 33,
193
- 33, 33, 33, 33, 33, 33, 33, 33,
194
- 33, 33, 33, 33, 33, 33, 33, 33,
195
- 33, 33, 33, 33, 33, 33, 33, 33,
196
- 33, 39, 33, 38, 33, 40, 41, 36,
197
- 36, 36, 40, 36, 42, 40, 40, 40,
198
- 40, 40, 40, 40, 40, 40, 40, 40,
199
- 40, 40, 40, 40, 40, 40, 40, 40,
200
- 40, 40, 40, 40, 40, 40, 40, 40,
201
- 40, 40, 40, 40, 40, 40, 40, 40,
202
- 40, 40, 40, 40, 40, 40, 40, 40,
203
- 40, 40, 40, 40, 40, 40, 40, 40,
204
- 40, 40, 40, 40, 40, 40, 40, 40,
205
- 40, 40, 40, 40, 40, 40, 40, 40,
206
- 40, 40, 40, 40, 40, 40, 40, 40,
207
- 40, 40, 40, 40, 40, 40, 40, 40,
208
- 40, 40, 40, 40, 43, 40, 44, 40,
209
- 42, 40, 40, 40, 40, 40, 40, 40,
210
- 40, 40, 40, 40, 40, 40, 40, 40,
211
- 40, 40, 40, 40, 40, 40, 40, 40,
212
- 40, 40, 40, 40, 40, 40, 40, 40,
213
- 40, 40, 40, 40, 40, 40, 40, 40,
214
- 40, 40, 40, 40, 40, 40, 40, 40,
215
- 40, 40, 40, 40, 40, 40, 40, 40,
216
- 40, 40, 40, 40, 40, 40, 40, 40,
217
- 40, 40, 40, 40, 40, 40, 40, 40,
218
- 40, 40, 40, 40, 40, 40, 40, 40,
219
- 40, 40, 40, 40, 40, 40, 40, 40,
220
- 45, 40, 44, 40, 40, 41, 36, 36,
221
- 36, 40, 36, 36, 36, 36, 36, 36,
222
- 36, 36, 36, 36, 36, 36, 36, 36,
223
- 36, 36, 36, 36, 36, 36, 36, 36,
224
- 36, 36, 36, 36, 36, 36, 36, 36,
225
- 36, 36, 36, 36, 36, 36, 36, 36,
226
- 36, 36, 36, 36, 36, 36, 36, 36,
227
- 36, 36, 36, 36, 36, 36, 36, 36,
228
- 36, 36, 36, 36, 36, 36, 36, 36,
229
- 36, 36, 36, 36, 36, 36, 36, 36,
230
- 36, 36, 36, 36, 36, 36, 36, 36,
231
- 36, 36, 36, 36, 36, 46, 36, 33,
232
- 34, 29, 29, 29, 29, 29, 29, 29,
233
- 29, 29, 29, 29, 29, 29, 29, 29,
234
- 29, 29, 29, 29, 29, 29, 29, 29,
235
- 29, 29, 29, 29, 29, 29, 29, 29,
236
- 29, 29, 29, 29, 29, 29, 29, 29,
237
- 29, 29, 29, 29, 29, 29, 29, 29,
238
- 29, 29, 29, 29, 29, 29, 29, 29,
239
- 29, 29, 29, 29, 29, 29, 29, 29,
240
- 29, 29, 29, 29, 29, 29, 29, 29,
241
- 29, 29, 29, 29, 29, 29, 29, 29,
242
- 29, 29, 29, 29, 29, 29, 29, 29,
243
- 47, 29, 48, 30, 36, 48, 48, 48,
244
- 48, 48, 48, 48, 48, 48, 48, 48,
245
- 48, 48, 48, 48, 48, 48, 48, 48,
246
- 48, 48, 48, 48, 48, 48, 48, 48,
247
- 48, 48, 48, 48, 48, 48, 48, 48,
248
- 48, 48, 48, 48, 48, 48, 48, 48,
249
- 48, 48, 48, 48, 48, 48, 48, 48,
250
- 48, 48, 48, 48, 48, 48, 48, 48,
251
- 48, 48, 48, 48, 48, 48, 48, 48,
252
- 48, 48, 48, 48, 48, 48, 48, 48,
253
- 48, 48, 48, 48, 48, 48, 48, 48,
254
- 48, 48, 48, 48, 48, 49, 48, 50,
255
- 48, 52, 51, 51, 51, 51, 53, 51,
256
- 51, 51, 51, 51, 51, 51, 51, 51,
257
- 51, 51, 51, 51, 51, 51, 51, 51,
258
- 51, 51, 51, 51, 51, 51, 51, 51,
259
- 51, 51, 51, 51, 51, 51, 51, 51,
260
- 51, 51, 51, 51, 51, 51, 51, 51,
261
- 51, 51, 51, 51, 51, 51, 51, 51,
262
- 51, 51, 51, 51, 51, 51, 51, 51,
263
- 51, 51, 51, 51, 51, 51, 51, 51,
264
- 51, 51, 51, 51, 51, 51, 51, 51,
265
- 51, 51, 51, 51, 51, 51, 51, 51,
266
- 51, 51, 54, 51, 55, 51, 56, 57,
267
- 52, 58, 56, 56, 56, 59, 56, 56,
268
- 56, 56, 56, 56, 56, 56, 56, 56,
269
- 56, 56, 56, 56, 56, 56, 56, 56,
270
- 56, 56, 56, 56, 56, 56, 56, 56,
271
- 56, 56, 56, 56, 56, 56, 56, 56,
272
- 56, 56, 56, 56, 56, 56, 56, 56,
273
- 56, 56, 56, 56, 56, 56, 56, 56,
274
- 56, 56, 56, 56, 56, 56, 56, 56,
275
- 56, 56, 56, 56, 56, 56, 56, 56,
276
- 56, 56, 56, 56, 56, 56, 56, 56,
277
- 56, 56, 56, 56, 56, 56, 56, 56,
278
- 56, 60, 56, 61, 56, 58, 56, 56,
279
- 56, 59, 56, 56, 56, 56, 56, 56,
280
- 56, 56, 56, 56, 56, 56, 56, 56,
281
- 56, 56, 56, 56, 56, 56, 56, 56,
282
- 56, 56, 56, 56, 56, 56, 56, 56,
283
- 56, 56, 56, 56, 56, 56, 56, 56,
284
- 56, 56, 56, 56, 56, 56, 56, 56,
285
- 56, 56, 56, 56, 56, 56, 56, 56,
286
- 56, 56, 56, 56, 56, 56, 56, 56,
287
- 56, 56, 56, 56, 56, 56, 56, 56,
288
- 56, 56, 56, 56, 56, 56, 56, 56,
289
- 56, 56, 56, 56, 56, 62, 56, 61,
290
- 56, 63, 64, 59, 59, 59, 63, 59,
291
- 65, 63, 63, 63, 63, 63, 63, 63,
292
- 63, 63, 63, 63, 63, 63, 63, 63,
293
- 63, 63, 63, 63, 63, 63, 63, 63,
294
- 63, 63, 63, 63, 63, 63, 63, 63,
295
- 63, 63, 63, 63, 63, 63, 63, 63,
296
- 63, 63, 63, 63, 63, 63, 63, 63,
297
- 63, 63, 63, 63, 63, 63, 63, 63,
298
- 63, 63, 63, 63, 63, 63, 63, 63,
299
- 63, 63, 63, 63, 63, 63, 63, 63,
300
- 63, 63, 63, 63, 63, 63, 63, 63,
301
- 63, 63, 63, 63, 63, 63, 63, 63,
302
- 66, 63, 67, 63, 65, 63, 63, 63,
303
- 63, 63, 63, 63, 63, 63, 63, 63,
304
- 63, 63, 63, 63, 63, 63, 63, 63,
305
- 63, 63, 63, 63, 63, 63, 63, 63,
306
- 63, 63, 63, 63, 63, 63, 63, 63,
307
- 63, 63, 63, 63, 63, 63, 63, 63,
308
- 63, 63, 63, 63, 63, 63, 63, 63,
309
- 63, 63, 63, 63, 63, 63, 63, 63,
310
- 63, 63, 63, 63, 63, 63, 63, 63,
311
- 63, 63, 63, 63, 63, 63, 63, 63,
312
- 63, 63, 63, 63, 63, 63, 63, 63,
313
- 63, 63, 63, 63, 68, 63, 67, 63,
314
- 63, 64, 59, 59, 59, 63, 59, 59,
315
- 59, 59, 59, 59, 59, 59, 59, 59,
316
- 59, 59, 59, 59, 59, 59, 59, 59,
317
- 59, 59, 59, 59, 59, 59, 59, 59,
318
- 59, 59, 59, 59, 59, 59, 59, 59,
319
- 59, 59, 59, 59, 59, 59, 59, 59,
320
- 59, 59, 59, 59, 59, 59, 59, 59,
321
- 59, 59, 59, 59, 59, 59, 59, 59,
322
- 59, 59, 59, 59, 59, 59, 59, 59,
323
- 59, 59, 59, 59, 59, 59, 59, 59,
324
- 59, 59, 59, 59, 59, 59, 59, 59,
325
- 59, 69, 59, 56, 57, 52, 52, 52,
326
- 52, 52, 52, 52, 52, 52, 52, 52,
327
- 52, 52, 52, 52, 52, 52, 52, 52,
328
- 52, 52, 52, 52, 52, 52, 52, 52,
329
- 52, 52, 52, 52, 52, 52, 52, 52,
330
- 52, 52, 52, 52, 52, 52, 52, 52,
331
- 52, 52, 52, 52, 52, 52, 52, 52,
332
- 52, 52, 52, 52, 52, 52, 52, 52,
333
- 52, 52, 52, 52, 52, 52, 52, 52,
334
- 52, 52, 52, 52, 52, 52, 52, 52,
335
- 52, 52, 52, 52, 52, 52, 52, 52,
336
- 52, 52, 52, 52, 70, 52, 71, 53,
337
- 59, 71, 71, 71, 71, 71, 71, 71,
338
- 71, 71, 71, 71, 71, 71, 71, 71,
339
- 71, 71, 71, 71, 71, 71, 71, 71,
340
- 71, 71, 71, 71, 71, 71, 71, 71,
341
- 71, 71, 71, 71, 71, 71, 71, 71,
342
- 71, 71, 71, 71, 71, 71, 71, 71,
343
- 71, 71, 71, 71, 71, 71, 71, 71,
344
- 71, 71, 71, 71, 71, 71, 71, 71,
345
- 71, 71, 71, 71, 71, 71, 71, 71,
346
- 71, 71, 71, 71, 71, 71, 71, 71,
347
- 71, 71, 71, 71, 71, 71, 71, 71,
348
- 71, 72, 71, 73, 71, 74, 2, 74,
349
- 74, 74, 6, 6, 6, 6, 6, 6,
350
- 6, 6, 6, 6, 6, 6, 6, 6,
351
- 6, 6, 6, 6, 74, 6, 6, 75,
352
- 6, 6, 6, 6, 6, 6, 6, 6,
353
- 6, 6, 6, 6, 6, 6, 6, 6,
354
- 6, 6, 6, 6, 6, 6, 6, 6,
355
- 76, 6, 2, 6, 6, 6, 6, 6,
356
- 6, 6, 6, 6, 6, 6, 6, 6,
357
- 6, 6, 6, 6, 6, 6, 6, 6,
358
- 6, 6, 6, 78, 6, 6, 6, 6,
359
- 6, 6, 6, 6, 6, 6, 6, 6,
360
- 6, 6, 6, 6, 6, 6, 6, 6,
361
- 6, 6, 6, 6, 79, 6, 2, 1,
362
- 1, 1, 1, 1, 1, 1, 1, 1,
363
- 1, 1, 1, 1, 1, 1, 1, 1,
364
- 1, 1, 1, 1, 1, 1, 1, 3,
365
- 1, 1, 1, 1, 1, 1, 1, 1,
366
- 1, 1, 1, 1, 1, 1, 1, 1,
367
- 1, 1, 1, 1, 1, 1, 1, 1,
368
- 4, 1, 74, 2, 74, 74, 74, 6,
369
- 6, 6, 6, 6, 6, 6, 6, 6,
370
- 6, 6, 6, 6, 6, 6, 6, 6,
371
- 6, 74, 6, 6, 78, 6, 6, 6,
372
- 6, 6, 6, 6, 6, 6, 6, 6,
373
- 6, 6, 6, 6, 6, 6, 6, 6,
374
- 6, 6, 6, 6, 6, 81, 6, 13,
375
- 15, 13, 13, 13, 14, 14, 14, 14,
376
- 14, 14, 14, 14, 14, 14, 14, 14,
377
- 14, 14, 14, 14, 14, 14, 13, 14,
378
- 82, 40, 41, 36, 36, 36, 40, 36,
379
- 33, 34, 29, 48, 30, 83, 63, 64,
380
- 59, 59, 59, 63, 59, 56, 57, 52,
381
- 71, 53, 83, 0
382
- ]
383
-
384
- class << self
385
- attr_accessor :_template_trans_targs
386
- private :_template_trans_targs, :_template_trans_targs=
387
- end
388
- self._template_trans_targs = [
389
- 43, 1, 45, 2, 3, 43, 44, 7,
390
- 8, 43, 9, 9, 10, 11, 43, 47,
391
- 48, 14, 15, 0, 18, 16, 17, 43,
392
- 19, 19, 20, 47, 21, 22, 30, 21,
393
- 52, 23, 29, 24, 25, 23, 50, 23,
394
- 26, 28, 27, 26, 49, 26, 25, 22,
395
- 31, 31, 51, 32, 33, 41, 32, 56,
396
- 34, 40, 35, 36, 34, 54, 34, 37,
397
- 39, 38, 37, 53, 37, 36, 33, 42,
398
- 42, 55, 46, 12, 13, 43, 4, 5,
399
- 43, 6, 43, 0
400
- ]
401
-
402
- class << self
403
- attr_accessor :_template_trans_actions
404
- private :_template_trans_actions, :_template_trans_actions=
405
- end
406
- self._template_trans_actions = [
407
- 1, 0, 2, 0, 0, 3, 2, 0,
408
- 0, 4, 5, 0, 6, 0, 7, 8,
409
- 0, 0, 0, 9, 0, 0, 0, 10,
410
- 5, 0, 6, 11, 0, 0, 0, 13,
411
- 14, 0, 0, 0, 0, 13, 14, 15,
412
- 0, 0, 0, 13, 14, 15, 16, 16,
413
- 0, 13, 14, 0, 0, 0, 13, 18,
414
- 0, 0, 0, 0, 13, 18, 15, 0,
415
- 0, 0, 13, 18, 15, 16, 16, 0,
416
- 13, 18, 20, 0, 0, 21, 0, 0,
417
- 22, 0, 23, 0
418
- ]
419
-
420
- class << self
421
- attr_accessor :_template_to_state_actions
422
- private :_template_to_state_actions, :_template_to_state_actions=
423
- end
424
- self._template_to_state_actions = [
425
- 0, 0, 0, 0, 0, 0, 0, 0,
426
- 0, 0, 0, 0, 0, 0, 0, 0,
427
- 0, 0, 0, 0, 0, 12, 12, 12,
428
- 0, 12, 12, 0, 0, 0, 0, 12,
429
- 12, 12, 12, 0, 12, 12, 0, 0,
430
- 0, 0, 12, 12, 0, 0, 0, 0,
431
- 0, 0, 0, 0, 0, 0, 0, 0,
432
- 0
433
- ]
434
-
435
- class << self
436
- attr_accessor :_template_from_state_actions
437
- private :_template_from_state_actions, :_template_from_state_actions=
438
- end
439
- self._template_from_state_actions = [
440
- 0, 0, 0, 0, 0, 0, 0, 0,
441
- 0, 0, 0, 0, 0, 0, 0, 0,
442
- 0, 0, 0, 0, 0, 0, 0, 0,
443
- 0, 0, 0, 0, 0, 0, 0, 0,
444
- 0, 0, 0, 0, 0, 0, 0, 0,
445
- 0, 0, 0, 19, 0, 0, 0, 0,
446
- 0, 0, 0, 0, 0, 0, 0, 0,
447
- 0
448
- ]
449
-
450
- class << self
451
- attr_accessor :_template_eof_actions
452
- private :_template_eof_actions, :_template_eof_actions=
453
- end
454
- self._template_eof_actions = [
455
- 0, 0, 0, 0, 0, 0, 0, 0,
456
- 0, 0, 0, 0, 0, 0, 9, 9,
457
- 9, 9, 9, 9, 9, 0, 0, 0,
458
- 0, 0, 0, 0, 0, 0, 0, 0,
459
- 17, 17, 17, 17, 17, 17, 17, 17,
460
- 17, 17, 17, 0, 0, 0, 0, 0,
461
- 0, 0, 0, 0, 0, 0, 0, 0,
462
- 0
463
- ]
464
-
465
- class << self
466
- attr_accessor :_template_eof_trans
467
- private :_template_eof_trans, :_template_eof_trans=
468
- end
469
- self._template_eof_trans = [
470
- 0, 1, 1, 1, 6, 6, 6, 6,
471
- 10, 10, 10, 15, 0, 0, 0, 0,
472
- 0, 0, 0, 0, 0, 0, 0, 0,
473
- 0, 0, 0, 0, 0, 0, 0, 0,
474
- 0, 0, 0, 0, 0, 0, 0, 0,
475
- 0, 0, 0, 0, 78, 81, 78, 15,
476
- 83, 0, 0, 0, 0, 0, 0, 0,
477
- 0
478
- ]
479
-
480
- class << self
481
- attr_accessor :template_start
482
- end
483
- self.template_start = 43;
484
- class << self
485
- attr_accessor :template_first_final
486
- end
487
- self.template_first_final = 43;
488
- class << self
489
- attr_accessor :template_error
490
- end
491
- self.template_error = 0;
492
-
493
- class << self
494
- attr_accessor :template_en_parse_nested_expression
495
- end
496
- self.template_en_parse_nested_expression = 21;
497
- class << self
498
- attr_accessor :template_en_parse_expression
499
- end
500
- self.template_en_parse_expression = 32;
501
- class << self
502
- attr_accessor :template_en_main
503
- end
504
- self.template_en_main = 43;
505
-
506
-
507
- # line 75 "template.rl"
508
-
509
- def self.parse_template(buffer, delegate)
510
- data = buffer.read
511
- bytes = data.bytes
512
-
513
- p = 0
514
- pe = eof = data.bytesize
515
- stack = []
516
-
517
- expression_begin = expression_end = nil
518
- instruction_begin = instruction_end = nil
519
-
520
-
521
- # line 522 "template.rb"
522
- begin
523
- p ||= 0
524
- pe ||= data.length
525
- cs = template_start
526
- top = 0
527
- ts = nil
528
- te = nil
529
- act = 0
530
- end
531
-
532
- # line 88 "template.rl"
533
-
534
- # line 535 "template.rb"
535
- begin
536
- testEof = false
537
- _slen, _trans, _keys, _inds, _acts, _nacts = nil
538
- _goto_level = 0
539
- _resume = 10
540
- _eof_trans = 15
541
- _again = 20
542
- _test_eof = 30
543
- _out = 40
544
- while true
545
- if _goto_level <= 0
546
- if p == pe
547
- _goto_level = _test_eof
548
- next
549
- end
550
- if cs == 0
551
- _goto_level = _out
552
- next
553
- end
554
- end
555
- if _goto_level <= _resume
556
- case _template_from_state_actions[cs]
557
- when 19 then
558
- # line 1 "NONE"
559
- begin
560
- ts = p
31
+ # line 33 "template.rb"
32
+ class << self
33
+ attr_accessor :_template_trans_keys
34
+ private :_template_trans_keys, :_template_trans_keys=
561
35
  end
562
- # line 563 "template.rb"
563
- end
564
- _keys = cs << 1
565
- _inds = _template_index_offsets[cs]
566
- _slen = _template_key_spans[cs]
567
- _wide = ( bytes[p])
568
- _trans = if ( _slen > 0 &&
569
- _template_trans_keys[_keys] <= _wide &&
570
- _wide <= _template_trans_keys[_keys + 1]
571
- ) then
572
- _template_indicies[ _inds + _wide - _template_trans_keys[_keys] ]
573
- else
574
- _template_indicies[ _inds + _slen ]
575
- end
576
- end
577
- if _goto_level <= _eof_trans
578
- cs = _template_trans_targs[_trans]
579
- if _template_trans_actions[_trans] != 0
580
- case _template_trans_actions[_trans]
581
- when 5 then
582
- # line 24 "template.rl"
583
- begin
584
-
585
- instruction_begin = p
586
- end
587
- when 6 then
588
- # line 28 "template.rl"
589
- begin
590
-
591
- instruction_end = p
592
- end
593
- when 9 then
594
- # line 40 "template.rl"
595
- begin
596
-
597
- raise ParseError.new("failed to parse instruction", buffer, p)
598
- end
599
- when 16 then
600
- # line 13 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
601
- begin
602
- begin
603
- stack[top] = cs
604
- top+= 1
605
- cs = 21
606
- _goto_level = _again
607
- next
608
- end
36
+ self._template_trans_keys = [
37
+ 0, 0, 10, 60, 123, 123,
38
+ 63, 63, 123, 123, 63,
39
+ 63, 63, 63, 114, 114,
40
+ 9, 32, 63, 63, 62, 62,
41
+ 9, 32, 123, 123, 63,
42
+ 63, 0, 127, 0, 127,
43
+ 63, 63, 62, 62, 0, 127,
44
+ 63, 63, 62, 62, 34,
45
+ 125, 34, 35, 35, 125,
46
+ 35, 125, 34, 39, 35, 125,
47
+ 35, 125, 34, 123, 34,
48
+ 123, 39, 39, 34, 125,
49
+ 34, 125, 34, 35, 35, 125,
50
+ 35, 125, 34, 39, 35,
51
+ 125, 35, 125, 34, 123,
52
+ 34, 123, 39, 39, 34, 125,
53
+ 9, 60, 10, 60, 10,
54
+ 60, 9, 60, 9, 32,
55
+ 0, 0, 34, 39, 34, 35,
56
+ 39, 39, 0, 0, 34,
57
+ 39, 34, 35, 39, 39,
58
+ 0, 0, 0
59
+ ]
60
+
61
+ class << self
62
+ attr_accessor :_template_key_spans
63
+ private :_template_key_spans, :_template_key_spans=
609
64
  end
610
- when 13 then
611
- # line 17 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
612
- begin
613
- begin
614
- stack[top] = cs
615
- top+= 1
616
- cs = 21
617
- _goto_level = _again
618
- next
619
- end
65
+ self._template_key_spans = [
66
+ 0, 51, 1, 1, 1, 1, 1, 1,
67
+ 24, 1, 1, 24, 1, 1, 128, 128,
68
+ 1, 1, 128, 1, 1, 92, 2, 91,
69
+ 91, 6, 91, 91, 90, 90, 1, 92,
70
+ 92, 2, 91, 91, 6, 91, 91, 90,
71
+ 90, 1, 92, 52, 51, 51, 52, 24,
72
+ 0, 6, 2, 1, 0, 6, 2, 1,
73
+ 0
74
+ ]
75
+
76
+ class << self
77
+ attr_accessor :_template_index_offsets
78
+ private :_template_index_offsets, :_template_index_offsets=
620
79
  end
621
- when 14 then
622
- # line 20 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
623
- begin
624
- begin
625
- top -= 1
626
- cs = stack[top]
627
- _goto_level = _again
628
- next
629
- end
80
+ self._template_index_offsets = [
81
+ 0, 0, 52, 54, 56, 58, 60, 62,
82
+ 64, 89, 91, 93, 118, 120, 122, 251,
83
+ 380, 382, 384, 513, 515, 517, 610, 613,
84
+ 705, 797, 804, 896, 988, 1079, 1170, 1172,
85
+ 1265, 1358, 1361, 1453, 1545, 1552, 1644, 1736,
86
+ 1827, 1918, 1920, 2013, 2066, 2118, 2170, 2223,
87
+ 2248, 2249, 2256, 2259, 2261, 2262, 2269, 2272,
88
+ 2274
89
+ ]
90
+
91
+ class << self
92
+ attr_accessor :_template_indicies
93
+ private :_template_indicies, :_template_indicies=
630
94
  end
631
- when 2 then
632
- # line 1 "NONE"
633
- begin
634
- te = p+1
95
+ self._template_indicies = [
96
+ 2, 1, 1, 1, 1, 1, 1, 1,
97
+ 1, 1, 1, 1, 1, 1, 1, 1,
98
+ 1, 1, 1, 1, 1, 1, 1, 1,
99
+ 1, 3, 1, 1, 1, 1, 1, 1,
100
+ 1, 1, 1, 1, 1, 1, 1, 1,
101
+ 1, 1, 1, 1, 1, 1, 1, 1,
102
+ 1, 1, 4, 1, 0, 1, 0, 1,
103
+ 5, 6, 5, 6, 7, 6, 8, 5,
104
+ 10, 10, 10, 10, 10, 5, 5, 5,
105
+ 5, 5, 5, 5, 5, 5, 5, 5,
106
+ 5, 5, 5, 5, 5, 5, 5, 10,
107
+ 5, 12, 11, 13, 11, 13, 15, 13,
108
+ 13, 13, 14, 14, 14, 14, 14, 14,
109
+ 14, 14, 14, 14, 14, 14, 14, 14,
110
+ 14, 14, 14, 14, 13, 14, 16, 6,
111
+ 17, 6, 19, 19, 19, 19, 19, 19,
112
+ 19, 19, 19, 19, 19, 19, 19, 19,
113
+ 19, 19, 19, 19, 19, 19, 19, 19,
114
+ 19, 19, 19, 19, 19, 19, 19, 19,
115
+ 19, 19, 19, 19, 19, 19, 19, 19,
116
+ 19, 19, 19, 19, 19, 19, 19, 18,
117
+ 18, 19, 18, 18, 18, 18, 18, 18,
118
+ 18, 18, 18, 18, 18, 19, 19, 19,
119
+ 19, 19, 19, 18, 18, 18, 18, 18,
120
+ 18, 18, 18, 18, 18, 18, 18, 18,
121
+ 18, 18, 18, 18, 18, 18, 18, 18,
122
+ 18, 18, 18, 18, 18, 19, 19, 19,
123
+ 19, 18, 19, 18, 18, 18, 18, 18,
124
+ 18, 18, 18, 18, 18, 18, 18, 18,
125
+ 18, 18, 18, 18, 20, 18, 18, 18,
126
+ 18, 18, 18, 18, 18, 19, 19, 19,
127
+ 19, 19, 18, 19, 19, 19, 19, 19,
128
+ 19, 19, 19, 19, 21, 21, 21, 21,
129
+ 21, 19, 19, 19, 19, 19, 19, 19,
130
+ 19, 19, 19, 19, 19, 19, 19, 19,
131
+ 19, 19, 19, 21, 19, 19, 19, 19,
132
+ 19, 19, 19, 19, 19, 19, 19, 19,
133
+ 18, 18, 19, 18, 18, 18, 18, 18,
134
+ 18, 18, 18, 18, 18, 18, 19, 19,
135
+ 19, 19, 19, 19, 18, 18, 18, 18,
136
+ 18, 18, 18, 18, 18, 18, 18, 18,
137
+ 18, 18, 18, 18, 18, 18, 18, 18,
138
+ 18, 18, 18, 18, 18, 18, 19, 19,
139
+ 19, 19, 18, 19, 18, 18, 18, 18,
140
+ 18, 18, 18, 18, 18, 18, 18, 18,
141
+ 18, 18, 18, 18, 18, 18, 18, 18,
142
+ 18, 18, 18, 18, 18, 18, 19, 19,
143
+ 19, 19, 19, 18, 22, 21, 23, 21,
144
+ 19, 19, 19, 19, 19, 19, 19, 19,
145
+ 19, 24, 24, 24, 24, 24, 19, 19,
146
+ 19, 19, 19, 19, 19, 19, 19, 19,
147
+ 19, 19, 19, 19, 19, 19, 19, 19,
148
+ 24, 19, 19, 19, 19, 19, 19, 19,
149
+ 19, 19, 19, 19, 19, 18, 18, 19,
150
+ 18, 18, 18, 18, 18, 18, 18, 18,
151
+ 18, 18, 18, 19, 19, 19, 19, 19,
152
+ 19, 18, 18, 18, 18, 18, 18, 18,
153
+ 18, 18, 18, 18, 18, 18, 18, 18,
154
+ 18, 18, 18, 18, 18, 18, 18, 18,
155
+ 18, 18, 18, 19, 19, 19, 19, 18,
156
+ 19, 18, 18, 18, 18, 18, 18, 18,
157
+ 18, 18, 18, 18, 18, 18, 18, 18,
158
+ 18, 18, 18, 18, 18, 18, 18, 18,
159
+ 18, 18, 18, 19, 19, 19, 19, 19,
160
+ 18, 26, 25, 27, 25, 29, 28, 28,
161
+ 28, 28, 30, 28, 28, 28, 28, 28,
162
+ 28, 28, 28, 28, 28, 28, 28, 28,
163
+ 28, 28, 28, 28, 28, 28, 28, 28,
164
+ 28, 28, 28, 28, 28, 28, 28, 28,
165
+ 28, 28, 28, 28, 28, 28, 28, 28,
166
+ 28, 28, 28, 28, 28, 28, 28, 28,
167
+ 28, 28, 28, 28, 28, 28, 28, 28,
168
+ 28, 28, 28, 28, 28, 28, 28, 28,
169
+ 28, 28, 28, 28, 28, 28, 28, 28,
170
+ 28, 28, 28, 28, 28, 28, 28, 28,
171
+ 28, 28, 28, 28, 28, 28, 31, 28,
172
+ 32, 28, 33, 34, 29, 35, 33, 33,
173
+ 33, 36, 33, 33, 33, 33, 33, 33,
174
+ 33, 33, 33, 33, 33, 33, 33, 33,
175
+ 33, 33, 33, 33, 33, 33, 33, 33,
176
+ 33, 33, 33, 33, 33, 33, 33, 33,
177
+ 33, 33, 33, 33, 33, 33, 33, 33,
178
+ 33, 33, 33, 33, 33, 33, 33, 33,
179
+ 33, 33, 33, 33, 33, 33, 33, 33,
180
+ 33, 33, 33, 33, 33, 33, 33, 33,
181
+ 33, 33, 33, 33, 33, 33, 33, 33,
182
+ 33, 33, 33, 33, 33, 33, 33, 33,
183
+ 33, 33, 33, 33, 33, 37, 33, 38,
184
+ 33, 35, 33, 33, 33, 36, 33, 33,
185
+ 33, 33, 33, 33, 33, 33, 33, 33,
186
+ 33, 33, 33, 33, 33, 33, 33, 33,
187
+ 33, 33, 33, 33, 33, 33, 33, 33,
188
+ 33, 33, 33, 33, 33, 33, 33, 33,
189
+ 33, 33, 33, 33, 33, 33, 33, 33,
190
+ 33, 33, 33, 33, 33, 33, 33, 33,
191
+ 33, 33, 33, 33, 33, 33, 33, 33,
192
+ 33, 33, 33, 33, 33, 33, 33, 33,
193
+ 33, 33, 33, 33, 33, 33, 33, 33,
194
+ 33, 33, 33, 33, 33, 33, 33, 33,
195
+ 33, 39, 33, 38, 33, 40, 41, 36,
196
+ 36, 36, 40, 36, 42, 40, 40, 40,
197
+ 40, 40, 40, 40, 40, 40, 40, 40,
198
+ 40, 40, 40, 40, 40, 40, 40, 40,
199
+ 40, 40, 40, 40, 40, 40, 40, 40,
200
+ 40, 40, 40, 40, 40, 40, 40, 40,
201
+ 40, 40, 40, 40, 40, 40, 40, 40,
202
+ 40, 40, 40, 40, 40, 40, 40, 40,
203
+ 40, 40, 40, 40, 40, 40, 40, 40,
204
+ 40, 40, 40, 40, 40, 40, 40, 40,
205
+ 40, 40, 40, 40, 40, 40, 40, 40,
206
+ 40, 40, 40, 40, 40, 40, 40, 40,
207
+ 40, 40, 40, 40, 43, 40, 44, 40,
208
+ 42, 40, 40, 40, 40, 40, 40, 40,
209
+ 40, 40, 40, 40, 40, 40, 40, 40,
210
+ 40, 40, 40, 40, 40, 40, 40, 40,
211
+ 40, 40, 40, 40, 40, 40, 40, 40,
212
+ 40, 40, 40, 40, 40, 40, 40, 40,
213
+ 40, 40, 40, 40, 40, 40, 40, 40,
214
+ 40, 40, 40, 40, 40, 40, 40, 40,
215
+ 40, 40, 40, 40, 40, 40, 40, 40,
216
+ 40, 40, 40, 40, 40, 40, 40, 40,
217
+ 40, 40, 40, 40, 40, 40, 40, 40,
218
+ 40, 40, 40, 40, 40, 40, 40, 40,
219
+ 45, 40, 44, 40, 40, 41, 36, 36,
220
+ 36, 40, 36, 36, 36, 36, 36, 36,
221
+ 36, 36, 36, 36, 36, 36, 36, 36,
222
+ 36, 36, 36, 36, 36, 36, 36, 36,
223
+ 36, 36, 36, 36, 36, 36, 36, 36,
224
+ 36, 36, 36, 36, 36, 36, 36, 36,
225
+ 36, 36, 36, 36, 36, 36, 36, 36,
226
+ 36, 36, 36, 36, 36, 36, 36, 36,
227
+ 36, 36, 36, 36, 36, 36, 36, 36,
228
+ 36, 36, 36, 36, 36, 36, 36, 36,
229
+ 36, 36, 36, 36, 36, 36, 36, 36,
230
+ 36, 36, 36, 36, 36, 46, 36, 33,
231
+ 34, 29, 29, 29, 29, 29, 29, 29,
232
+ 29, 29, 29, 29, 29, 29, 29, 29,
233
+ 29, 29, 29, 29, 29, 29, 29, 29,
234
+ 29, 29, 29, 29, 29, 29, 29, 29,
235
+ 29, 29, 29, 29, 29, 29, 29, 29,
236
+ 29, 29, 29, 29, 29, 29, 29, 29,
237
+ 29, 29, 29, 29, 29, 29, 29, 29,
238
+ 29, 29, 29, 29, 29, 29, 29, 29,
239
+ 29, 29, 29, 29, 29, 29, 29, 29,
240
+ 29, 29, 29, 29, 29, 29, 29, 29,
241
+ 29, 29, 29, 29, 29, 29, 29, 29,
242
+ 47, 29, 48, 30, 36, 48, 48, 48,
243
+ 48, 48, 48, 48, 48, 48, 48, 48,
244
+ 48, 48, 48, 48, 48, 48, 48, 48,
245
+ 48, 48, 48, 48, 48, 48, 48, 48,
246
+ 48, 48, 48, 48, 48, 48, 48, 48,
247
+ 48, 48, 48, 48, 48, 48, 48, 48,
248
+ 48, 48, 48, 48, 48, 48, 48, 48,
249
+ 48, 48, 48, 48, 48, 48, 48, 48,
250
+ 48, 48, 48, 48, 48, 48, 48, 48,
251
+ 48, 48, 48, 48, 48, 48, 48, 48,
252
+ 48, 48, 48, 48, 48, 48, 48, 48,
253
+ 48, 48, 48, 48, 48, 49, 48, 50,
254
+ 48, 52, 51, 51, 51, 51, 53, 51,
255
+ 51, 51, 51, 51, 51, 51, 51, 51,
256
+ 51, 51, 51, 51, 51, 51, 51, 51,
257
+ 51, 51, 51, 51, 51, 51, 51, 51,
258
+ 51, 51, 51, 51, 51, 51, 51, 51,
259
+ 51, 51, 51, 51, 51, 51, 51, 51,
260
+ 51, 51, 51, 51, 51, 51, 51, 51,
261
+ 51, 51, 51, 51, 51, 51, 51, 51,
262
+ 51, 51, 51, 51, 51, 51, 51, 51,
263
+ 51, 51, 51, 51, 51, 51, 51, 51,
264
+ 51, 51, 51, 51, 51, 51, 51, 51,
265
+ 51, 51, 54, 51, 55, 51, 56, 57,
266
+ 52, 58, 56, 56, 56, 59, 56, 56,
267
+ 56, 56, 56, 56, 56, 56, 56, 56,
268
+ 56, 56, 56, 56, 56, 56, 56, 56,
269
+ 56, 56, 56, 56, 56, 56, 56, 56,
270
+ 56, 56, 56, 56, 56, 56, 56, 56,
271
+ 56, 56, 56, 56, 56, 56, 56, 56,
272
+ 56, 56, 56, 56, 56, 56, 56, 56,
273
+ 56, 56, 56, 56, 56, 56, 56, 56,
274
+ 56, 56, 56, 56, 56, 56, 56, 56,
275
+ 56, 56, 56, 56, 56, 56, 56, 56,
276
+ 56, 56, 56, 56, 56, 56, 56, 56,
277
+ 56, 60, 56, 61, 56, 58, 56, 56,
278
+ 56, 59, 56, 56, 56, 56, 56, 56,
279
+ 56, 56, 56, 56, 56, 56, 56, 56,
280
+ 56, 56, 56, 56, 56, 56, 56, 56,
281
+ 56, 56, 56, 56, 56, 56, 56, 56,
282
+ 56, 56, 56, 56, 56, 56, 56, 56,
283
+ 56, 56, 56, 56, 56, 56, 56, 56,
284
+ 56, 56, 56, 56, 56, 56, 56, 56,
285
+ 56, 56, 56, 56, 56, 56, 56, 56,
286
+ 56, 56, 56, 56, 56, 56, 56, 56,
287
+ 56, 56, 56, 56, 56, 56, 56, 56,
288
+ 56, 56, 56, 56, 56, 62, 56, 61,
289
+ 56, 63, 64, 59, 59, 59, 63, 59,
290
+ 65, 63, 63, 63, 63, 63, 63, 63,
291
+ 63, 63, 63, 63, 63, 63, 63, 63,
292
+ 63, 63, 63, 63, 63, 63, 63, 63,
293
+ 63, 63, 63, 63, 63, 63, 63, 63,
294
+ 63, 63, 63, 63, 63, 63, 63, 63,
295
+ 63, 63, 63, 63, 63, 63, 63, 63,
296
+ 63, 63, 63, 63, 63, 63, 63, 63,
297
+ 63, 63, 63, 63, 63, 63, 63, 63,
298
+ 63, 63, 63, 63, 63, 63, 63, 63,
299
+ 63, 63, 63, 63, 63, 63, 63, 63,
300
+ 63, 63, 63, 63, 63, 63, 63, 63,
301
+ 66, 63, 67, 63, 65, 63, 63, 63,
302
+ 63, 63, 63, 63, 63, 63, 63, 63,
303
+ 63, 63, 63, 63, 63, 63, 63, 63,
304
+ 63, 63, 63, 63, 63, 63, 63, 63,
305
+ 63, 63, 63, 63, 63, 63, 63, 63,
306
+ 63, 63, 63, 63, 63, 63, 63, 63,
307
+ 63, 63, 63, 63, 63, 63, 63, 63,
308
+ 63, 63, 63, 63, 63, 63, 63, 63,
309
+ 63, 63, 63, 63, 63, 63, 63, 63,
310
+ 63, 63, 63, 63, 63, 63, 63, 63,
311
+ 63, 63, 63, 63, 63, 63, 63, 63,
312
+ 63, 63, 63, 63, 68, 63, 67, 63,
313
+ 63, 64, 59, 59, 59, 63, 59, 59,
314
+ 59, 59, 59, 59, 59, 59, 59, 59,
315
+ 59, 59, 59, 59, 59, 59, 59, 59,
316
+ 59, 59, 59, 59, 59, 59, 59, 59,
317
+ 59, 59, 59, 59, 59, 59, 59, 59,
318
+ 59, 59, 59, 59, 59, 59, 59, 59,
319
+ 59, 59, 59, 59, 59, 59, 59, 59,
320
+ 59, 59, 59, 59, 59, 59, 59, 59,
321
+ 59, 59, 59, 59, 59, 59, 59, 59,
322
+ 59, 59, 59, 59, 59, 59, 59, 59,
323
+ 59, 59, 59, 59, 59, 59, 59, 59,
324
+ 59, 69, 59, 56, 57, 52, 52, 52,
325
+ 52, 52, 52, 52, 52, 52, 52, 52,
326
+ 52, 52, 52, 52, 52, 52, 52, 52,
327
+ 52, 52, 52, 52, 52, 52, 52, 52,
328
+ 52, 52, 52, 52, 52, 52, 52, 52,
329
+ 52, 52, 52, 52, 52, 52, 52, 52,
330
+ 52, 52, 52, 52, 52, 52, 52, 52,
331
+ 52, 52, 52, 52, 52, 52, 52, 52,
332
+ 52, 52, 52, 52, 52, 52, 52, 52,
333
+ 52, 52, 52, 52, 52, 52, 52, 52,
334
+ 52, 52, 52, 52, 52, 52, 52, 52,
335
+ 52, 52, 52, 52, 70, 52, 71, 53,
336
+ 59, 71, 71, 71, 71, 71, 71, 71,
337
+ 71, 71, 71, 71, 71, 71, 71, 71,
338
+ 71, 71, 71, 71, 71, 71, 71, 71,
339
+ 71, 71, 71, 71, 71, 71, 71, 71,
340
+ 71, 71, 71, 71, 71, 71, 71, 71,
341
+ 71, 71, 71, 71, 71, 71, 71, 71,
342
+ 71, 71, 71, 71, 71, 71, 71, 71,
343
+ 71, 71, 71, 71, 71, 71, 71, 71,
344
+ 71, 71, 71, 71, 71, 71, 71, 71,
345
+ 71, 71, 71, 71, 71, 71, 71, 71,
346
+ 71, 71, 71, 71, 71, 71, 71, 71,
347
+ 71, 72, 71, 73, 71, 74, 2, 74,
348
+ 74, 74, 6, 6, 6, 6, 6, 6,
349
+ 6, 6, 6, 6, 6, 6, 6, 6,
350
+ 6, 6, 6, 6, 74, 6, 6, 75,
351
+ 6, 6, 6, 6, 6, 6, 6, 6,
352
+ 6, 6, 6, 6, 6, 6, 6, 6,
353
+ 6, 6, 6, 6, 6, 6, 6, 6,
354
+ 76, 6, 2, 6, 6, 6, 6, 6,
355
+ 6, 6, 6, 6, 6, 6, 6, 6,
356
+ 6, 6, 6, 6, 6, 6, 6, 6,
357
+ 6, 6, 6, 78, 6, 6, 6, 6,
358
+ 6, 6, 6, 6, 6, 6, 6, 6,
359
+ 6, 6, 6, 6, 6, 6, 6, 6,
360
+ 6, 6, 6, 6, 79, 6, 2, 1,
361
+ 1, 1, 1, 1, 1, 1, 1, 1,
362
+ 1, 1, 1, 1, 1, 1, 1, 1,
363
+ 1, 1, 1, 1, 1, 1, 1, 3,
364
+ 1, 1, 1, 1, 1, 1, 1, 1,
365
+ 1, 1, 1, 1, 1, 1, 1, 1,
366
+ 1, 1, 1, 1, 1, 1, 1, 1,
367
+ 4, 1, 74, 2, 74, 74, 74, 6,
368
+ 6, 6, 6, 6, 6, 6, 6, 6,
369
+ 6, 6, 6, 6, 6, 6, 6, 6,
370
+ 6, 74, 6, 6, 78, 6, 6, 6,
371
+ 6, 6, 6, 6, 6, 6, 6, 6,
372
+ 6, 6, 6, 6, 6, 6, 6, 6,
373
+ 6, 6, 6, 6, 6, 81, 6, 13,
374
+ 15, 13, 13, 13, 14, 14, 14, 14,
375
+ 14, 14, 14, 14, 14, 14, 14, 14,
376
+ 14, 14, 14, 14, 14, 14, 13, 14,
377
+ 82, 40, 41, 36, 36, 36, 40, 36,
378
+ 33, 34, 29, 48, 30, 83, 63, 64,
379
+ 59, 59, 59, 63, 59, 56, 57, 52,
380
+ 71, 53, 83, 0
381
+ ]
382
+
383
+ class << self
384
+ attr_accessor :_template_trans_targs
385
+ private :_template_trans_targs, :_template_trans_targs=
635
386
  end
636
- when 10 then
637
- # line 60 "template.rl"
638
- begin
639
- te = p+1
640
- begin
641
- delegate.text(data.byteslice(ts...te))
642
- end
387
+ self._template_trans_targs = [
388
+ 43, 1, 45, 2, 3, 43, 44, 7,
389
+ 8, 43, 9, 9, 10, 11, 43, 47,
390
+ 48, 14, 15, 0, 18, 16, 17, 43,
391
+ 19, 19, 20, 47, 21, 22, 30, 21,
392
+ 52, 23, 29, 24, 25, 23, 50, 23,
393
+ 26, 28, 27, 26, 49, 26, 25, 22,
394
+ 31, 31, 51, 32, 33, 41, 32, 56,
395
+ 34, 40, 35, 36, 34, 54, 34, 37,
396
+ 39, 38, 37, 53, 37, 36, 33, 42,
397
+ 42, 55, 46, 12, 13, 43, 4, 5,
398
+ 43, 6, 43, 0
399
+ ]
400
+
401
+ class << self
402
+ attr_accessor :_template_trans_actions
403
+ private :_template_trans_actions, :_template_trans_actions=
643
404
  end
644
- when 22 then
645
- # line 60 "template.rl"
646
- begin
647
- te = p
648
- p = p - 1; begin
649
- delegate.text(data.byteslice(ts...te))
650
- end
405
+ self._template_trans_actions = [
406
+ 1, 0, 2, 0, 0, 3, 2, 0,
407
+ 0, 4, 5, 0, 6, 0, 7, 8,
408
+ 0, 0, 0, 9, 0, 0, 0, 10,
409
+ 5, 0, 6, 11, 0, 0, 0, 13,
410
+ 14, 0, 0, 0, 0, 13, 14, 15,
411
+ 0, 0, 0, 13, 14, 15, 16, 16,
412
+ 0, 13, 14, 0, 0, 0, 13, 18,
413
+ 0, 0, 0, 0, 13, 18, 15, 0,
414
+ 0, 0, 13, 18, 15, 16, 16, 0,
415
+ 13, 18, 20, 0, 0, 21, 0, 0,
416
+ 22, 0, 23, 0
417
+ ]
418
+
419
+ class << self
420
+ attr_accessor :_template_to_state_actions
421
+ private :_template_to_state_actions, :_template_to_state_actions=
651
422
  end
652
- when 21 then
653
- # line 60 "template.rl"
654
- begin
655
- te = p
656
- p = p - 1; begin
657
- delegate.text(data.byteslice(ts...te))
658
- end
423
+ self._template_to_state_actions = [
424
+ 0, 0, 0, 0, 0, 0, 0, 0,
425
+ 0, 0, 0, 0, 0, 0, 0, 0,
426
+ 0, 0, 0, 0, 0, 12, 12, 12,
427
+ 0, 12, 12, 0, 0, 0, 0, 12,
428
+ 12, 12, 12, 0, 12, 12, 0, 0,
429
+ 0, 0, 12, 12, 0, 0, 0, 0,
430
+ 0, 0, 0, 0, 0, 0, 0, 0,
431
+ 0
432
+ ]
433
+
434
+ class << self
435
+ attr_accessor :_template_from_state_actions
436
+ private :_template_from_state_actions, :_template_from_state_actions=
659
437
  end
660
- when 1 then
661
- # line 60 "template.rl"
662
- begin
663
- begin p = ((te))-1; end
664
- begin
665
- delegate.text(data.byteslice(ts...te))
666
- end
438
+ self._template_from_state_actions = [
439
+ 0, 0, 0, 0, 0, 0, 0, 0,
440
+ 0, 0, 0, 0, 0, 0, 0, 0,
441
+ 0, 0, 0, 0, 0, 0, 0, 0,
442
+ 0, 0, 0, 0, 0, 0, 0, 0,
443
+ 0, 0, 0, 0, 0, 0, 0, 0,
444
+ 0, 0, 0, 19, 0, 0, 0, 0,
445
+ 0, 0, 0, 0, 0, 0, 0, 0,
446
+ 0
447
+ ]
448
+
449
+ class << self
450
+ attr_accessor :_template_eof_actions
451
+ private :_template_eof_actions, :_template_eof_actions=
667
452
  end
668
- when 3 then
669
- # line 60 "template.rl"
670
- begin
671
- begin p = ((te))-1; end
672
- begin
673
- delegate.text(data.byteslice(ts...te))
674
- end
453
+ self._template_eof_actions = [
454
+ 0, 0, 0, 0, 0, 0, 0, 0,
455
+ 0, 0, 0, 0, 0, 0, 9, 9,
456
+ 9, 9, 9, 9, 9, 0, 0, 0,
457
+ 0, 0, 0, 0, 0, 0, 0, 0,
458
+ 17, 17, 17, 17, 17, 17, 17, 17,
459
+ 17, 17, 17, 0, 0, 0, 0, 0,
460
+ 0, 0, 0, 0, 0, 0, 0, 0,
461
+ 0
462
+ ]
463
+
464
+ class << self
465
+ attr_accessor :_template_eof_trans
466
+ private :_template_eof_trans, :_template_eof_trans=
675
467
  end
676
- when 7 then
677
- # line 1 "NONE"
678
- begin
679
- case act
680
- when 1 then
681
- begin begin p = ((te))-1; end
468
+ self._template_eof_trans = [
469
+ 0, 1, 1, 1, 6, 6, 6, 6,
470
+ 10, 10, 10, 15, 0, 0, 0, 0,
471
+ 0, 0, 0, 0, 0, 0, 0, 0,
472
+ 0, 0, 0, 0, 0, 0, 0, 0,
473
+ 0, 0, 0, 0, 0, 0, 0, 0,
474
+ 0, 0, 0, 0, 78, 81, 78, 15,
475
+ 83, 0, 0, 0, 0, 0, 0, 0,
476
+ 0
477
+ ]
478
+
479
+ class << self
480
+ attr_accessor :template_start
481
+ end
482
+ self.template_start = 43;
483
+ class << self
484
+ attr_accessor :template_first_final
485
+ end
486
+ self.template_first_final = 43;
487
+ class << self
488
+ attr_accessor :template_error
489
+ end
490
+ self.template_error = 0;
682
491
 
683
- delegate.instruction(data.byteslice(instruction_begin...instruction_end), "\n")
684
- end
685
- when 3 then
686
- begin begin p = ((te))-1; end
492
+ class << self
493
+ attr_accessor :template_en_parse_nested_expression
494
+ end
495
+ self.template_en_parse_nested_expression = 21;
496
+ class << self
497
+ attr_accessor :template_en_parse_expression
498
+ end
499
+ self.template_en_parse_expression = 32;
500
+ class << self
501
+ attr_accessor :template_en_main
502
+ end
503
+ self.template_en_main = 43;
687
504
 
688
- delegate.instruction(data.byteslice(instruction_begin...instruction_end))
689
- end
690
- when 6 then
691
- begin begin p = ((te))-1; end
692
505
 
693
- delegate.text(data.byteslice(ts...te))
694
- end
695
- end
506
+ # line 75 "template.rl"
507
+ def self.parse_template(buffer, delegate)
508
+ data = buffer.read
509
+ bytes = data.bytes
510
+ p = 0
511
+ pe = eof = data.bytesize
512
+ stack = []
513
+ expression_begin = expression_end = nil
514
+ instruction_begin = instruction_end = nil
515
+ # line 522 "template.rb"
516
+ begin
517
+ p ||= 0
518
+ pe ||= data.length
519
+ cs = template_start
520
+ top = 0
521
+ ts = nil
522
+ te = nil
523
+ act = 0
696
524
  end
525
+
526
+ # line 88 "template.rl"
527
+ # line 535 "template.rb"
528
+ begin
529
+ testEof = false
530
+ _slen, _trans, _keys, _inds, _acts, _nacts = nil
531
+ _goto_level = 0
532
+ _resume = 10
533
+ _eof_trans = 15
534
+ _again = 20
535
+ _test_eof = 30
536
+ _out = 40
537
+ while true
538
+ if _goto_level <= 0
539
+ if p == pe
540
+ _goto_level = _test_eof
541
+ next
542
+ end
543
+ if cs == 0
544
+ _goto_level = _out
545
+ next
546
+ end
547
+ end
548
+ if _goto_level <= _resume
549
+ case _template_from_state_actions[cs]
550
+ when 19 then
551
+ # line 1 "NONE"
552
+ begin
553
+ ts = p
554
+ end
555
+ # line 563 "template.rb"
556
+ end
557
+ _keys = cs << 1
558
+ _inds = _template_index_offsets[cs]
559
+ _slen = _template_key_spans[cs]
560
+ _wide = ( bytes[p])
561
+ _trans = if ( _slen > 0 &&
562
+ _template_trans_keys[_keys] <= _wide &&
563
+ _wide <= _template_trans_keys[_keys + 1]
564
+ ) then
565
+ _template_indicies[ _inds + _wide - _template_trans_keys[_keys] ]
566
+ else
567
+ _template_indicies[ _inds + _slen ]
568
+ end
569
+ end
570
+ if _goto_level <= _eof_trans
571
+ cs = _template_trans_targs[_trans]
572
+ if _template_trans_actions[_trans] != 0
573
+ case _template_trans_actions[_trans]
574
+ when 5 then
575
+ # line 24 "template.rl"
576
+ begin
577
+
578
+ instruction_begin = p
579
+ end
580
+ when 6 then
581
+ # line 28 "template.rl"
582
+ begin
583
+
584
+ instruction_end = p
585
+ end
586
+ when 9 then
587
+ # line 40 "template.rl"
588
+ begin
589
+
590
+ raise ParseError.new("failed to parse instruction", buffer, p)
591
+ end
592
+ when 16 then
593
+ # line 13 "/home/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
594
+ begin
595
+ begin
596
+ stack[top] = cs
597
+ top+= 1
598
+ cs = 21
599
+ _goto_level = _again
600
+ next
601
+ end
602
+ end
603
+ when 13 then
604
+ # line 17 "/home/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
605
+ begin
606
+ begin
607
+ stack[top] = cs
608
+ top+= 1
609
+ cs = 21
610
+ _goto_level = _again
611
+ next
612
+ end
613
+ end
614
+ when 14 then
615
+ # line 20 "/home/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
616
+ begin
617
+ begin
618
+ top -= 1
619
+ cs = stack[top]
620
+ _goto_level = _again
621
+ next
622
+ end
623
+ end
624
+ when 2 then
625
+ # line 1 "NONE"
626
+ begin
627
+ te = p+1
628
+ end
629
+ when 10 then
630
+ # line 60 "template.rl"
631
+ begin
632
+ te = p+1
633
+ begin
634
+ delegate.text(data.byteslice(ts...te))
635
+ end
636
+ end
637
+ when 22 then
638
+ # line 60 "template.rl"
639
+ begin
640
+ te = p
641
+ p = p - 1; begin
642
+ delegate.text(data.byteslice(ts...te))
643
+ end
644
+ end
645
+ when 21 then
646
+ # line 60 "template.rl"
647
+ begin
648
+ te = p
649
+ p = p - 1; begin
650
+ delegate.text(data.byteslice(ts...te))
651
+ end
652
+ end
653
+ when 1 then
654
+ # line 60 "template.rl"
655
+ begin
656
+ begin p = ((te))-1; end
657
+ begin
658
+ delegate.text(data.byteslice(ts...te))
659
+ end
660
+ end
661
+ when 3 then
662
+ # line 60 "template.rl"
663
+ begin
664
+ begin p = ((te))-1; end
665
+ begin
666
+ delegate.text(data.byteslice(ts...te))
667
+ end
668
+ end
669
+ when 7 then
670
+ # line 1 "NONE"
671
+ begin
672
+ case act
673
+ when 1 then
674
+ begin begin p = ((te))-1; end
675
+
676
+ delegate.instruction(data.byteslice(instruction_begin...instruction_end), "\n")
677
+ end
678
+ when 3 then
679
+ begin begin p = ((te))-1; end
680
+
681
+ delegate.instruction(data.byteslice(instruction_begin...instruction_end))
682
+ end
683
+ when 6 then
684
+ begin begin p = ((te))-1; end
685
+
686
+ delegate.text(data.byteslice(ts...te))
687
+ end
688
+ end
689
+ end
697
690
  when 4 then
698
- # line 40 "template.rl"
691
+ # line 40 "template.rl"
699
692
  begin
700
693
 
701
- raise ParseError.new("failed to parse instruction", buffer, p)
702
- end
703
- # line 60 "template.rl"
694
+ raise ParseError.new("failed to parse instruction", buffer, p)
695
+ end
696
+ # line 60 "template.rl"
704
697
  begin
705
- begin p = ((te))-1; end
706
- begin
707
- delegate.text(data.byteslice(ts...te))
708
- end
698
+ begin p = ((te))-1; end
699
+ begin
700
+ delegate.text(data.byteslice(ts...te))
701
+ end
709
702
  end
710
703
  when 23 then
711
- # line 44 "template.rl"
704
+ # line 44 "template.rl"
712
705
  begin
713
706
 
714
- expression_begin = p
715
- end
716
- # line 53 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
717
- begin
718
- te = p
719
- p = p - 1; begin cs = 32; end
707
+ expression_begin = p
720
708
  end
721
- when 15 then
722
- # line 13 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
709
+ # line 53 "/home/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
723
710
  begin
724
- begin
725
- stack[top] = cs
726
- top+= 1
727
- cs = 21
728
- _goto_level = _again
729
- next
711
+ te = p
712
+ p = p - 1; begin cs = 32; end
730
713
  end
731
- end
732
- # line 17 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
733
- begin
714
+ when 15 then
715
+ # line 13 "/home/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
734
716
  begin
735
- stack[top] = cs
736
- top+= 1
737
- cs = 21
738
- _goto_level = _again
739
- next
740
- end
741
- end
742
- when 8 then
743
- # line 1 "NONE"
744
717
  begin
745
- te = p+1
718
+ stack[top] = cs
719
+ top+= 1
720
+ cs = 21
721
+ _goto_level = _again
722
+ next
746
723
  end
747
- # line 36 "template.rl"
748
- begin
749
- act = 1; end
750
- when 11 then
751
- # line 1 "NONE"
752
- begin
753
- te = p+1
754
- end
755
- # line 32 "template.rl"
756
- begin
757
- act = 3; end
758
- when 20 then
759
- # line 1 "NONE"
724
+ end
725
+ # line 17 "/home/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
726
+ begin
760
727
  begin
761
- te = p+1
728
+ stack[top] = cs
729
+ top+= 1
730
+ cs = 21
731
+ _goto_level = _again
732
+ next
762
733
  end
763
- # line 60 "template.rl"
764
- begin
765
- act = 6; end
766
- when 18 then
767
- # line 48 "template.rl"
768
- begin
734
+ end
735
+ when 8 then
736
+ # line 1 "NONE"
737
+ begin
738
+ te = p+1
739
+ end
740
+ # line 36 "template.rl"
741
+ begin
742
+ act = 1; end
743
+ when 11 then
744
+ # line 1 "NONE"
745
+ begin
746
+ te = p+1
747
+ end
748
+ # line 32 "template.rl"
749
+ begin
750
+ act = 3; end
751
+ when 20 then
752
+ # line 1 "NONE"
753
+ begin
754
+ te = p+1
755
+ end
756
+ # line 60 "template.rl"
757
+ begin
758
+ act = 6; end
759
+ when 18 then
760
+ # line 48 "template.rl"
761
+ begin
769
762
 
770
763
  expression_end = p
771
- end
772
- # line 52 "template.rl"
773
- begin
764
+ end
765
+ # line 52 "template.rl"
766
+ begin
774
767
 
775
768
  delegate.expression(data.byteslice(expression_begin...expression_end))
776
- end
777
- # line 21 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
778
- begin
779
- cs = 43; end
780
- # line 781 "template.rb"
781
- end
782
- end
783
769
  end
784
- if _goto_level <= _again
770
+ # line 21 "/home/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
771
+ begin
772
+ cs = 43; end
773
+ # line 781 "template.rb"
774
+ end
775
+ end
776
+ end
777
+ if _goto_level <= _again
785
778
  case _template_to_state_actions[cs]
786
779
  when 12 then
787
- # line 1 "NONE"
780
+ # line 1 "NONE"
788
781
  begin
789
- ts = nil; end
790
- # line 791 "template.rb"
782
+ ts = nil; end
783
+ # line 791 "template.rb"
791
784
  end
792
785
 
793
786
  if cs == 0
@@ -799,45 +792,43 @@ ts = nil; end
799
792
  _goto_level = _resume
800
793
  next
801
794
  end
802
- end
803
- if _goto_level <= _test_eof
795
+ end
796
+ if _goto_level <= _test_eof
804
797
  if p == eof
805
- if _template_eof_trans[cs] > 0
806
- _trans = _template_eof_trans[cs] - 1;
807
- _goto_level = _eof_trans
808
- next;
809
- end
810
- case _template_eof_actions[cs]
811
- when 9 then
812
- # line 40 "template.rl"
813
- begin
798
+ if _template_eof_trans[cs] > 0
799
+ _trans = _template_eof_trans[cs] - 1;
800
+ _goto_level = _eof_trans
801
+ next;
802
+ end
803
+ case _template_eof_actions[cs]
804
+ when 9 then
805
+ # line 40 "template.rl"
806
+ begin
814
807
 
815
- raise ParseError.new("failed to parse instruction", buffer, p)
808
+ raise ParseError.new("failed to parse instruction", buffer, p)
816
809
  end
817
- when 17 then
818
- # line 56 "template.rl"
819
- begin
810
+ when 17 then
811
+ # line 56 "template.rl"
812
+ begin
820
813
 
821
- raise ParseError.new("failed to parse expression", buffer, p)
814
+ raise ParseError.new("failed to parse expression", buffer, p)
822
815
  end
823
- # line 824 "template.rb"
824
- end
816
+ # line 824 "template.rb"
817
+ end
825
818
  end
826
819
 
827
- end
828
- if _goto_level <= _out
829
- break
830
- end
831
820
  end
832
- end
821
+ if _goto_level <= _out
822
+ break
823
+ end
824
+ end
825
+ end
833
826
 
834
827
  # line 89 "template.rl"
835
-
836
- if p != eof
837
- raise ParseError.new("could not consume all input", buffer, p)
838
- end
839
-
840
- return nil
841
- end
842
- end
828
+ if p != eof
829
+ raise ParseError.new("could not consume all input", buffer, p)
830
+ end
831
+ return nil
832
+ end
833
+ end
843
834
  end