1 | /****************************************************************************
|
---|
2 | **
|
---|
3 | ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
---|
4 | ** Contact: Qt Software Information ([email protected])
|
---|
5 | **
|
---|
6 | ** This file is part of the QtXmlPatterns module of the Qt Toolkit.
|
---|
7 | **
|
---|
8 | ** $QT_BEGIN_LICENSE:LGPL$
|
---|
9 | ** Commercial Usage
|
---|
10 | ** Licensees holding valid Qt Commercial licenses may use this file in
|
---|
11 | ** accordance with the Qt Commercial License Agreement provided with the
|
---|
12 | ** Software or, alternatively, in accordance with the terms contained in
|
---|
13 | ** a written agreement between you and Nokia.
|
---|
14 | **
|
---|
15 | ** GNU Lesser General Public License Usage
|
---|
16 | ** Alternatively, this file may be used under the terms of the GNU Lesser
|
---|
17 | ** General Public License version 2.1 as published by the Free Software
|
---|
18 | ** Foundation and appearing in the file LICENSE.LGPL included in the
|
---|
19 | ** packaging of this file. Please review the following information to
|
---|
20 | ** ensure the GNU Lesser General Public License version 2.1 requirements
|
---|
21 | ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
---|
22 | **
|
---|
23 | ** In addition, as a special exception, Nokia gives you certain
|
---|
24 | ** additional rights. These rights are described in the Nokia Qt LGPL
|
---|
25 | ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
|
---|
26 | ** package.
|
---|
27 | **
|
---|
28 | ** GNU General Public License Usage
|
---|
29 | ** Alternatively, this file may be used under the terms of the GNU
|
---|
30 | ** General Public License version 3.0 as published by the Free Software
|
---|
31 | ** Foundation and appearing in the file LICENSE.GPL included in the
|
---|
32 | ** packaging of this file. Please review the following information to
|
---|
33 | ** ensure the GNU General Public License version 3.0 requirements will be
|
---|
34 | ** met: http://www.gnu.org/copyleft/gpl.html.
|
---|
35 | **
|
---|
36 | ** If you are unsure which license is appropriate for your use, please
|
---|
37 | ** contact the sales department at [email protected].
|
---|
38 | ** $QT_END_LICENSE$
|
---|
39 | **
|
---|
40 | ****************************************************************************/
|
---|
41 |
|
---|
42 | //
|
---|
43 | // W A R N I N G
|
---|
44 | // -------------
|
---|
45 | //
|
---|
46 | // This file is not part of the Qt API. It exists purely as an
|
---|
47 | // implementation detail. This header file may change from version to
|
---|
48 | // version without notice, or even be removed.
|
---|
49 | //
|
---|
50 | // We mean it.
|
---|
51 |
|
---|
52 | /* A Bison parser, made by GNU Bison 2.3a. */
|
---|
53 |
|
---|
54 | /* Skeleton interface for Bison's Yacc-like parsers in C
|
---|
55 |
|
---|
56 | Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
|
---|
57 | Free Software Foundation, Inc.
|
---|
58 |
|
---|
59 | This program is free software; you can redistribute it and/or modify
|
---|
60 | it under the terms of the GNU General Public License as published by
|
---|
61 | the Free Software Foundation; either version 2, or (at your option)
|
---|
62 | any later version.
|
---|
63 |
|
---|
64 | This program is distributed in the hope that it will be useful,
|
---|
65 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
66 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
67 | GNU General Public License for more details.
|
---|
68 |
|
---|
69 | You should have received a copy of the GNU General Public License
|
---|
70 | along with this program; if not, write to the Free Software
|
---|
71 | Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
---|
72 | Boston, MA 02110-1301, USA. */
|
---|
73 |
|
---|
74 | /* As a special exception, you may create a larger work that contains
|
---|
75 | part or all of the Bison parser skeleton and distribute that work
|
---|
76 | under terms of your choice, so long as that work isn't itself a
|
---|
77 | parser generator using the skeleton or a modified version thereof
|
---|
78 | as a parser skeleton. Alternatively, if you modify or redistribute
|
---|
79 | the parser skeleton itself, you may (at your option) remove this
|
---|
80 | special exception, which will cause the skeleton and the resulting
|
---|
81 | Bison output files to be licensed under the GNU General Public
|
---|
82 | License without this special exception.
|
---|
83 |
|
---|
84 | This special exception was added by the Free Software Foundation in
|
---|
85 | version 2.2 of Bison. */
|
---|
86 |
|
---|
87 |
|
---|
88 | /* These tokens are defined to nothing on Windows because they're
|
---|
89 | * used in their documentation parser, for use in things like:
|
---|
90 | *
|
---|
91 | * int foo(IN char* name, OUT char* path);
|
---|
92 | *
|
---|
93 | * Hence this un-break fix. Note that this file was auto generated. */
|
---|
94 | #ifdef IN
|
---|
95 | # undef IN
|
---|
96 | #endif
|
---|
97 | #ifdef INSTANCE
|
---|
98 | # undef INSTANCE
|
---|
99 | #endif
|
---|
100 | #ifdef STRICT
|
---|
101 | # undef STRICT
|
---|
102 | #endif
|
---|
103 | #ifdef SELF
|
---|
104 | # undef SELF
|
---|
105 | #endif
|
---|
106 |
|
---|
107 | /* Tokens. */
|
---|
108 | #ifndef YYTOKENTYPE
|
---|
109 | # define YYTOKENTYPE
|
---|
110 | /* Put the tokens into the symbol table, so that GDB and other debuggers
|
---|
111 | know about them. */
|
---|
112 | enum yytokentype {
|
---|
113 | END_OF_FILE = 0,
|
---|
114 | STRING_LITERAL = 258,
|
---|
115 | NON_BOUNDARY_WS = 259,
|
---|
116 | XPATH2_STRING_LITERAL = 260,
|
---|
117 | QNAME = 261,
|
---|
118 | NCNAME = 262,
|
---|
119 | CLARK_NAME = 263,
|
---|
120 | ANY_LOCAL_NAME = 264,
|
---|
121 | ANY_PREFIX = 265,
|
---|
122 | NUMBER = 266,
|
---|
123 | XPATH2_NUMBER = 267,
|
---|
124 | ANCESTOR = 268,
|
---|
125 | ANCESTOR_OR_SELF = 269,
|
---|
126 | AND = 270,
|
---|
127 | APOS = 271,
|
---|
128 | APPLY_TEMPLATE = 272,
|
---|
129 | AS = 273,
|
---|
130 | ASCENDING = 274,
|
---|
131 | ASSIGN = 275,
|
---|
132 | AT = 276,
|
---|
133 | AT_SIGN = 277,
|
---|
134 | ATTRIBUTE = 278,
|
---|
135 | AVT = 279,
|
---|
136 | BAR = 280,
|
---|
137 | BASEURI = 281,
|
---|
138 | BEGIN_END_TAG = 282,
|
---|
139 | BOUNDARY_SPACE = 283,
|
---|
140 | BY = 284,
|
---|
141 | CALL_TEMPLATE = 285,
|
---|
142 | CASE = 286,
|
---|
143 | CASTABLE = 287,
|
---|
144 | CAST = 288,
|
---|
145 | CHILD = 289,
|
---|
146 | COLLATION = 290,
|
---|
147 | COLONCOLON = 291,
|
---|
148 | COMMA = 292,
|
---|
149 | COMMENT = 293,
|
---|
150 | COMMENT_START = 294,
|
---|
151 | CONSTRUCTION = 295,
|
---|
152 | COPY_NAMESPACES = 296,
|
---|
153 | CURLY_LBRACE = 297,
|
---|
154 | CURLY_RBRACE = 298,
|
---|
155 | DECLARE = 299,
|
---|
156 | DEFAULT = 300,
|
---|
157 | DESCENDANT = 301,
|
---|
158 | DESCENDANT_OR_SELF = 302,
|
---|
159 | DESCENDING = 303,
|
---|
160 | DIV = 304,
|
---|
161 | DOCUMENT = 305,
|
---|
162 | DOCUMENT_NODE = 306,
|
---|
163 | DOLLAR = 307,
|
---|
164 | DOT = 308,
|
---|
165 | DOTDOT = 309,
|
---|
166 | ELEMENT = 310,
|
---|
167 | ELSE = 311,
|
---|
168 | EMPTY = 312,
|
---|
169 | EMPTY_SEQUENCE = 313,
|
---|
170 | ENCODING = 314,
|
---|
171 | END_SORT = 315,
|
---|
172 | EQ = 316,
|
---|
173 | ERROR = 317,
|
---|
174 | EVERY = 318,
|
---|
175 | EXCEPT = 319,
|
---|
176 | EXTERNAL = 320,
|
---|
177 | FOLLOWING = 321,
|
---|
178 | FOLLOWING_SIBLING = 322,
|
---|
179 | FOLLOWS = 323,
|
---|
180 | FOR_APPLY_TEMPLATE = 324,
|
---|
181 | FOR = 325,
|
---|
182 | FUNCTION = 326,
|
---|
183 | GE = 327,
|
---|
184 | G_EQ = 328,
|
---|
185 | G_GE = 329,
|
---|
186 | G_GT = 330,
|
---|
187 | G_LE = 331,
|
---|
188 | G_LT = 332,
|
---|
189 | G_NE = 333,
|
---|
190 | GREATEST = 334,
|
---|
191 | GT = 335,
|
---|
192 | IDIV = 336,
|
---|
193 | IF = 337,
|
---|
194 | IMPORT = 338,
|
---|
195 | INHERIT = 339,
|
---|
196 | IN = 340,
|
---|
197 | INSTANCE = 341,
|
---|
198 | INTERSECT = 342,
|
---|
199 | IS = 343,
|
---|
200 | ITEM = 344,
|
---|
201 | LAX = 345,
|
---|
202 | LBRACKET = 346,
|
---|
203 | LEAST = 347,
|
---|
204 | LE = 348,
|
---|
205 | LET = 349,
|
---|
206 | LPAREN = 350,
|
---|
207 | LT = 351,
|
---|
208 | MAP = 352,
|
---|
209 | MATCHES = 353,
|
---|
210 | MINUS = 354,
|
---|
211 | MODE = 355,
|
---|
212 | MOD = 356,
|
---|
213 | MODULE = 357,
|
---|
214 | NAME = 358,
|
---|
215 | NAMESPACE = 359,
|
---|
216 | NE = 360,
|
---|
217 | NODE = 361,
|
---|
218 | NO_INHERIT = 362,
|
---|
219 | NO_PRESERVE = 363,
|
---|
220 | OF = 364,
|
---|
221 | OPTION = 365,
|
---|
222 | ORDERED = 366,
|
---|
223 | ORDERING = 367,
|
---|
224 | ORDER = 368,
|
---|
225 | OR = 369,
|
---|
226 | PARENT = 370,
|
---|
227 | PI_START = 371,
|
---|
228 | PLUS = 372,
|
---|
229 | POSITION_SET = 373,
|
---|
230 | PRAGMA_END = 374,
|
---|
231 | PRAGMA_START = 375,
|
---|
232 | PRECEDES = 376,
|
---|
233 | PRECEDING = 377,
|
---|
234 | PRECEDING_SIBLING = 378,
|
---|
235 | PRESERVE = 379,
|
---|
236 | PRIORITY = 380,
|
---|
237 | PROCESSING_INSTRUCTION = 381,
|
---|
238 | QUESTION = 382,
|
---|
239 | QUICK_TAG_END = 383,
|
---|
240 | QUOTE = 384,
|
---|
241 | RBRACKET = 385,
|
---|
242 | RETURN = 386,
|
---|
243 | RPAREN = 387,
|
---|
244 | SATISFIES = 388,
|
---|
245 | SCHEMA_ATTRIBUTE = 389,
|
---|
246 | SCHEMA_ELEMENT = 390,
|
---|
247 | SCHEMA = 391,
|
---|
248 | SELF = 392,
|
---|
249 | SEMI_COLON = 393,
|
---|
250 | SLASH = 394,
|
---|
251 | SLASHSLASH = 395,
|
---|
252 | SOME = 396,
|
---|
253 | SORT = 397,
|
---|
254 | STABLE = 398,
|
---|
255 | STAR = 399,
|
---|
256 | STRICT = 400,
|
---|
257 | STRIP = 401,
|
---|
258 | SUCCESS = 402,
|
---|
259 | COMMENT_CONTENT = 403,
|
---|
260 | PI_CONTENT = 404,
|
---|
261 | PI_TARGET = 405,
|
---|
262 | XSLT_VERSION = 406,
|
---|
263 | TEMPLATE = 407,
|
---|
264 | TEXT = 408,
|
---|
265 | THEN = 409,
|
---|
266 | TO = 410,
|
---|
267 | TREAT = 411,
|
---|
268 | TUNNEL = 412,
|
---|
269 | TYPESWITCH = 413,
|
---|
270 | UNION = 414,
|
---|
271 | UNORDERED = 415,
|
---|
272 | VALIDATE = 416,
|
---|
273 | VARIABLE = 417,
|
---|
274 | VERSION = 418,
|
---|
275 | WHERE = 419,
|
---|
276 | XQUERY = 420,
|
---|
277 | INTERNAL = 421,
|
---|
278 | INTERNAL_NAME = 422,
|
---|
279 | CURRENT = 423
|
---|
280 | };
|
---|
281 | #endif
|
---|
282 |
|
---|
283 |
|
---|
284 |
|
---|
285 | #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
---|
286 |
|
---|
287 | # define yystype YYSTYPE /* obsolescent; will be withdrawn */
|
---|
288 | # define YYSTYPE_IS_DECLARED 1
|
---|
289 | #endif
|
---|
290 |
|
---|
291 |
|
---|
292 |
|
---|
293 | #if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
|
---|
294 | typedef struct YYLTYPE
|
---|
295 | {
|
---|
296 | int first_line;
|
---|
297 | int first_column;
|
---|
298 | int last_line;
|
---|
299 | int last_column;
|
---|
300 | } YYLTYPE;
|
---|
301 | # define yyltype YYLTYPE /* obsolescent; will be withdrawn */
|
---|
302 | # define YYLTYPE_IS_DECLARED 1
|
---|
303 | # define YYLTYPE_IS_TRIVIAL 1
|
---|
304 | #endif
|
---|
305 |
|
---|
306 |
|
---|
307 |
|
---|