trenni 3.0.3 → 3.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/trenni/markup.c +18 -18
- data/ext/trenni/template.c +99 -98
- data/lib/trenni/fallback/markup.rb +13 -13
- data/lib/trenni/fallback/template.rb +64 -61
- data/lib/trenni/version.rb +1 -1
- data/parsers/trenni/template.rl +1 -1
- data/spec/trenni/template_spec.rb +11 -0
- data/spec/trenni/template_spec/lines.trenni +6 -0
- data/tasks/parsers.rake +8 -3
- metadata +20 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 678975501ff1d7219ad2c2fae3f3fab031d05544
|
4
|
+
data.tar.gz: 2142c44dbdda88baed7670cfe398673f0b3181b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c3eb22887267903a78c77bb436dbe04869b6967bc241c91c2e8d3f55d4b9efac3cabf6ed1323c775e83f2a4227890464c92e7ed9534aeb278d9e10b8b5eedf8
|
7
|
+
data.tar.gz: 0bfcfcae5eada6e53c0e3f9ac2272fef413f5f703a33cd5bcfe7dac71354972f94a06a9ded4e68669655cfb28c04c1eb2b2750ed0a5c5ce55ffe5a60160cef03
|
data/ext/trenni/markup.c
CHANGED
@@ -278,11 +278,11 @@ tr91:
|
|
278
278
|
|
279
279
|
Trenni_append_token(&pcdata, encoding, characters);
|
280
280
|
}
|
281
|
-
#line 10 "/
|
281
|
+
#line 10 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/entities.rl"
|
282
282
|
{{stack[top++] = 50; goto st42;}}
|
283
283
|
goto st50;
|
284
284
|
tr94:
|
285
|
-
#line 10 "/
|
285
|
+
#line 10 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/entities.rl"
|
286
286
|
{{stack[top++] = 50; goto st42;}}
|
287
287
|
goto st50;
|
288
288
|
tr88:
|
@@ -294,7 +294,7 @@ tr88:
|
|
294
294
|
pcdata = Qnil;
|
295
295
|
has_entities = 0;
|
296
296
|
}
|
297
|
-
#line 10 "/
|
297
|
+
#line 10 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/entities.rl"
|
298
298
|
{{stack[top++] = 50; goto st42;}}
|
299
299
|
goto st50;
|
300
300
|
tr97:
|
@@ -310,7 +310,7 @@ tr97:
|
|
310
310
|
pcdata = Qnil;
|
311
311
|
has_entities = 0;
|
312
312
|
}
|
313
|
-
#line 10 "/
|
313
|
+
#line 10 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/entities.rl"
|
314
314
|
{{stack[top++] = 50; goto st42;}}
|
315
315
|
goto st50;
|
316
316
|
tr100:
|
@@ -328,7 +328,7 @@ tr100:
|
|
328
328
|
pcdata = Qnil;
|
329
329
|
has_entities = 0;
|
330
330
|
}
|
331
|
-
#line 10 "/
|
331
|
+
#line 10 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/entities.rl"
|
332
332
|
{{stack[top++] = 50; goto st42;}}
|
333
333
|
goto st50;
|
334
334
|
tr103:
|
@@ -346,7 +346,7 @@ tr103:
|
|
346
346
|
pcdata = Qnil;
|
347
347
|
has_entities = 0;
|
348
348
|
}
|
349
|
-
#line 10 "/
|
349
|
+
#line 10 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/entities.rl"
|
350
350
|
{{stack[top++] = 50; goto st42;}}
|
351
351
|
goto st50;
|
352
352
|
tr106:
|
@@ -364,7 +364,7 @@ tr106:
|
|
364
364
|
pcdata = Qnil;
|
365
365
|
has_entities = 0;
|
366
366
|
}
|
367
|
-
#line 10 "/
|
367
|
+
#line 10 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/entities.rl"
|
368
368
|
{{stack[top++] = 50; goto st42;}}
|
369
369
|
goto st50;
|
370
370
|
tr109:
|
@@ -380,7 +380,7 @@ tr109:
|
|
380
380
|
pcdata = Qnil;
|
381
381
|
has_entities = 0;
|
382
382
|
}
|
383
|
-
#line 10 "/
|
383
|
+
#line 10 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/entities.rl"
|
384
384
|
{{stack[top++] = 50; goto st42;}}
|
385
385
|
goto st50;
|
386
386
|
tr112:
|
@@ -398,7 +398,7 @@ tr112:
|
|
398
398
|
pcdata = Qnil;
|
399
399
|
has_entities = 0;
|
400
400
|
}
|
401
|
-
#line 10 "/
|
401
|
+
#line 10 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/entities.rl"
|
402
402
|
{{stack[top++] = 50; goto st42;}}
|
403
403
|
goto st50;
|
404
404
|
st50:
|
@@ -1140,7 +1140,7 @@ tr22:
|
|
1140
1140
|
pcdata = Qnil;
|
1141
1141
|
has_entities = 0;
|
1142
1142
|
}
|
1143
|
-
#line 10 "/
|
1143
|
+
#line 10 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/entities.rl"
|
1144
1144
|
{{stack[top++] = 10; goto st42;}}
|
1145
1145
|
goto st10;
|
1146
1146
|
tr25:
|
@@ -1150,11 +1150,11 @@ tr25:
|
|
1150
1150
|
|
1151
1151
|
Trenni_append_token(&pcdata, encoding, characters);
|
1152
1152
|
}
|
1153
|
-
#line 10 "/
|
1153
|
+
#line 10 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/entities.rl"
|
1154
1154
|
{{stack[top++] = 10; goto st42;}}
|
1155
1155
|
goto st10;
|
1156
1156
|
tr31:
|
1157
|
-
#line 10 "/
|
1157
|
+
#line 10 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/entities.rl"
|
1158
1158
|
{{stack[top++] = 10; goto st42;}}
|
1159
1159
|
goto st10;
|
1160
1160
|
st10:
|
@@ -1224,7 +1224,7 @@ tr36:
|
|
1224
1224
|
pcdata = Qnil;
|
1225
1225
|
has_entities = 0;
|
1226
1226
|
}
|
1227
|
-
#line 10 "/
|
1227
|
+
#line 10 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/entities.rl"
|
1228
1228
|
{{stack[top++] = 14; goto st42;}}
|
1229
1229
|
goto st14;
|
1230
1230
|
tr38:
|
@@ -1234,11 +1234,11 @@ tr38:
|
|
1234
1234
|
|
1235
1235
|
Trenni_append_token(&pcdata, encoding, characters);
|
1236
1236
|
}
|
1237
|
-
#line 10 "/
|
1237
|
+
#line 10 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/entities.rl"
|
1238
1238
|
{{stack[top++] = 14; goto st42;}}
|
1239
1239
|
goto st14;
|
1240
1240
|
tr40:
|
1241
|
-
#line 10 "/
|
1241
|
+
#line 10 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/entities.rl"
|
1242
1242
|
{{stack[top++] = 14; goto st42;}}
|
1243
1243
|
goto st14;
|
1244
1244
|
st14:
|
@@ -1643,7 +1643,7 @@ tr81:
|
|
1643
1643
|
|
1644
1644
|
Trenni_append_codepoint(&pcdata, encoding, codepoint);
|
1645
1645
|
}
|
1646
|
-
#line 8 "/
|
1646
|
+
#line 8 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/entities.rl"
|
1647
1647
|
{{cs = stack[--top];goto _again;}}
|
1648
1648
|
goto st57;
|
1649
1649
|
tr84:
|
@@ -1657,7 +1657,7 @@ tr84:
|
|
1657
1657
|
|
1658
1658
|
Trenni_append_codepoint(&pcdata, encoding, codepoint);
|
1659
1659
|
}
|
1660
|
-
#line 8 "/
|
1660
|
+
#line 8 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/entities.rl"
|
1661
1661
|
{{cs = stack[--top];goto _again;}}
|
1662
1662
|
goto st57;
|
1663
1663
|
tr86:
|
@@ -1671,7 +1671,7 @@ tr86:
|
|
1671
1671
|
rb_funcall(entities, id_key_get, 1, Trenni_token(entity, encoding))
|
1672
1672
|
);
|
1673
1673
|
}
|
1674
|
-
#line 8 "/
|
1674
|
+
#line 8 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/entities.rl"
|
1675
1675
|
{{cs = stack[--top];goto _again;}}
|
1676
1676
|
goto st57;
|
1677
1677
|
st57:
|
data/ext/trenni/template.c
CHANGED
@@ -65,9 +65,8 @@ _again:
|
|
65
65
|
case 9: goto st9;
|
66
66
|
case 10: goto st10;
|
67
67
|
case 11: goto st11;
|
68
|
-
case 47: goto st47;
|
69
68
|
case 12: goto st12;
|
70
|
-
case
|
69
|
+
case 47: goto st47;
|
71
70
|
case 13: goto st13;
|
72
71
|
case 14: goto st14;
|
73
72
|
case 15: goto st15;
|
@@ -77,6 +76,7 @@ _again:
|
|
77
76
|
case 18: goto st18;
|
78
77
|
case 19: goto st19;
|
79
78
|
case 20: goto st20;
|
79
|
+
case 48: goto st48;
|
80
80
|
case 21: goto st21;
|
81
81
|
case 22: goto st22;
|
82
82
|
case 23: goto st23;
|
@@ -140,11 +140,6 @@ tr9:
|
|
140
140
|
tr14:
|
141
141
|
#line 1 "NONE"
|
142
142
|
{ switch( act ) {
|
143
|
-
case 1:
|
144
|
-
{{p = ((te))-1;}
|
145
|
-
rb_funcall(delegate, id_instruction, 2, Trenni_token(instruction, encoding), newline);
|
146
|
-
}
|
147
|
-
break;
|
148
143
|
case 3:
|
149
144
|
{{p = ((te))-1;}
|
150
145
|
rb_funcall(delegate, id_instruction, 1, Trenni_token(instruction, encoding));
|
@@ -158,6 +153,12 @@ tr14:
|
|
158
153
|
}
|
159
154
|
}
|
160
155
|
goto st43;
|
156
|
+
tr15:
|
157
|
+
#line 19 "template.rl"
|
158
|
+
{te = p+1;{
|
159
|
+
rb_funcall(delegate, id_instruction, 2, Trenni_token(instruction, encoding), newline);
|
160
|
+
}}
|
161
|
+
goto st43;
|
161
162
|
tr23:
|
162
163
|
#line 43 "template.rl"
|
163
164
|
{te = p+1;{
|
@@ -182,9 +183,15 @@ tr82:
|
|
182
183
|
{
|
183
184
|
expression.begin = p;
|
184
185
|
}
|
185
|
-
#line 53 "/
|
186
|
+
#line 53 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
|
186
187
|
{te = p;p--;{cs = 32;}}
|
187
188
|
goto _again;
|
189
|
+
tr83:
|
190
|
+
#line 15 "template.rl"
|
191
|
+
{te = p;p--;{
|
192
|
+
rb_funcall(delegate, id_instruction, 1, Trenni_token(instruction, encoding));
|
193
|
+
}}
|
194
|
+
goto st43;
|
188
195
|
st43:
|
189
196
|
#line 1 "NONE"
|
190
197
|
{ts = 0;}
|
@@ -193,7 +200,7 @@ st43:
|
|
193
200
|
case 43:
|
194
201
|
#line 1 "NONE"
|
195
202
|
{ts = p;}
|
196
|
-
#line
|
203
|
+
#line 204 "template.c"
|
197
204
|
switch( (*p) ) {
|
198
205
|
case 10: goto tr2;
|
199
206
|
case 32: goto tr74;
|
@@ -211,7 +218,7 @@ st44:
|
|
211
218
|
if ( ++p == pe )
|
212
219
|
goto _test_eof44;
|
213
220
|
case 44:
|
214
|
-
#line
|
221
|
+
#line 222 "template.c"
|
215
222
|
switch( (*p) ) {
|
216
223
|
case 10: goto tr2;
|
217
224
|
case 35: goto st4;
|
@@ -226,7 +233,7 @@ st45:
|
|
226
233
|
if ( ++p == pe )
|
227
234
|
goto _test_eof45;
|
228
235
|
case 45:
|
229
|
-
#line
|
236
|
+
#line 237 "template.c"
|
230
237
|
switch( (*p) ) {
|
231
238
|
case 10: goto tr2;
|
232
239
|
case 35: goto st2;
|
@@ -281,7 +288,7 @@ st46:
|
|
281
288
|
if ( ++p == pe )
|
282
289
|
goto _test_eof46;
|
283
290
|
case 46:
|
284
|
-
#line
|
291
|
+
#line 292 "template.c"
|
285
292
|
switch( (*p) ) {
|
286
293
|
case 10: goto tr2;
|
287
294
|
case 32: goto tr74;
|
@@ -324,7 +331,7 @@ st9:
|
|
324
331
|
if ( ++p == pe )
|
325
332
|
goto _test_eof9;
|
326
333
|
case 9:
|
327
|
-
#line
|
334
|
+
#line 335 "template.c"
|
328
335
|
if ( (*p) == 63 )
|
329
336
|
goto tr12;
|
330
337
|
goto st9;
|
@@ -338,7 +345,7 @@ st10:
|
|
338
345
|
if ( ++p == pe )
|
339
346
|
goto _test_eof10;
|
340
347
|
case 10:
|
341
|
-
#line
|
348
|
+
#line 349 "template.c"
|
342
349
|
if ( (*p) == 62 )
|
343
350
|
goto st11;
|
344
351
|
goto st9;
|
@@ -353,41 +360,17 @@ case 11:
|
|
353
360
|
if ( 9 <= (*p) && (*p) <= 13 )
|
354
361
|
goto st11;
|
355
362
|
goto tr14;
|
356
|
-
tr15:
|
357
|
-
#line 1 "NONE"
|
358
|
-
{te = p+1;}
|
359
|
-
#line 19 "template.rl"
|
360
|
-
{act = 1;}
|
361
|
-
goto st47;
|
362
|
-
tr27:
|
363
|
-
#line 1 "NONE"
|
364
|
-
{te = p+1;}
|
365
|
-
#line 15 "template.rl"
|
366
|
-
{act = 3;}
|
367
|
-
goto st47;
|
368
|
-
st47:
|
369
|
-
if ( ++p == pe )
|
370
|
-
goto _test_eof47;
|
371
|
-
case 47:
|
372
|
-
#line 373 "template.c"
|
373
|
-
switch( (*p) ) {
|
374
|
-
case 10: goto tr15;
|
375
|
-
case 32: goto st11;
|
376
|
-
}
|
377
|
-
if ( 9 <= (*p) && (*p) <= 13 )
|
378
|
-
goto st11;
|
379
|
-
goto tr14;
|
380
363
|
st12:
|
381
364
|
if ( ++p == pe )
|
382
365
|
goto _test_eof12;
|
383
366
|
case 12:
|
384
367
|
if ( (*p) == 123 )
|
385
|
-
goto
|
368
|
+
goto st47;
|
386
369
|
goto tr6;
|
387
|
-
|
370
|
+
st47:
|
388
371
|
if ( ++p == pe )
|
389
|
-
goto
|
390
|
-
case
|
372
|
+
goto _test_eof47;
|
373
|
+
case 47:
|
391
374
|
goto tr82;
|
392
375
|
st13:
|
393
376
|
if ( ++p == pe )
|
@@ -450,7 +433,7 @@ tr19:
|
|
450
433
|
Trenni_raise_error("failed to parse instruction", buffer, p-s);
|
451
434
|
}
|
452
435
|
goto st0;
|
453
|
-
#line
|
436
|
+
#line 437 "template.c"
|
454
437
|
st0:
|
455
438
|
cs = 0;
|
456
439
|
goto _out;
|
@@ -505,7 +488,7 @@ st19:
|
|
505
488
|
if ( ++p == pe )
|
506
489
|
goto _test_eof19;
|
507
490
|
case 19:
|
508
|
-
#line
|
491
|
+
#line 492 "template.c"
|
509
492
|
if ( (*p) == 63 )
|
510
493
|
goto tr26;
|
511
494
|
goto st19;
|
@@ -519,12 +502,30 @@ st20:
|
|
519
502
|
if ( ++p == pe )
|
520
503
|
goto _test_eof20;
|
521
504
|
case 20:
|
522
|
-
#line
|
505
|
+
#line 506 "template.c"
|
523
506
|
if ( (*p) == 62 )
|
524
507
|
goto tr27;
|
525
508
|
goto st19;
|
509
|
+
tr27:
|
510
|
+
#line 1 "NONE"
|
511
|
+
{te = p+1;}
|
512
|
+
#line 15 "template.rl"
|
513
|
+
{act = 3;}
|
514
|
+
goto st48;
|
515
|
+
st48:
|
516
|
+
if ( ++p == pe )
|
517
|
+
goto _test_eof48;
|
518
|
+
case 48:
|
519
|
+
#line 520 "template.c"
|
520
|
+
switch( (*p) ) {
|
521
|
+
case 10: goto tr15;
|
522
|
+
case 32: goto st11;
|
523
|
+
}
|
524
|
+
if ( 9 <= (*p) && (*p) <= 13 )
|
525
|
+
goto st11;
|
526
|
+
goto tr83;
|
526
527
|
tr31:
|
527
|
-
#line 17 "/
|
528
|
+
#line 17 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
|
528
529
|
{{stack[top++] = 21; goto st21;}}
|
529
530
|
goto st21;
|
530
531
|
st21:
|
@@ -533,7 +534,7 @@ st21:
|
|
533
534
|
if ( ++p == pe )
|
534
535
|
goto _test_eof21;
|
535
536
|
case 21:
|
536
|
-
#line
|
537
|
+
#line 538 "template.c"
|
537
538
|
switch( (*p) ) {
|
538
539
|
case 34: goto st22;
|
539
540
|
case 39: goto st30;
|
@@ -542,7 +543,7 @@ case 21:
|
|
542
543
|
}
|
543
544
|
goto st21;
|
544
545
|
tr47:
|
545
|
-
#line 13 "/
|
546
|
+
#line 13 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
|
546
547
|
{{stack[top++] = 22; goto st21;}}
|
547
548
|
goto st22;
|
548
549
|
st22:
|
@@ -551,20 +552,20 @@ st22:
|
|
551
552
|
if ( ++p == pe )
|
552
553
|
goto _test_eof22;
|
553
554
|
case 22:
|
554
|
-
#line
|
555
|
+
#line 556 "template.c"
|
555
556
|
switch( (*p) ) {
|
556
557
|
case 34: goto st23;
|
557
558
|
case 35: goto st29;
|
558
559
|
}
|
559
560
|
goto st22;
|
560
561
|
tr37:
|
561
|
-
#line 17 "/
|
562
|
+
#line 17 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
|
562
563
|
{{stack[top++] = 23; goto st21;}}
|
563
564
|
goto st23;
|
564
565
|
tr39:
|
565
|
-
#line 13 "/
|
566
|
+
#line 13 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
|
566
567
|
{{stack[top++] = 23; goto st21;}}
|
567
|
-
#line 17 "/
|
568
|
+
#line 17 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
|
568
569
|
{{stack[top++] = 23; goto st21;}}
|
569
570
|
goto st23;
|
570
571
|
st23:
|
@@ -573,7 +574,7 @@ st23:
|
|
573
574
|
if ( ++p == pe )
|
574
575
|
goto _test_eof23;
|
575
576
|
case 23:
|
576
|
-
#line
|
577
|
+
#line 578 "template.c"
|
577
578
|
switch( (*p) ) {
|
578
579
|
case 35: goto st24;
|
579
580
|
case 39: goto st25;
|
@@ -593,7 +594,7 @@ case 24:
|
|
593
594
|
}
|
594
595
|
goto st23;
|
595
596
|
tr46:
|
596
|
-
#line 13 "/
|
597
|
+
#line 13 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
|
597
598
|
{{stack[top++] = 25; goto st21;}}
|
598
599
|
goto st25;
|
599
600
|
st25:
|
@@ -602,7 +603,7 @@ st25:
|
|
602
603
|
if ( ++p == pe )
|
603
604
|
goto _test_eof25;
|
604
605
|
case 25:
|
605
|
-
#line
|
606
|
+
#line 607 "template.c"
|
606
607
|
switch( (*p) ) {
|
607
608
|
case 34: goto st26;
|
608
609
|
case 35: goto st28;
|
@@ -610,13 +611,13 @@ case 25:
|
|
610
611
|
}
|
611
612
|
goto st25;
|
612
613
|
tr43:
|
613
|
-
#line 17 "/
|
614
|
+
#line 17 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
|
614
615
|
{{stack[top++] = 26; goto st21;}}
|
615
616
|
goto st26;
|
616
617
|
tr45:
|
617
|
-
#line 13 "/
|
618
|
+
#line 13 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
|
618
619
|
{{stack[top++] = 26; goto st21;}}
|
619
|
-
#line 17 "/
|
620
|
+
#line 17 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
|
620
621
|
{{stack[top++] = 26; goto st21;}}
|
621
622
|
goto st26;
|
622
623
|
st26:
|
@@ -625,7 +626,7 @@ st26:
|
|
625
626
|
if ( ++p == pe )
|
626
627
|
goto _test_eof26;
|
627
628
|
case 26:
|
628
|
-
#line
|
629
|
+
#line 630 "template.c"
|
629
630
|
switch( (*p) ) {
|
630
631
|
case 35: goto st27;
|
631
632
|
case 123: goto tr43;
|
@@ -643,14 +644,14 @@ case 27:
|
|
643
644
|
}
|
644
645
|
goto st26;
|
645
646
|
tr44:
|
646
|
-
#line 20 "/
|
647
|
+
#line 20 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
|
647
648
|
{{cs = stack[--top];goto _again;}}
|
648
649
|
goto st49;
|
649
650
|
st49:
|
650
651
|
if ( ++p == pe )
|
651
652
|
goto _test_eof49;
|
652
653
|
case 49:
|
653
|
-
#line
|
654
|
+
#line 655 "template.c"
|
654
655
|
switch( (*p) ) {
|
655
656
|
case 34: goto st26;
|
656
657
|
case 35: goto st28;
|
@@ -669,14 +670,14 @@ case 28:
|
|
669
670
|
}
|
670
671
|
goto st25;
|
671
672
|
tr38:
|
672
|
-
#line 20 "/
|
673
|
+
#line 20 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
|
673
674
|
{{cs = stack[--top];goto _again;}}
|
674
675
|
goto st50;
|
675
676
|
st50:
|
676
677
|
if ( ++p == pe )
|
677
678
|
goto _test_eof50;
|
678
679
|
case 50:
|
679
|
-
#line
|
680
|
+
#line 681 "template.c"
|
680
681
|
switch( (*p) ) {
|
681
682
|
case 34: goto st23;
|
682
683
|
case 35: goto st29;
|
@@ -700,7 +701,7 @@ case 30:
|
|
700
701
|
goto st31;
|
701
702
|
goto st30;
|
702
703
|
tr49:
|
703
|
-
#line 17 "/
|
704
|
+
#line 17 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
|
704
705
|
{{stack[top++] = 31; goto st21;}}
|
705
706
|
goto st31;
|
706
707
|
st31:
|
@@ -709,7 +710,7 @@ st31:
|
|
709
710
|
if ( ++p == pe )
|
710
711
|
goto _test_eof31;
|
711
712
|
case 31:
|
712
|
-
#line
|
713
|
+
#line 714 "template.c"
|
713
714
|
switch( (*p) ) {
|
714
715
|
case 34: goto st25;
|
715
716
|
case 123: goto tr49;
|
@@ -717,29 +718,29 @@ case 31:
|
|
717
718
|
}
|
718
719
|
goto st31;
|
719
720
|
tr50:
|
720
|
-
#line 20 "/
|
721
|
+
#line 20 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
|
721
722
|
{{cs = stack[--top];goto _again;}}
|
722
723
|
goto st51;
|
723
724
|
st51:
|
724
725
|
if ( ++p == pe )
|
725
726
|
goto _test_eof51;
|
726
727
|
case 51:
|
727
|
-
#line
|
728
|
+
#line 729 "template.c"
|
728
729
|
if ( (*p) == 39 )
|
729
730
|
goto st31;
|
730
731
|
goto st30;
|
731
732
|
tr32:
|
732
|
-
#line 20 "/
|
733
|
+
#line 20 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
|
733
734
|
{{cs = stack[--top];goto _again;}}
|
734
735
|
goto st52;
|
735
736
|
st52:
|
736
737
|
if ( ++p == pe )
|
737
738
|
goto _test_eof52;
|
738
739
|
case 52:
|
739
|
-
#line
|
740
|
+
#line 741 "template.c"
|
740
741
|
goto st0;
|
741
742
|
tr54:
|
742
|
-
#line 17 "/
|
743
|
+
#line 17 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
|
743
744
|
{{stack[top++] = 32; goto st21;}}
|
744
745
|
goto st32;
|
745
746
|
st32:
|
@@ -748,7 +749,7 @@ st32:
|
|
748
749
|
if ( ++p == pe )
|
749
750
|
goto _test_eof32;
|
750
751
|
case 32:
|
751
|
-
#line
|
752
|
+
#line 753 "template.c"
|
752
753
|
switch( (*p) ) {
|
753
754
|
case 34: goto st33;
|
754
755
|
case 39: goto st41;
|
@@ -757,7 +758,7 @@ case 32:
|
|
757
758
|
}
|
758
759
|
goto st32;
|
759
760
|
tr70:
|
760
|
-
#line 13 "/
|
761
|
+
#line 13 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
|
761
762
|
{{stack[top++] = 33; goto st21;}}
|
762
763
|
goto st33;
|
763
764
|
st33:
|
@@ -766,20 +767,20 @@ st33:
|
|
766
767
|
if ( ++p == pe )
|
767
768
|
goto _test_eof33;
|
768
769
|
case 33:
|
769
|
-
#line
|
770
|
+
#line 771 "template.c"
|
770
771
|
switch( (*p) ) {
|
771
772
|
case 34: goto st34;
|
772
773
|
case 35: goto st40;
|
773
774
|
}
|
774
775
|
goto st33;
|
775
776
|
tr60:
|
776
|
-
#line 17 "/
|
777
|
+
#line 17 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
|
777
778
|
{{stack[top++] = 34; goto st21;}}
|
778
779
|
goto st34;
|
779
780
|
tr62:
|
780
|
-
#line 13 "/
|
781
|
+
#line 13 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
|
781
782
|
{{stack[top++] = 34; goto st21;}}
|
782
|
-
#line 17 "/
|
783
|
+
#line 17 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
|
783
784
|
{{stack[top++] = 34; goto st21;}}
|
784
785
|
goto st34;
|
785
786
|
st34:
|
@@ -788,7 +789,7 @@ st34:
|
|
788
789
|
if ( ++p == pe )
|
789
790
|
goto _test_eof34;
|
790
791
|
case 34:
|
791
|
-
#line
|
792
|
+
#line 793 "template.c"
|
792
793
|
switch( (*p) ) {
|
793
794
|
case 35: goto st35;
|
794
795
|
case 39: goto st36;
|
@@ -808,7 +809,7 @@ case 35:
|
|
808
809
|
}
|
809
810
|
goto st34;
|
810
811
|
tr69:
|
811
|
-
#line 13 "/
|
812
|
+
#line 13 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
|
812
813
|
{{stack[top++] = 36; goto st21;}}
|
813
814
|
goto st36;
|
814
815
|
st36:
|
@@ -817,7 +818,7 @@ st36:
|
|
817
818
|
if ( ++p == pe )
|
818
819
|
goto _test_eof36;
|
819
820
|
case 36:
|
820
|
-
#line
|
821
|
+
#line 822 "template.c"
|
821
822
|
switch( (*p) ) {
|
822
823
|
case 34: goto st37;
|
823
824
|
case 35: goto st39;
|
@@ -825,13 +826,13 @@ case 36:
|
|
825
826
|
}
|
826
827
|
goto st36;
|
827
828
|
tr66:
|
828
|
-
#line 17 "/
|
829
|
+
#line 17 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
|
829
830
|
{{stack[top++] = 37; goto st21;}}
|
830
831
|
goto st37;
|
831
832
|
tr68:
|
832
|
-
#line 13 "/
|
833
|
+
#line 13 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
|
833
834
|
{{stack[top++] = 37; goto st21;}}
|
834
|
-
#line 17 "/
|
835
|
+
#line 17 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
|
835
836
|
{{stack[top++] = 37; goto st21;}}
|
836
837
|
goto st37;
|
837
838
|
st37:
|
@@ -840,7 +841,7 @@ st37:
|
|
840
841
|
if ( ++p == pe )
|
841
842
|
goto _test_eof37;
|
842
843
|
case 37:
|
843
|
-
#line
|
844
|
+
#line 845 "template.c"
|
844
845
|
switch( (*p) ) {
|
845
846
|
case 35: goto st38;
|
846
847
|
case 123: goto tr66;
|
@@ -867,14 +868,14 @@ tr67:
|
|
867
868
|
{
|
868
869
|
rb_funcall(delegate, id_expression, 1, Trenni_token(expression, encoding));
|
869
870
|
}
|
870
|
-
#line 21 "/
|
871
|
+
#line 21 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
|
871
872
|
{cs = 43;}
|
872
873
|
goto _again;
|
873
874
|
st53:
|
874
875
|
if ( ++p == pe )
|
875
876
|
goto _test_eof53;
|
876
877
|
case 53:
|
877
|
-
#line
|
878
|
+
#line 879 "template.c"
|
878
879
|
switch( (*p) ) {
|
879
880
|
case 34: goto st37;
|
880
881
|
case 35: goto st39;
|
@@ -902,14 +903,14 @@ tr61:
|
|
902
903
|
{
|
903
904
|
rb_funcall(delegate, id_expression, 1, Trenni_token(expression, encoding));
|
904
905
|
}
|
905
|
-
#line 21 "/
|
906
|
+
#line 21 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
|
906
907
|
{cs = 43;}
|
907
908
|
goto _again;
|
908
909
|
st54:
|
909
910
|
if ( ++p == pe )
|
910
911
|
goto _test_eof54;
|
911
912
|
case 54:
|
912
|
-
#line
|
913
|
+
#line 914 "template.c"
|
913
914
|
switch( (*p) ) {
|
914
915
|
case 34: goto st34;
|
915
916
|
case 35: goto st40;
|
@@ -933,7 +934,7 @@ case 41:
|
|
933
934
|
goto st42;
|
934
935
|
goto st41;
|
935
936
|
tr72:
|
936
|
-
#line 17 "/
|
937
|
+
#line 17 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
|
937
938
|
{{stack[top++] = 42; goto st21;}}
|
938
939
|
goto st42;
|
939
940
|
st42:
|
@@ -942,7 +943,7 @@ st42:
|
|
942
943
|
if ( ++p == pe )
|
943
944
|
goto _test_eof42;
|
944
945
|
case 42:
|
945
|
-
#line
|
946
|
+
#line 947 "template.c"
|
946
947
|
switch( (*p) ) {
|
947
948
|
case 34: goto st36;
|
948
949
|
case 123: goto tr72;
|
@@ -959,14 +960,14 @@ tr73:
|
|
959
960
|
{
|
960
961
|
rb_funcall(delegate, id_expression, 1, Trenni_token(expression, encoding));
|
961
962
|
}
|
962
|
-
#line 21 "/
|
963
|
+
#line 21 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
|
963
964
|
{cs = 43;}
|
964
965
|
goto _again;
|
965
966
|
st55:
|
966
967
|
if ( ++p == pe )
|
967
968
|
goto _test_eof55;
|
968
969
|
case 55:
|
969
|
-
#line
|
970
|
+
#line 971 "template.c"
|
970
971
|
if ( (*p) == 39 )
|
971
972
|
goto st42;
|
972
973
|
goto st41;
|
@@ -980,14 +981,14 @@ tr55:
|
|
980
981
|
{
|
981
982
|
rb_funcall(delegate, id_expression, 1, Trenni_token(expression, encoding));
|
982
983
|
}
|
983
|
-
#line 21 "/
|
984
|
+
#line 21 "/Users/samuel/Documents/Programming/ioquatix/trenni/parsers/trenni/template.rl"
|
984
985
|
{cs = 43;}
|
985
986
|
goto _again;
|
986
987
|
st56:
|
987
988
|
if ( ++p == pe )
|
988
989
|
goto _test_eof56;
|
989
990
|
case 56:
|
990
|
-
#line
|
991
|
+
#line 992 "template.c"
|
991
992
|
goto st0;
|
992
993
|
}
|
993
994
|
_test_eof43: cs = 43; goto _test_eof;
|
@@ -1005,9 +1006,8 @@ case 56:
|
|
1005
1006
|
_test_eof9: cs = 9; goto _test_eof;
|
1006
1007
|
_test_eof10: cs = 10; goto _test_eof;
|
1007
1008
|
_test_eof11: cs = 11; goto _test_eof;
|
1008
|
-
_test_eof47: cs = 47; goto _test_eof;
|
1009
1009
|
_test_eof12: cs = 12; goto _test_eof;
|
1010
|
-
|
1010
|
+
_test_eof47: cs = 47; goto _test_eof;
|
1011
1011
|
_test_eof13: cs = 13; goto _test_eof;
|
1012
1012
|
_test_eof14: cs = 14; goto _test_eof;
|
1013
1013
|
_test_eof15: cs = 15; goto _test_eof;
|
@@ -1016,6 +1016,7 @@ case 56:
|
|
1016
1016
|
_test_eof18: cs = 18; goto _test_eof;
|
1017
1017
|
_test_eof19: cs = 19; goto _test_eof;
|
1018
1018
|
_test_eof20: cs = 20; goto _test_eof;
|
1019
|
+
_test_eof48: cs = 48; goto _test_eof;
|
1019
1020
|
_test_eof21: cs = 21; goto _test_eof;
|
1020
1021
|
_test_eof22: cs = 22; goto _test_eof;
|
1021
1022
|
_test_eof23: cs = 23; goto _test_eof;
|
@@ -1065,8 +1066,8 @@ case 56:
|
|
1065
1066
|
case 9: goto tr9;
|
1066
1067
|
case 10: goto tr9;
|
1067
1068
|
case 11: goto tr14;
|
1068
|
-
case 47: goto
|
1069
|
-
case 48: goto
|
1069
|
+
case 47: goto tr82;
|
1070
|
+
case 48: goto tr83;
|
1070
1071
|
case 14:
|
1071
1072
|
case 15:
|
1072
1073
|
case 16:
|
@@ -1095,7 +1096,7 @@ case 56:
|
|
1095
1096
|
Trenni_raise_error("failed to parse expression", buffer, p-s);
|
1096
1097
|
}
|
1097
1098
|
break;
|
1098
|
-
#line
|
1099
|
+
#line 1100 "template.c"
|
1099
1100
|
}
|
1100
1101
|
}
|
1101
1102
|
|