breakout_parser 0.0.23 → 0.0.31
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/ChangeLog +19 -0
- data/README +23 -11
- data/ext/breakout_parser/extconf.rb +10 -5
- data/ext/breakout_parser/parser.h +27 -0
- data/ext/breakout_parser/parser.l +22 -6
- data/ext/breakout_parser/parser.y +294 -126
- data/ext/breakout_parser/ruby_ext.c +51 -22
- data/ext/breakout_parser/ruby_ext.h +2 -0
- data/spec/links_only_parser_spec.rb +916 -0
- data/spec/obj_proxy.rb +22 -0
- data/spec/parser_examples_spec.rb +115 -0
- data/spec/parser_spec.rb +146 -34
- data/spec/spec_helper.rb +1 -0
- metadata +89 -62
- data/ext/breakout_parser/lex.yy.c +0 -2996
- data/ext/breakout_parser/parser.tab.c +0 -2482
- data/ext/breakout_parser/parser.tab.h +0 -113
@@ -1,113 +0,0 @@
|
|
1
|
-
|
2
|
-
/* A Bison parser, made by GNU Bison 2.4.1. */
|
3
|
-
|
4
|
-
/* Skeleton interface for Bison's Yacc-like parsers in C
|
5
|
-
|
6
|
-
Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
|
7
|
-
Free Software Foundation, Inc.
|
8
|
-
|
9
|
-
This program is free software: you can redistribute it and/or modify
|
10
|
-
it under the terms of the GNU General Public License as published by
|
11
|
-
the Free Software Foundation, either version 3 of the License, or
|
12
|
-
(at your option) any later version.
|
13
|
-
|
14
|
-
This program is distributed in the hope that it will be useful,
|
15
|
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
16
|
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
17
|
-
GNU General Public License for more details.
|
18
|
-
|
19
|
-
You should have received a copy of the GNU General Public License
|
20
|
-
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
21
|
-
|
22
|
-
/* As a special exception, you may create a larger work that contains
|
23
|
-
part or all of the Bison parser skeleton and distribute that work
|
24
|
-
under terms of your choice, so long as that work isn't itself a
|
25
|
-
parser generator using the skeleton or a modified version thereof
|
26
|
-
as a parser skeleton. Alternatively, if you modify or redistribute
|
27
|
-
the parser skeleton itself, you may (at your option) remove this
|
28
|
-
special exception, which will cause the skeleton and the resulting
|
29
|
-
Bison output files to be licensed under the GNU General Public
|
30
|
-
License without this special exception.
|
31
|
-
|
32
|
-
This special exception was added by the Free Software Foundation in
|
33
|
-
version 2.2 of Bison. */
|
34
|
-
|
35
|
-
|
36
|
-
/* Tokens. */
|
37
|
-
#ifndef YYTOKENTYPE
|
38
|
-
# define YYTOKENTYPE
|
39
|
-
/* Put the tokens into the symbol table, so that GDB and other debuggers
|
40
|
-
know about them. */
|
41
|
-
enum yytokentype {
|
42
|
-
T_CHAR = 258,
|
43
|
-
BOLD_START = 259,
|
44
|
-
ITALIC_START = 260,
|
45
|
-
BOLD_ITALIC_START = 261,
|
46
|
-
ITALIC_BOLD_START = 262,
|
47
|
-
ULI = 263,
|
48
|
-
OLI = 264,
|
49
|
-
T_WORD = 265,
|
50
|
-
TICKET_LINK = 266,
|
51
|
-
LINK = 267,
|
52
|
-
SVN_REVISION_LINK = 268,
|
53
|
-
GIT_REVISION_LINK = 269,
|
54
|
-
WIKI_LINK = 270,
|
55
|
-
ANCHOR_LINK = 271,
|
56
|
-
SVN_N_REVISION_LINK = 272,
|
57
|
-
GIT_N_REVISION_LINK = 273,
|
58
|
-
URL_WITH_PROTO_LINK = 274,
|
59
|
-
URL_WITHOUT_PROTO_LINK = 275,
|
60
|
-
FILE_LINK = 276,
|
61
|
-
IMAGE_LINK = 277,
|
62
|
-
URL = 278,
|
63
|
-
EMAIL = 279,
|
64
|
-
UL = 280,
|
65
|
-
H1 = 281,
|
66
|
-
H2 = 282,
|
67
|
-
H3 = 283,
|
68
|
-
H4 = 284,
|
69
|
-
H5 = 285,
|
70
|
-
INLINE_CODE = 286,
|
71
|
-
SPACE = 287,
|
72
|
-
BR = 288,
|
73
|
-
PRE_CODE_START = 289,
|
74
|
-
PRE_CODE_END = 290,
|
75
|
-
PRE_START = 291,
|
76
|
-
PRE_END = 292,
|
77
|
-
CODE_START = 293,
|
78
|
-
CODE_END = 294,
|
79
|
-
NOTEXTILE_START = 295,
|
80
|
-
NOTEXTILE_END = 296,
|
81
|
-
BOLD_END = 297,
|
82
|
-
ITALIC_END = 298,
|
83
|
-
REVERT_BOLD = 299,
|
84
|
-
REVERT_ITALIC = 300
|
85
|
-
};
|
86
|
-
#endif
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
91
|
-
typedef union YYSTYPE
|
92
|
-
{
|
93
|
-
|
94
|
-
/* Line 1676 of yacc.c */
|
95
|
-
#line 70 "parser.y"
|
96
|
-
|
97
|
-
double dvalue;
|
98
|
-
int ivalue;
|
99
|
-
char const* svalue;
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
/* Line 1676 of yacc.c */
|
104
|
-
#line 105 "parser.tab.h"
|
105
|
-
} YYSTYPE;
|
106
|
-
# define YYSTYPE_IS_TRIVIAL 1
|
107
|
-
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
|
108
|
-
# define YYSTYPE_IS_DECLARED 1
|
109
|
-
#endif
|
110
|
-
|
111
|
-
extern YYSTYPE yylval;
|
112
|
-
|
113
|
-
|