KHtml

xpath/parser.h
1 /* A Bison parser, made by GNU Bison 2.4.2. */
2 
3 /* Skeleton interface for Bison's Yacc-like parsers in C
4 
5  Copyright (C) 1984, 1989-1990, 2000-2006, 2009-2010 Free Software
6  Foundation, Inc.
7 
8  This program is free software: you can redistribute it and/or modify
9  it under the terms of the GNU General Public License as published by
10  the Free Software Foundation, either version 3 of the License, or
11  (at your option) any later version.
12 
13  This program is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with this program. If not, see <http://www.gnu.org/licenses/>. */
20 
21 /* As a special exception, you may create a larger work that contains
22  part or all of the Bison parser skeleton and distribute that work
23  under terms of your choice, so long as that work isn't itself a
24  parser generator using the skeleton or a modified version thereof
25  as a parser skeleton. Alternatively, if you modify or redistribute
26  the parser skeleton itself, you may (at your option) remove this
27  special exception, which will cause the skeleton and the resulting
28  Bison output files to be licensed under the GNU General Public
29  License without this special exception.
30 
31  This special exception was added by the Free Software Foundation in
32  version 2.2 of Bison. */
33 
34 /* Tokens. */
35 #ifndef YYTOKENTYPE
36 # define YYTOKENTYPE
37 /* Put the tokens into the symbol table, so that GDB and other debuggers
38  know about them. */
39 enum yytokentype {
40  EQOP = 258,
41  RELOP = 259,
42  MULOP = 260,
43  MINUS = 261,
44  PLUS = 262,
45  AND = 263,
46  OR = 264,
47  AXISNAME = 265,
48  NODETYPE = 266,
49  PI = 267,
50  FUNCTIONNAME = 268,
51  LITERAL = 269,
52  VARIABLEREFERENCE = 270,
53  NUMBER = 271,
54  DOTDOT = 272,
55  SLASHSLASH = 273,
56  NAMETEST = 274,
57  ERROR = 275
58 };
59 #endif
60 
61 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
62 typedef union YYSTYPE {
63 
64  /* Line 1685 of yacc.c */
65 #line 39 "parser.y"
66 
67  khtml::XPath::Step::AxisType axisType;
68  int num;
69  DOM::DOMString *str; // we use this and not DOMStringImpl*, so the
70  // memory management for this is entirely manual,
71  // and not an RC/manual hybrid
72  khtml::XPath::Expression *expr;
75  khtml::XPath::Step *step;
76  khtml::XPath::LocationPath *locationPath;
77 
78  /* Line 1685 of yacc.c */
79 #line 86 "parser.tab.h"
80 } YYSTYPE;
81 # define YYSTYPE_IS_TRIVIAL 1
82 # define yystype YYSTYPE /* obsolescent; will be withdrawn */
83 # define YYSTYPE_IS_DECLARED 1
84 #endif
85 
86 extern YYSTYPE khtmlxpathyylval;
87 
This class implements the basic string we use in the DOM.
Definition: dom_string.h:44
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Oct 26 2021 22:48:06 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.