breakout_parser 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ext/breakout_parser/lex.yy.c +517 -469
- data/ext/breakout_parser/parser.l +6 -1
- data/ext/breakout_parser/parser.tab.c +150 -145
- data/ext/breakout_parser/parser.tab.h +5 -3
- data/ext/breakout_parser/parser.y +2 -0
- data/spec/parser_spec.rb +31 -26
- metadata +2 -2
@@ -189,8 +189,10 @@ void yyerror(const char *msg)
|
|
189
189
|
PRE_END = 287,
|
190
190
|
CODE_START = 288,
|
191
191
|
CODE_END = 289,
|
192
|
-
|
193
|
-
|
192
|
+
NOTEXTILE_START = 290,
|
193
|
+
NOTEXTILE_END = 291,
|
194
|
+
BOLD_END = 292,
|
195
|
+
ITALIC_END = 293
|
194
196
|
};
|
195
197
|
#endif
|
196
198
|
|
@@ -210,7 +212,7 @@ typedef union YYSTYPE
|
|
210
212
|
|
211
213
|
|
212
214
|
/* Line 214 of yacc.c */
|
213
|
-
#line
|
215
|
+
#line 216 "parser.tab.c"
|
214
216
|
} YYSTYPE;
|
215
217
|
# define YYSTYPE_IS_TRIVIAL 1
|
216
218
|
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
|
@@ -222,7 +224,7 @@ typedef union YYSTYPE
|
|
222
224
|
|
223
225
|
|
224
226
|
/* Line 264 of yacc.c */
|
225
|
-
#line
|
227
|
+
#line 228 "parser.tab.c"
|
226
228
|
|
227
229
|
#ifdef short
|
228
230
|
# undef short
|
@@ -435,22 +437,22 @@ union yyalloc
|
|
435
437
|
#endif
|
436
438
|
|
437
439
|
/* YYFINAL -- State number of the termination state. */
|
438
|
-
#define YYFINAL
|
440
|
+
#define YYFINAL 48
|
439
441
|
/* YYLAST -- Last index in YYTABLE. */
|
440
|
-
#define YYLAST
|
442
|
+
#define YYLAST 110
|
441
443
|
|
442
444
|
/* YYNTOKENS -- Number of terminals. */
|
443
|
-
#define YYNTOKENS
|
445
|
+
#define YYNTOKENS 39
|
444
446
|
/* YYNNTS -- Number of nonterminals. */
|
445
447
|
#define YYNNTS 28
|
446
448
|
/* YYNRULES -- Number of rules. */
|
447
|
-
#define YYNRULES
|
449
|
+
#define YYNRULES 63
|
448
450
|
/* YYNRULES -- Number of states. */
|
449
|
-
#define YYNSTATES
|
451
|
+
#define YYNSTATES 77
|
450
452
|
|
451
453
|
/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
|
452
454
|
#define YYUNDEFTOK 2
|
453
|
-
#define YYMAXUTOK
|
455
|
+
#define YYMAXUTOK 293
|
454
456
|
|
455
457
|
#define YYTRANSLATE(YYX) \
|
456
458
|
((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
|
@@ -487,7 +489,7 @@ static const yytype_uint8 yytranslate[] =
|
|
487
489
|
5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
|
488
490
|
15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
|
489
491
|
25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
|
490
|
-
35, 36
|
492
|
+
35, 36, 37, 38
|
491
493
|
};
|
492
494
|
|
493
495
|
#if YYDEBUG
|
@@ -501,39 +503,39 @@ static const yytype_uint8 yyprhs[] =
|
|
501
503
|
70, 72, 74, 76, 78, 80, 82, 84, 86, 88,
|
502
504
|
90, 92, 94, 96, 98, 100, 102, 103, 106, 108,
|
503
505
|
110, 112, 114, 116, 118, 120, 122, 124, 125, 130,
|
504
|
-
|
506
|
+
134, 135, 140, 141
|
505
507
|
};
|
506
508
|
|
507
509
|
/* YYRHS -- A `-1'-separated list of the rules' RHS. */
|
508
510
|
static const yytype_int8 yyrhs[] =
|
509
511
|
{
|
510
|
-
|
511
|
-
-1,
|
512
|
-
-1, -1, -1,
|
513
|
-
|
514
|
-
|
515
|
-
-1,
|
516
|
-
-1,
|
517
|
-
6, -1, 17, -1, 4, -1,
|
518
|
-
|
512
|
+
40, 0, -1, -1, 41, 40, -1, 62, -1, 50,
|
513
|
+
-1, 55, -1, 56, -1, 57, -1, 58, -1, 59,
|
514
|
+
-1, -1, -1, 42, 46, 43, 41, -1, -1, -1,
|
515
|
+
44, 48, 45, 41, -1, 63, -1, 47, -1, 46,
|
516
|
+
47, -1, 61, 50, -1, 61, 50, 26, -1, 49,
|
517
|
+
-1, 48, 49, -1, 60, 50, -1, 60, 50, 26,
|
518
|
+
-1, 51, -1, 51, 50, -1, 53, -1, 52, -1,
|
519
|
+
6, -1, 17, -1, 4, -1, 37, -1, 5, -1,
|
520
|
+
38, -1, 24, -1, 7, -1, 9, -1, 10, -1,
|
519
521
|
13, -1, 14, -1, 11, -1, 12, -1, 15, -1,
|
520
|
-
16, -1, -1,
|
522
|
+
16, -1, -1, 54, 53, -1, 3, -1, 19, -1,
|
521
523
|
20, -1, 21, -1, 22, -1, 23, -1, 27, -1,
|
522
|
-
28, -1, 26, -1, -1, 29,
|
523
|
-
|
524
|
-
34, -1
|
524
|
+
28, -1, 26, -1, -1, 29, 64, 53, 30, -1,
|
525
|
+
35, 53, 36, -1, -1, 31, 65, 53, 32, -1,
|
526
|
+
-1, 33, 66, 53, 34, -1
|
525
527
|
};
|
526
528
|
|
527
529
|
/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
|
528
530
|
static const yytype_uint8 yyrline[] =
|
529
531
|
{
|
530
|
-
0,
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
532
|
+
0, 85, 85, 86, 89, 90, 91, 92, 93, 94,
|
533
|
+
95, 96, 96, 96, 97, 97, 97, 98, 100, 101,
|
534
|
+
103, 104, 106, 107, 109, 110, 112, 113, 115, 116,
|
535
|
+
117, 118, 119, 120, 121, 122, 123, 125, 126, 127,
|
536
|
+
128, 129, 130, 131, 132, 133, 135, 136, 138, 145,
|
537
|
+
146, 147, 148, 149, 151, 152, 153, 156, 156, 157,
|
538
|
+
158, 158, 159, 159
|
537
539
|
};
|
538
540
|
#endif
|
539
541
|
|
@@ -548,10 +550,11 @@ static const char *const yytname[] =
|
|
548
550
|
"URL_WITHOUT_PROTO_LINK", "FILE_LINK", "IMAGE_LINK", "URL", "UL", "H1",
|
549
551
|
"H2", "H3", "H4", "H5", "INLINE_CODE", "SPACE", "BR", "OLI", "ULI",
|
550
552
|
"PRE_CODE_START", "PRE_CODE_END", "PRE_START", "PRE_END", "CODE_START",
|
551
|
-
"CODE_END", "
|
552
|
-
"
|
553
|
-
"
|
554
|
-
"oli", "uli", "br", "code", "$@5", "$@6",
|
553
|
+
"CODE_END", "NOTEXTILE_START", "NOTEXTILE_END", "BOLD_END", "ITALIC_END",
|
554
|
+
"$accept", "text", "textitem", "$@1", "$@2", "$@3", "$@4", "ulist",
|
555
|
+
"ulitem", "olist", "olitem", "words", "word", "link", "chars", "char",
|
556
|
+
"h1", "h2", "h3", "h4", "h5", "oli", "uli", "br", "code", "$@5", "$@6",
|
557
|
+
"$@7", 0
|
555
558
|
};
|
556
559
|
#endif
|
557
560
|
|
@@ -563,20 +566,20 @@ static const yytype_uint16 yytoknum[] =
|
|
563
566
|
0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
|
564
567
|
265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
|
565
568
|
275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
|
566
|
-
285, 286, 287, 288, 289, 290, 291
|
569
|
+
285, 286, 287, 288, 289, 290, 291, 292, 293
|
567
570
|
};
|
568
571
|
# endif
|
569
572
|
|
570
573
|
/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
|
571
574
|
static const yytype_uint8 yyr1[] =
|
572
575
|
{
|
573
|
-
0,
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
576
|
+
0, 39, 40, 40, 41, 41, 41, 41, 41, 41,
|
577
|
+
41, 42, 43, 41, 44, 45, 41, 41, 46, 46,
|
578
|
+
47, 47, 48, 48, 49, 49, 50, 50, 51, 51,
|
579
|
+
51, 51, 51, 51, 51, 51, 51, 52, 52, 52,
|
580
|
+
52, 52, 52, 52, 52, 52, 53, 53, 54, 55,
|
581
|
+
56, 57, 58, 59, 60, 61, 62, 64, 63, 63,
|
582
|
+
65, 63, 66, 63
|
580
583
|
};
|
581
584
|
|
582
585
|
/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
|
@@ -587,8 +590,8 @@ static const yytype_uint8 yyr2[] =
|
|
587
590
|
2, 3, 1, 2, 2, 3, 1, 2, 1, 1,
|
588
591
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
589
592
|
1, 1, 1, 1, 1, 1, 0, 2, 1, 1,
|
590
|
-
1, 1, 1, 1, 1, 1, 1, 0, 4,
|
591
|
-
4, 0, 4
|
593
|
+
1, 1, 1, 1, 1, 1, 1, 0, 4, 3,
|
594
|
+
0, 4, 0, 4
|
592
595
|
};
|
593
596
|
|
594
597
|
/* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
|
@@ -598,43 +601,43 @@ static const yytype_uint8 yydefact[] =
|
|
598
601
|
{
|
599
602
|
2, 48, 32, 34, 30, 37, 38, 39, 42, 43,
|
600
603
|
40, 41, 44, 45, 31, 49, 50, 51, 52, 53,
|
601
|
-
36, 56, 57,
|
602
|
-
0, 5, 26, 29, 28, 46, 6, 7, 8,
|
603
|
-
|
604
|
-
18, 46, 54, 15, 22, 46, 27, 47,
|
605
|
-
0, 11, 19, 20, 11, 23, 24,
|
606
|
-
13, 21, 16, 25
|
604
|
+
36, 56, 57, 60, 62, 46, 33, 35, 0, 2,
|
605
|
+
0, 0, 5, 26, 29, 28, 46, 6, 7, 8,
|
606
|
+
9, 10, 4, 17, 46, 46, 46, 0, 1, 3,
|
607
|
+
55, 12, 18, 46, 54, 15, 22, 46, 27, 47,
|
608
|
+
0, 0, 0, 59, 11, 19, 20, 11, 23, 24,
|
609
|
+
58, 61, 63, 13, 21, 16, 25
|
607
610
|
};
|
608
611
|
|
609
612
|
/* YYDEFGOTO[NTERM-NUM]. */
|
610
613
|
static const yytype_int8 yydefgoto[] =
|
611
614
|
{
|
612
|
-
-1,
|
613
|
-
|
614
|
-
|
615
|
+
-1, 28, 29, 30, 64, 31, 67, 51, 52, 55,
|
616
|
+
56, 32, 33, 34, 35, 36, 37, 38, 39, 40,
|
617
|
+
41, 57, 53, 42, 43, 44, 45, 46
|
615
618
|
};
|
616
619
|
|
617
620
|
/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
|
618
621
|
STATE-NUM. */
|
619
|
-
#define YYPACT_NINF -
|
622
|
+
#define YYPACT_NINF -26
|
620
623
|
static const yytype_int8 yypact[] =
|
621
624
|
{
|
622
|
-
|
623
|
-
-
|
624
|
-
-
|
625
|
-
-
|
626
|
-
-
|
627
|
-
-
|
628
|
-
|
629
|
-
-
|
625
|
+
36, -26, -26, -26, -26, -26, -26, -26, -26, -26,
|
626
|
+
-26, -26, -26, -26, -26, -26, -26, -26, -26, -26,
|
627
|
+
-26, -26, -26, -26, -26, -2, -26, -26, 2, 36,
|
628
|
+
-10, 3, -26, 72, -26, -26, -2, -26, -26, -26,
|
629
|
+
-26, -26, -26, -26, -2, -2, -2, -11, -26, -26,
|
630
|
+
-26, -10, -26, 72, -26, 3, -26, 72, -26, -26,
|
631
|
+
4, 12, 20, -26, 0, -26, 10, 0, -26, 35,
|
632
|
+
-26, -26, -26, -26, -26, -26, -26
|
630
633
|
};
|
631
634
|
|
632
635
|
/* YYPGOTO[NTERM-NUM]. */
|
633
636
|
static const yytype_int8 yypgoto[] =
|
634
637
|
{
|
635
|
-
-37,
|
636
|
-
|
637
|
-
-
|
638
|
+
-26, 37, 26, -26, -26, -26, -26, -26, 17, -26,
|
639
|
+
15, -25, -26, -26, 55, -26, -26, -26, -26, -26,
|
640
|
+
-26, -26, -26, -26, -26, -26, -26, -26
|
638
641
|
};
|
639
642
|
|
640
643
|
/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
|
@@ -644,32 +647,34 @@ static const yytype_int8 yypgoto[] =
|
|
644
647
|
#define YYTABLE_NINF -47
|
645
648
|
static const yytype_int8 yytable[] =
|
646
649
|
{
|
647
|
-
-46,
|
648
|
-
7, 8, 9, 10, 11, 12, 13, 14,
|
649
|
-
16, 17, 18, 19, 20,
|
650
|
-
|
651
|
-
4, 5,
|
652
|
-
13, 14,
|
653
|
-
21, -14, -11, 22,
|
654
|
-
26, 1, 2, 3, 4, 5,
|
655
|
-
|
656
|
-
|
657
|
-
|
650
|
+
-46, 1, 48, 1, 2, 3, 4, 5, 58, 6,
|
651
|
+
7, 8, 9, 10, 11, 12, 13, 14, 50, 15,
|
652
|
+
16, 17, 18, 19, 20, 63, 21, -14, 66, 22,
|
653
|
+
54, 23, 69, 24, 70, 25, 74, 26, 27, 1,
|
654
|
+
2, 3, 4, 5, 71, 6, 7, 8, 9, 10,
|
655
|
+
11, 12, 13, 14, 72, 15, 16, 17, 18, 19,
|
656
|
+
20, 76, 21, -14, -11, 22, 49, 23, 65, 24,
|
657
|
+
68, 25, 0, 26, 27, 1, 2, 3, 4, 5,
|
658
|
+
47, 6, 7, 8, 9, 10, 11, 12, 13, 14,
|
659
|
+
73, 59, 0, 75, 0, 0, 20, 0, 0, 60,
|
660
|
+
61, 62, 0, 0, 0, 0, 0, 0, 0, 26,
|
661
|
+
27
|
658
662
|
};
|
659
663
|
|
660
664
|
static const yytype_int8 yycheck[] =
|
661
665
|
{
|
662
|
-
0, 0,
|
663
|
-
10, 11, 12, 13, 14, 15, 16, 17,
|
664
|
-
20, 21, 22, 23, 24,
|
665
|
-
|
666
|
-
6, 7,
|
667
|
-
16, 17,
|
668
|
-
26, 27, 28, 29,
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
-1, -1, -1,
|
666
|
+
0, 3, 0, 3, 4, 5, 6, 7, 33, 9,
|
667
|
+
10, 11, 12, 13, 14, 15, 16, 17, 28, 19,
|
668
|
+
20, 21, 22, 23, 24, 36, 26, 27, 53, 29,
|
669
|
+
27, 31, 57, 33, 30, 35, 26, 37, 38, 3,
|
670
|
+
4, 5, 6, 7, 32, 9, 10, 11, 12, 13,
|
671
|
+
14, 15, 16, 17, 34, 19, 20, 21, 22, 23,
|
672
|
+
24, 26, 26, 27, 28, 29, 29, 31, 51, 33,
|
673
|
+
55, 35, -1, 37, 38, 3, 4, 5, 6, 7,
|
674
|
+
25, 9, 10, 11, 12, 13, 14, 15, 16, 17,
|
675
|
+
64, 36, -1, 67, -1, -1, 24, -1, -1, 44,
|
676
|
+
45, 46, -1, -1, -1, -1, -1, -1, -1, 37,
|
677
|
+
38
|
673
678
|
};
|
674
679
|
|
675
680
|
/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
|
@@ -678,12 +683,12 @@ static const yytype_uint8 yystos[] =
|
|
678
683
|
{
|
679
684
|
0, 3, 4, 5, 6, 7, 9, 10, 11, 12,
|
680
685
|
13, 14, 15, 16, 17, 19, 20, 21, 22, 23,
|
681
|
-
24, 26, 29, 31, 33, 35,
|
682
|
-
42,
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
686
|
+
24, 26, 29, 31, 33, 35, 37, 38, 40, 41,
|
687
|
+
42, 44, 50, 51, 52, 53, 54, 55, 56, 57,
|
688
|
+
58, 59, 62, 63, 64, 65, 66, 53, 0, 40,
|
689
|
+
28, 46, 47, 61, 27, 48, 49, 60, 50, 53,
|
690
|
+
53, 53, 53, 36, 43, 47, 50, 45, 49, 50,
|
691
|
+
30, 32, 34, 41, 26, 41, 26
|
687
692
|
};
|
688
693
|
|
689
694
|
#define yyerrok (yyerrstatus = 0)
|
@@ -1497,315 +1502,315 @@ yyreduce:
|
|
1497
1502
|
case 6:
|
1498
1503
|
|
1499
1504
|
/* Line 1455 of yacc.c */
|
1500
|
-
#line
|
1505
|
+
#line 91 "parser.y"
|
1501
1506
|
{concat("</h1>",5);}
|
1502
1507
|
break;
|
1503
1508
|
|
1504
1509
|
case 7:
|
1505
1510
|
|
1506
1511
|
/* Line 1455 of yacc.c */
|
1507
|
-
#line
|
1512
|
+
#line 92 "parser.y"
|
1508
1513
|
{concat("</h2>",5);}
|
1509
1514
|
break;
|
1510
1515
|
|
1511
1516
|
case 8:
|
1512
1517
|
|
1513
1518
|
/* Line 1455 of yacc.c */
|
1514
|
-
#line
|
1519
|
+
#line 93 "parser.y"
|
1515
1520
|
{concat("</h3>",5);}
|
1516
1521
|
break;
|
1517
1522
|
|
1518
1523
|
case 9:
|
1519
1524
|
|
1520
1525
|
/* Line 1455 of yacc.c */
|
1521
|
-
#line
|
1526
|
+
#line 94 "parser.y"
|
1522
1527
|
{concat("</h4>",5);}
|
1523
1528
|
break;
|
1524
1529
|
|
1525
1530
|
case 10:
|
1526
1531
|
|
1527
1532
|
/* Line 1455 of yacc.c */
|
1528
|
-
#line
|
1533
|
+
#line 95 "parser.y"
|
1529
1534
|
{concat("</h5>",5);}
|
1530
1535
|
break;
|
1531
1536
|
|
1532
1537
|
case 11:
|
1533
1538
|
|
1534
1539
|
/* Line 1455 of yacc.c */
|
1535
|
-
#line
|
1540
|
+
#line 96 "parser.y"
|
1536
1541
|
{concat("<ul>",4);}
|
1537
1542
|
break;
|
1538
1543
|
|
1539
1544
|
case 12:
|
1540
1545
|
|
1541
1546
|
/* Line 1455 of yacc.c */
|
1542
|
-
#line
|
1547
|
+
#line 96 "parser.y"
|
1543
1548
|
{concat("</ul>",5);}
|
1544
1549
|
break;
|
1545
1550
|
|
1546
1551
|
case 14:
|
1547
1552
|
|
1548
1553
|
/* Line 1455 of yacc.c */
|
1549
|
-
#line
|
1554
|
+
#line 97 "parser.y"
|
1550
1555
|
{concat("<ol>",4);}
|
1551
1556
|
break;
|
1552
1557
|
|
1553
1558
|
case 15:
|
1554
1559
|
|
1555
1560
|
/* Line 1455 of yacc.c */
|
1556
|
-
#line
|
1561
|
+
#line 97 "parser.y"
|
1557
1562
|
{concat("</ol>",5);}
|
1558
1563
|
break;
|
1559
1564
|
|
1560
1565
|
case 18:
|
1561
1566
|
|
1562
1567
|
/* Line 1455 of yacc.c */
|
1563
|
-
#line
|
1568
|
+
#line 100 "parser.y"
|
1564
1569
|
{concat("</li>",5);}
|
1565
1570
|
break;
|
1566
1571
|
|
1567
1572
|
case 19:
|
1568
1573
|
|
1569
1574
|
/* Line 1455 of yacc.c */
|
1570
|
-
#line
|
1575
|
+
#line 101 "parser.y"
|
1571
1576
|
{concat("</li>",5);}
|
1572
1577
|
break;
|
1573
1578
|
|
1574
1579
|
case 22:
|
1575
1580
|
|
1576
1581
|
/* Line 1455 of yacc.c */
|
1577
|
-
#line
|
1582
|
+
#line 106 "parser.y"
|
1578
1583
|
{concat("</li>",5);}
|
1579
1584
|
break;
|
1580
1585
|
|
1581
1586
|
case 23:
|
1582
1587
|
|
1583
1588
|
/* Line 1455 of yacc.c */
|
1584
|
-
#line
|
1589
|
+
#line 107 "parser.y"
|
1585
1590
|
{concat("</li>",5);}
|
1586
1591
|
break;
|
1587
1592
|
|
1588
1593
|
case 30:
|
1589
1594
|
|
1590
1595
|
/* Line 1455 of yacc.c */
|
1591
|
-
#line
|
1596
|
+
#line 117 "parser.y"
|
1592
1597
|
{concat2((yyvsp[(1) - (1)].svalue));}
|
1593
1598
|
break;
|
1594
1599
|
|
1595
1600
|
case 31:
|
1596
1601
|
|
1597
1602
|
/* Line 1455 of yacc.c */
|
1598
|
-
#line
|
1603
|
+
#line 118 "parser.y"
|
1599
1604
|
{process_url((yyvsp[(1) - (1)].svalue));}
|
1600
1605
|
break;
|
1601
1606
|
|
1602
1607
|
case 32:
|
1603
1608
|
|
1604
1609
|
/* Line 1455 of yacc.c */
|
1605
|
-
#line
|
1610
|
+
#line 119 "parser.y"
|
1606
1611
|
{(yyvsp[(1) - (1)].ivalue) ? concat(" <strong>",9) : concat("<strong>",8);}
|
1607
1612
|
break;
|
1608
1613
|
|
1609
1614
|
case 33:
|
1610
1615
|
|
1611
1616
|
/* Line 1455 of yacc.c */
|
1612
|
-
#line
|
1617
|
+
#line 120 "parser.y"
|
1613
1618
|
{concat("</strong>",9);}
|
1614
1619
|
break;
|
1615
1620
|
|
1616
1621
|
case 34:
|
1617
1622
|
|
1618
1623
|
/* Line 1455 of yacc.c */
|
1619
|
-
#line
|
1624
|
+
#line 121 "parser.y"
|
1620
1625
|
{(yyvsp[(1) - (1)].ivalue) ? concat(" <em>",5) : concat("<em>",4);}
|
1621
1626
|
break;
|
1622
1627
|
|
1623
1628
|
case 35:
|
1624
1629
|
|
1625
1630
|
/* Line 1455 of yacc.c */
|
1626
|
-
#line
|
1631
|
+
#line 122 "parser.y"
|
1627
1632
|
{concat("</em>",5);}
|
1628
1633
|
break;
|
1629
1634
|
|
1630
1635
|
case 36:
|
1631
1636
|
|
1632
1637
|
/* Line 1455 of yacc.c */
|
1633
|
-
#line
|
1638
|
+
#line 123 "parser.y"
|
1634
1639
|
{process_inline_code((yyvsp[(1) - (1)].svalue));}
|
1635
1640
|
break;
|
1636
1641
|
|
1637
1642
|
case 37:
|
1638
1643
|
|
1639
1644
|
/* Line 1455 of yacc.c */
|
1640
|
-
#line
|
1645
|
+
#line 125 "parser.y"
|
1641
1646
|
{process_ticket_link((yyvsp[(1) - (1)].svalue));}
|
1642
1647
|
break;
|
1643
1648
|
|
1644
1649
|
case 38:
|
1645
1650
|
|
1646
1651
|
/* Line 1455 of yacc.c */
|
1647
|
-
#line
|
1652
|
+
#line 126 "parser.y"
|
1648
1653
|
{process_svn_link((yyvsp[(1) - (1)].svalue));}
|
1649
1654
|
break;
|
1650
1655
|
|
1651
1656
|
case 39:
|
1652
1657
|
|
1653
1658
|
/* Line 1455 of yacc.c */
|
1654
|
-
#line
|
1659
|
+
#line 127 "parser.y"
|
1655
1660
|
{process_git_link((yyvsp[(1) - (1)].svalue));}
|
1656
1661
|
break;
|
1657
1662
|
|
1658
1663
|
case 40:
|
1659
1664
|
|
1660
1665
|
/* Line 1455 of yacc.c */
|
1661
|
-
#line
|
1666
|
+
#line 128 "parser.y"
|
1662
1667
|
{process_url_link((yyvsp[(1) - (1)].svalue),NULL);}
|
1663
1668
|
break;
|
1664
1669
|
|
1665
1670
|
case 41:
|
1666
1671
|
|
1667
1672
|
/* Line 1455 of yacc.c */
|
1668
|
-
#line
|
1673
|
+
#line 129 "parser.y"
|
1669
1674
|
{process_url_link((yyvsp[(1) - (1)].svalue),"http://");}
|
1670
1675
|
break;
|
1671
1676
|
|
1672
1677
|
case 42:
|
1673
1678
|
|
1674
1679
|
/* Line 1455 of yacc.c */
|
1675
|
-
#line
|
1680
|
+
#line 130 "parser.y"
|
1676
1681
|
{process_wiki_link((yyvsp[(1) - (1)].svalue));}
|
1677
1682
|
break;
|
1678
1683
|
|
1679
1684
|
case 43:
|
1680
1685
|
|
1681
1686
|
/* Line 1455 of yacc.c */
|
1682
|
-
#line
|
1687
|
+
#line 131 "parser.y"
|
1683
1688
|
{process_anchor_link((yyvsp[(1) - (1)].svalue));}
|
1684
1689
|
break;
|
1685
1690
|
|
1686
1691
|
case 44:
|
1687
1692
|
|
1688
1693
|
/* Line 1455 of yacc.c */
|
1689
|
-
#line
|
1694
|
+
#line 132 "parser.y"
|
1690
1695
|
{process_file_link((yyvsp[(1) - (1)].svalue));}
|
1691
1696
|
break;
|
1692
1697
|
|
1693
1698
|
case 45:
|
1694
1699
|
|
1695
1700
|
/* Line 1455 of yacc.c */
|
1696
|
-
#line
|
1701
|
+
#line 133 "parser.y"
|
1697
1702
|
{process_image_link((yyvsp[(1) - (1)].svalue));}
|
1698
1703
|
break;
|
1699
1704
|
|
1700
1705
|
case 48:
|
1701
1706
|
|
1702
1707
|
/* Line 1455 of yacc.c */
|
1703
|
-
#line
|
1708
|
+
#line 138 "parser.y"
|
1704
1709
|
{concat_escaped_char((yyvsp[(1) - (1)].ivalue));}
|
1705
1710
|
break;
|
1706
1711
|
|
1707
1712
|
case 49:
|
1708
1713
|
|
1709
1714
|
/* Line 1455 of yacc.c */
|
1710
|
-
#line
|
1715
|
+
#line 145 "parser.y"
|
1711
1716
|
{concat("<h1 id=\"",8); process_header((yyvsp[(1) - (1)].svalue));}
|
1712
1717
|
break;
|
1713
1718
|
|
1714
1719
|
case 50:
|
1715
1720
|
|
1716
1721
|
/* Line 1455 of yacc.c */
|
1717
|
-
#line
|
1722
|
+
#line 146 "parser.y"
|
1718
1723
|
{concat("<h2 id=\"",8); process_header((yyvsp[(1) - (1)].svalue));}
|
1719
1724
|
break;
|
1720
1725
|
|
1721
1726
|
case 51:
|
1722
1727
|
|
1723
1728
|
/* Line 1455 of yacc.c */
|
1724
|
-
#line
|
1729
|
+
#line 147 "parser.y"
|
1725
1730
|
{concat("<h3 id=\"",8); process_header((yyvsp[(1) - (1)].svalue));}
|
1726
1731
|
break;
|
1727
1732
|
|
1728
1733
|
case 52:
|
1729
1734
|
|
1730
1735
|
/* Line 1455 of yacc.c */
|
1731
|
-
#line
|
1736
|
+
#line 148 "parser.y"
|
1732
1737
|
{concat("<h4 id=\"",8); process_header((yyvsp[(1) - (1)].svalue));}
|
1733
1738
|
break;
|
1734
1739
|
|
1735
1740
|
case 53:
|
1736
1741
|
|
1737
1742
|
/* Line 1455 of yacc.c */
|
1738
|
-
#line
|
1743
|
+
#line 149 "parser.y"
|
1739
1744
|
{concat("<h5 id=\"",8); process_header((yyvsp[(1) - (1)].svalue));}
|
1740
1745
|
break;
|
1741
1746
|
|
1742
1747
|
case 54:
|
1743
1748
|
|
1744
1749
|
/* Line 1455 of yacc.c */
|
1745
|
-
#line
|
1750
|
+
#line 151 "parser.y"
|
1746
1751
|
{concat("<li>",4);}
|
1747
1752
|
break;
|
1748
1753
|
|
1749
1754
|
case 55:
|
1750
1755
|
|
1751
1756
|
/* Line 1455 of yacc.c */
|
1752
|
-
#line
|
1757
|
+
#line 152 "parser.y"
|
1753
1758
|
{concat("<li>",4);}
|
1754
1759
|
break;
|
1755
1760
|
|
1756
1761
|
case 56:
|
1757
1762
|
|
1758
1763
|
/* Line 1455 of yacc.c */
|
1759
|
-
#line
|
1764
|
+
#line 153 "parser.y"
|
1760
1765
|
{concat("<br />",6);}
|
1761
1766
|
break;
|
1762
1767
|
|
1763
1768
|
case 57:
|
1764
1769
|
|
1765
1770
|
/* Line 1455 of yacc.c */
|
1766
|
-
#line
|
1771
|
+
#line 156 "parser.y"
|
1767
1772
|
{concat("<pre><code>",11);}
|
1768
1773
|
break;
|
1769
1774
|
|
1770
1775
|
case 58:
|
1771
1776
|
|
1772
1777
|
/* Line 1455 of yacc.c */
|
1773
|
-
#line
|
1778
|
+
#line 156 "parser.y"
|
1774
1779
|
{concat("</code></pre>",13);}
|
1775
1780
|
break;
|
1776
1781
|
|
1777
|
-
case
|
1782
|
+
case 60:
|
1778
1783
|
|
1779
1784
|
/* Line 1455 of yacc.c */
|
1780
|
-
#line
|
1785
|
+
#line 158 "parser.y"
|
1781
1786
|
{concat("<pre>",5);}
|
1782
1787
|
break;
|
1783
1788
|
|
1784
|
-
case
|
1789
|
+
case 61:
|
1785
1790
|
|
1786
1791
|
/* Line 1455 of yacc.c */
|
1787
|
-
#line
|
1792
|
+
#line 158 "parser.y"
|
1788
1793
|
{concat("</pre>",6);}
|
1789
1794
|
break;
|
1790
1795
|
|
1791
|
-
case
|
1796
|
+
case 62:
|
1792
1797
|
|
1793
1798
|
/* Line 1455 of yacc.c */
|
1794
|
-
#line
|
1799
|
+
#line 159 "parser.y"
|
1795
1800
|
{concat("<code>",6);}
|
1796
1801
|
break;
|
1797
1802
|
|
1798
|
-
case
|
1803
|
+
case 63:
|
1799
1804
|
|
1800
1805
|
/* Line 1455 of yacc.c */
|
1801
|
-
#line
|
1806
|
+
#line 159 "parser.y"
|
1802
1807
|
{concat("</code>",7);}
|
1803
1808
|
break;
|
1804
1809
|
|
1805
1810
|
|
1806
1811
|
|
1807
1812
|
/* Line 1455 of yacc.c */
|
1808
|
-
#line
|
1813
|
+
#line 1814 "parser.tab.c"
|
1809
1814
|
default: break;
|
1810
1815
|
}
|
1811
1816
|
YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc);
|
@@ -2017,7 +2022,7 @@ yyreturn:
|
|
2017
2022
|
|
2018
2023
|
|
2019
2024
|
/* Line 1675 of yacc.c */
|
2020
|
-
#line
|
2025
|
+
#line 163 "parser.y"
|
2021
2026
|
|
2022
2027
|
|
2023
2028
|
concat_hex_char(char c){
|