1#ifndef CSSGRAMMAR_H
2#define CSSGRAMMAR_H
3/* A Bison parser, made by GNU Bison 2.3. */
4
5/* Skeleton interface for Bison's Yacc-like parsers in C
6
7 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
8 Free Software Foundation, Inc.
9
10 This program is free software; you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation; either version 2, or (at your option)
13 any later version.
14
15 This program is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
19
20 You should have received a copy of the GNU General Public License
21 along with this program; if not, write to the Free Software
22 Foundation, Inc., 51 Franklin Street, Fifth Floor,
23 Boston, MA 02110-1301, USA. */
24
25/* As a special exception, you may create a larger work that contains
26 part or all of the Bison parser skeleton and distribute that work
27 under terms of your choice, so long as that work isn't itself a
28 parser generator using the skeleton or a modified version thereof
29 as a parser skeleton. Alternatively, if you modify or redistribute
30 the parser skeleton itself, you may (at your option) remove this
31 special exception, which will cause the skeleton and the resulting
32 Bison output files to be licensed under the GNU General Public
33 License without this special exception.
34
35 This special exception was added by the Free Software Foundation in
36 version 2.2 of Bison. */
37
38/* Tokens. */
39#ifndef YYTOKENTYPE
40# define YYTOKENTYPE
41 /* Put the tokens into the symbol table, so that GDB and other debuggers
42 know about them. */
43 enum yytokentype {
44 MULOP = 258,
45 RELOP = 259,
46 EQOP = 260,
47 MINUS = 261,
48 PLUS = 262,
49 AND = 263,
50 OR = 264,
51 FUNCTIONNAME = 265,
52 LITERAL = 266,
53 NAMETEST = 267,
54 NUMBER = 268,
55 NODETYPE = 269,
56 VARIABLEREFERENCE = 270,
57 AXISNAME = 271,
58 COMMENT = 272,
59 DOTDOT = 273,
60 PI = 274,
61 NODE = 275,
62 SLASHSLASH = 276,
63 TEXT_ = 277,
64 XPATH_ERROR = 278
65 };
66#endif
67/* Tokens. */
68#define MULOP 258
69#define RELOP 259
70#define EQOP 260
71#define MINUS 261
72#define PLUS 262
73#define AND 263
74#define OR 264
75#define FUNCTIONNAME 265
76#define LITERAL 266
77#define NAMETEST 267
78#define NUMBER 268
79#define NODETYPE 269
80#define VARIABLEREFERENCE 270
81#define AXISNAME 271
82#define COMMENT 272
83#define DOTDOT 273
84#define PI 274
85#define NODE 275
86#define SLASHSLASH 276
87#define TEXT_ 277
88#define XPATH_ERROR 278
89
90
91
92
93#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
94typedef union YYSTYPE
95#line 60 "WebCore/xml/XPathGrammar.y"
96{
97 NumericOp::Opcode numericOpcode;
98 EqTestOp::Opcode equalityTestOpcode;
99 StringImpl* string;
100 Step::Axis axis;
101 LocationPath* locationPath;
102 Step::NodeTest* nodeTest;
103 Vector<std::unique_ptr<Expression>>* expressionVector;
104 Step* step;
105 Expression* expression;
106}
107/* Line 1529 of yacc.c. */
108#line 107 "./XPathGrammar.hpp"
109 YYSTYPE;
110# define yystype YYSTYPE /* obsolescent; will be withdrawn */
111# define YYSTYPE_IS_DECLARED 1
112# define YYSTYPE_IS_TRIVIAL 1
113#endif
114
115
116
117#endif
118