| 1 | /**************************************************************************** | 
| 2 | ** | 
| 3 | ** Copyright (C) 2016 The Qt Company Ltd. | 
| 4 | ** Contact: https://www.qt.io/licensing/ | 
| 5 | ** | 
| 6 | ** This file is part of the QtXmlPatterns module of the Qt Toolkit. | 
| 7 | ** | 
| 8 | ** $QT_BEGIN_LICENSE:LGPL$ | 
| 9 | ** Commercial License Usage | 
| 10 | ** Licensees holding valid commercial Qt licenses may use this file in | 
| 11 | ** accordance with the commercial license agreement provided with the | 
| 12 | ** Software or, alternatively, in accordance with the terms contained in | 
| 13 | ** a written agreement between you and The Qt Company. For licensing terms | 
| 14 | ** and conditions see https://www.qt.io/terms-conditions. For further | 
| 15 | ** information use the contact form at https://www.qt.io/contact-us. | 
| 16 | ** | 
| 17 | ** GNU Lesser General Public License Usage | 
| 18 | ** Alternatively, this file may be used under the terms of the GNU Lesser | 
| 19 | ** General Public License version 3 as published by the Free Software | 
| 20 | ** Foundation and appearing in the file LICENSE.LGPL3 included in the | 
| 21 | ** packaging of this file. Please review the following information to | 
| 22 | ** ensure the GNU Lesser General Public License version 3 requirements | 
| 23 | ** will be met: https://www.gnu.org/licenses/lgpl-3.0.html. | 
| 24 | ** | 
| 25 | ** GNU General Public License Usage | 
| 26 | ** Alternatively, this file may be used under the terms of the GNU | 
| 27 | ** General Public License version 2.0 or (at your option) the GNU General | 
| 28 | ** Public license version 3 or any later version approved by the KDE Free | 
| 29 | ** Qt Foundation. The licenses are as published by the Free Software | 
| 30 | ** Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 | 
| 31 | ** included in the packaging of this file. Please review the following | 
| 32 | ** information to ensure the GNU General Public License requirements will | 
| 33 | ** be met: https://www.gnu.org/licenses/gpl-2.0.html and | 
| 34 | ** https://www.gnu.org/licenses/gpl-3.0.html. | 
| 35 | ** | 
| 36 | ** $QT_END_LICENSE$ | 
| 37 | ** | 
| 38 | ****************************************************************************/ | 
| 39 |  | 
| 40 | // | 
| 41 | //  W A R N I N G | 
| 42 | //  ------------- | 
| 43 | // | 
| 44 | // This file is not part of the Qt API.  It exists purely as an | 
| 45 | // implementation detail.  This header file may change from version to | 
| 46 | // version without notice, or even be removed. | 
| 47 | // | 
| 48 | // We mean it. | 
| 49 |  | 
| 50 | /* A Bison parser, made by GNU Bison 3.3.2.  */ | 
| 51 |  | 
| 52 | /* Bison interface for Yacc-like parsers in C | 
| 53 |  | 
| 54 |    Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2019 Free Software Foundation, | 
| 55 |    Inc. | 
| 56 |  | 
| 57 |    This program is free software: you can redistribute it and/or modify | 
| 58 |    it under the terms of the GNU General Public License as published by | 
| 59 |    the Free Software Foundation, either version 3 of the License, or | 
| 60 |    (at your option) any later version. | 
| 61 |  | 
| 62 |    This program is distributed in the hope that it will be useful, | 
| 63 |    but WITHOUT ANY WARRANTY; without even the implied warranty of | 
| 64 |    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
| 65 |    GNU General Public License for more details. | 
| 66 |  | 
| 67 |    You should have received a copy of the GNU General Public License | 
| 68 |    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */ | 
| 69 |  | 
| 70 | /* As a special exception, you may create a larger work that contains | 
| 71 |    part or all of the Bison parser skeleton and distribute that work | 
| 72 |    under terms of your choice, so long as that work isn't itself a | 
| 73 |    parser generator using the skeleton or a modified version thereof | 
| 74 |    as a parser skeleton.  Alternatively, if you modify or redistribute | 
| 75 |    the parser skeleton itself, you may (at your option) remove this | 
| 76 |    special exception, which will cause the skeleton and the resulting | 
| 77 |    Bison output files to be licensed under the GNU General Public | 
| 78 |    License without this special exception. | 
| 79 |  | 
| 80 |    This special exception was added by the Free Software Foundation in | 
| 81 |    version 2.2 of Bison.  */ | 
| 82 |  | 
| 83 | /* Undocumented macros, especially those whose name start with YY_, | 
| 84 |    are private implementation details.  Do not rely on them.  */ | 
| 85 |  | 
| 86 | #ifndef YY_XPATH_QQUERYTRANSFORMPARSER_P_H_INCLUDED | 
| 87 | # define YY_XPATH_QQUERYTRANSFORMPARSER_P_H_INCLUDED | 
| 88 | /* Debug traces.  */ | 
| 89 | #ifndef XPATHDEBUG | 
| 90 | # if defined YYDEBUG | 
| 91 | #if YYDEBUG | 
| 92 | #   define XPATHDEBUG 1 | 
| 93 | #  else | 
| 94 | #   define XPATHDEBUG 0 | 
| 95 | #  endif | 
| 96 | # else /* ! defined YYDEBUG */ | 
| 97 | #  define XPATHDEBUG 0 | 
| 98 | # endif /* ! defined YYDEBUG */ | 
| 99 | #endif  /* ! defined XPATHDEBUG */ | 
| 100 | #if XPATHDEBUG | 
| 101 | extern int XPathdebug; | 
| 102 | #endif | 
| 103 |  | 
| 104 | /* Token type.  */ | 
| 105 | #ifndef XPATHTOKENTYPE | 
| 106 | # define XPATHTOKENTYPE | 
| 107 |   enum XPathtokentype | 
| 108 |   { | 
| 109 |     T_END_OF_FILE = 0, | 
| 110 |     T_STRING_LITERAL = 258, | 
| 111 |     T_NON_BOUNDARY_WS = 259, | 
| 112 |     T_XPATH2_STRING_LITERAL = 260, | 
| 113 |     T_QNAME = 261, | 
| 114 |     T_NCNAME = 262, | 
| 115 |     T_CLARK_NAME = 263, | 
| 116 |     T_ANY_LOCAL_NAME = 264, | 
| 117 |     T_ANY_PREFIX = 265, | 
| 118 |     T_NUMBER = 266, | 
| 119 |     T_XPATH2_NUMBER = 267, | 
| 120 |     T_ANCESTOR = 268, | 
| 121 |     T_ANCESTOR_OR_SELF = 269, | 
| 122 |     T_AND = 270, | 
| 123 |     T_APOS = 271, | 
| 124 |     T_APPLY_TEMPLATE = 272, | 
| 125 |     T_AS = 273, | 
| 126 |     T_ASCENDING = 274, | 
| 127 |     T_ASSIGN = 275, | 
| 128 |     T_AT = 276, | 
| 129 |     T_AT_SIGN = 277, | 
| 130 |     T_ATTRIBUTE = 278, | 
| 131 |     T_AVT = 279, | 
| 132 |     T_BAR = 280, | 
| 133 |     T_BASEURI = 281, | 
| 134 |     T_BEGIN_END_TAG = 282, | 
| 135 |     T_BOUNDARY_SPACE = 283, | 
| 136 |     T_BY = 284, | 
| 137 |     T_CALL_TEMPLATE = 285, | 
| 138 |     T_CASE = 286, | 
| 139 |     T_CASTABLE = 287, | 
| 140 |     T_CAST = 288, | 
| 141 |     T_CHILD = 289, | 
| 142 |     T_COLLATION = 290, | 
| 143 |     T_COLONCOLON = 291, | 
| 144 |     T_COMMA = 292, | 
| 145 |      = 293, | 
| 146 |      = 294, | 
| 147 |     T_CONSTRUCTION = 295, | 
| 148 |     T_COPY_NAMESPACES = 296, | 
| 149 |     T_CURLY_LBRACE = 297, | 
| 150 |     T_CURLY_RBRACE = 298, | 
| 151 |     T_DECLARE = 299, | 
| 152 |     T_DEFAULT = 300, | 
| 153 |     T_DESCENDANT = 301, | 
| 154 |     T_DESCENDANT_OR_SELF = 302, | 
| 155 |     T_DESCENDING = 303, | 
| 156 |     T_DIV = 304, | 
| 157 |     T_DOCUMENT = 305, | 
| 158 |     T_DOCUMENT_NODE = 306, | 
| 159 |     T_DOLLAR = 307, | 
| 160 |     T_DOT = 308, | 
| 161 |     T_DOTDOT = 309, | 
| 162 |     T_ELEMENT = 310, | 
| 163 |     T_ELSE = 311, | 
| 164 |     T_EMPTY = 312, | 
| 165 |     T_EMPTY_SEQUENCE = 313, | 
| 166 |     T_ENCODING = 314, | 
| 167 |     T_END_SORT = 315, | 
| 168 |     T_EQ = 316, | 
| 169 |     T_ERROR = 317, | 
| 170 |     T_EVERY = 318, | 
| 171 |     T_EXCEPT = 319, | 
| 172 |     T_EXTERNAL = 320, | 
| 173 |     T_FOLLOWING = 321, | 
| 174 |     T_FOLLOWING_SIBLING = 322, | 
| 175 |     T_FOLLOWS = 323, | 
| 176 |     T_FOR_APPLY_TEMPLATE = 324, | 
| 177 |     T_FOR = 325, | 
| 178 |     T_FUNCTION = 326, | 
| 179 |     T_GE = 327, | 
| 180 |     T_G_EQ = 328, | 
| 181 |     T_G_GE = 329, | 
| 182 |     T_G_GT = 330, | 
| 183 |     T_G_LE = 331, | 
| 184 |     T_G_LT = 332, | 
| 185 |     T_G_NE = 333, | 
| 186 |     T_GREATEST = 334, | 
| 187 |     T_GT = 335, | 
| 188 |     T_IDIV = 336, | 
| 189 |     T_IF = 337, | 
| 190 |     T_IMPORT = 338, | 
| 191 |     T_INHERIT = 339, | 
| 192 |     T_IN = 340, | 
| 193 |     T_INSTANCE = 341, | 
| 194 |     T_INTERSECT = 342, | 
| 195 |     T_IS = 343, | 
| 196 |     T_ITEM = 344, | 
| 197 |     T_LAX = 345, | 
| 198 |     T_LBRACKET = 346, | 
| 199 |     T_LEAST = 347, | 
| 200 |     T_LE = 348, | 
| 201 |     T_LET = 349, | 
| 202 |     T_LPAREN = 350, | 
| 203 |     T_LT = 351, | 
| 204 |     T_MAP = 352, | 
| 205 |     T_MATCHES = 353, | 
| 206 |     T_MINUS = 354, | 
| 207 |     T_MODE = 355, | 
| 208 |     T_MOD = 356, | 
| 209 |     T_MODULE = 357, | 
| 210 |     T_NAME = 358, | 
| 211 |     T_NAMESPACE = 359, | 
| 212 |     T_NE = 360, | 
| 213 |     T_NODE = 361, | 
| 214 |     T_NO_INHERIT = 362, | 
| 215 |     T_NO_PRESERVE = 363, | 
| 216 |     T_OF = 364, | 
| 217 |     T_OPTION = 365, | 
| 218 |     T_ORDERED = 366, | 
| 219 |     T_ORDERING = 367, | 
| 220 |     T_ORDER = 368, | 
| 221 |     T_OR = 369, | 
| 222 |     T_PARENT = 370, | 
| 223 |     T_PI_START = 371, | 
| 224 |     T_PLUS = 372, | 
| 225 |     T_POSITION_SET = 373, | 
| 226 |     T_PRAGMA_END = 374, | 
| 227 |     T_PRAGMA_START = 375, | 
| 228 |     T_PRECEDES = 376, | 
| 229 |     T_PRECEDING = 377, | 
| 230 |     T_PRECEDING_SIBLING = 378, | 
| 231 |     T_PRESERVE = 379, | 
| 232 |     T_PRIORITY = 380, | 
| 233 |     T_PROCESSING_INSTRUCTION = 381, | 
| 234 |     T_QUESTION = 382, | 
| 235 |     T_QUICK_TAG_END = 383, | 
| 236 |     T_QUOTE = 384, | 
| 237 |     T_RBRACKET = 385, | 
| 238 |     T_RETURN = 386, | 
| 239 |     T_RPAREN = 387, | 
| 240 |     T_SATISFIES = 388, | 
| 241 |     T_SCHEMA_ATTRIBUTE = 389, | 
| 242 |     T_SCHEMA_ELEMENT = 390, | 
| 243 |     T_SCHEMA = 391, | 
| 244 |     T_SELF = 392, | 
| 245 |     T_SEMI_COLON = 393, | 
| 246 |     T_SLASH = 394, | 
| 247 |     T_SLASHSLASH = 395, | 
| 248 |     T_SOME = 396, | 
| 249 |     T_SORT = 397, | 
| 250 |     T_STABLE = 398, | 
| 251 |     T_STAR = 399, | 
| 252 |     T_STRICT = 400, | 
| 253 |     T_STRIP = 401, | 
| 254 |     T_SUCCESS = 402, | 
| 255 |      = 403, | 
| 256 |     T_PI_CONTENT = 404, | 
| 257 |     T_PI_TARGET = 405, | 
| 258 |     T_XSLT_VERSION = 406, | 
| 259 |     T_TEMPLATE = 407, | 
| 260 |     T_TEXT = 408, | 
| 261 |     T_THEN = 409, | 
| 262 |     T_TO = 410, | 
| 263 |     T_TREAT = 411, | 
| 264 |     T_TUNNEL = 412, | 
| 265 |     T_TYPESWITCH = 413, | 
| 266 |     T_UNION = 414, | 
| 267 |     T_UNORDERED = 415, | 
| 268 |     T_VALIDATE = 416, | 
| 269 |     T_VARIABLE = 417, | 
| 270 |     T_VERSION = 418, | 
| 271 |     T_WHERE = 419, | 
| 272 |     T_XQUERY = 420, | 
| 273 |     T_INTERNAL = 421, | 
| 274 |     T_INTERNAL_NAME = 422, | 
| 275 |     T_CURRENT = 423 | 
| 276 |   }; | 
| 277 | #endif | 
| 278 |  | 
| 279 | /* Value type.  */ | 
| 280 |  | 
| 281 | /* Location type.  */ | 
| 282 | #if ! defined XPATHLTYPE && ! defined XPATHLTYPE_IS_DECLARED | 
| 283 | typedef struct XPATHLTYPE XPATHLTYPE; | 
| 284 | struct XPATHLTYPE | 
| 285 | { | 
| 286 |   int first_line; | 
| 287 |   int first_column; | 
| 288 |   int last_line; | 
| 289 |   int last_column; | 
| 290 | }; | 
| 291 | # define XPATHLTYPE_IS_DECLARED 1 | 
| 292 | # define XPATHLTYPE_IS_TRIVIAL 1 | 
| 293 | #endif | 
| 294 |  | 
| 295 |  | 
| 296 |  | 
| 297 | int XPathparse (QT_PREPEND_NAMESPACE(QPatternist)::ParserContext *const parseInfo); | 
| 298 |  | 
| 299 | #endif /* !YY_XPATH_QQUERYTRANSFORMPARSER_P_H_INCLUDED  */ | 
| 300 |  |