KHTML
#include "functions.h"
#include "path.h"
#include "predicate.h"
#include "util.h"
#include "tokenizer.h"
#include "expression.h"
#include "variablereference.h"
#include "dom/dom_string.h"
#include "dom/dom_exception.h"
#include "dom/dom3_xpath.h"
#include "xml/dom_stringimpl.h"
#include "xml/dom3_xpathimpl.h"
#include <QList>
#include <QPair>
#include <QtDebug>
Go to the source code of this file.
Namespaces | |
namespace | khtml |
namespace | khtml::XPath |
Macros | |
#define | YY_(msgid) msgid |
#define | YY_LOCATION_PRINT(File, Loc) ((void) 0) |
#define | YY_REDUCE_PRINT(Rule) |
#define | YY_STACK_PRINT(Bottom, Top) |
#define | YY_SYMBOL_PRINT(Title, Type, Value, Location) |
#define | YYABORT goto yyabortlab |
#define | YYACCEPT goto yyacceptlab |
#define | YYBACKUP(Token, Value) |
#define | YYBISON 1 |
#define | YYBISON_VERSION "2.4.2" |
#define | yychar khtmlxpathyychar |
#define | yyclearin (yychar = YYEMPTY) |
#define | YYCOPY(To, From, Count) |
#define | yydebug khtmlxpathyydebug |
#define | YYDEBUG 1 |
#define | YYDPRINTF(Args) |
#define | YYEMPTY (-2) |
#define | YYEOF 0 |
#define | YYERRCODE 256 |
#define | yyerrok (yyerrstatus = 0) |
#define | yyerror khtmlxpathyyerror |
#define | YYERROR goto yyerrorlab |
#define | YYERROR_VERBOSE 0 |
#define | YYFAIL goto yyerrlab |
#define | YYFINAL 43 |
#define | YYFREE free |
#define | YYID(n) (n) |
#define | YYINITDEPTH 200 |
#define | YYLAST 115 |
#define | yylex khtmlxpathyylex |
#define | YYLEX yylex () |
#define | YYLLOC_DEFAULT(Current, Rhs, N) |
#define | YYLSP_NEEDED 0 |
#define | yylval khtmlxpathyylval |
#define | YYMALLOC malloc |
#define | YYMAXDEPTH 10000 |
#define | YYMAXUTOK 275 |
#define | yynerrs khtmlxpathyynerrs |
#define | YYNNTS 26 |
#define | YYNRULES 60 |
#define | YYNSTATES 90 |
#define | YYNTOKENS 30 |
#define | YYPACT_NINF -45 |
#define | yyparse khtmlxpathyyparse |
#define | YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) |
#define | YYPULL 1 |
#define | YYPURE 0 |
#define | YYPUSH 0 |
#define | YYRECOVERING() (!!yyerrstatus) |
#define | YYRHSLOC(Rhs, K) ((Rhs)[K]) |
#define | YYSIZE_MAXIMUM ((YYSIZE_T) -1) |
#define | YYSIZE_T unsigned int |
#define | YYSKELETON_NAME "yacc.c" |
#define | YYSTACK_ALLOC YYMALLOC |
#define | YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
#define | YYSTACK_BYTES(N) |
#define | YYSTACK_FREE YYFREE |
#define | YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) |
#define | YYSTACK_RELOCATE(Stack_alloc, Stack) |
#define | YYTABLE_NINF -1 |
#define | YYTERROR 1 |
#define | YYTOKEN_TABLE 0 |
#define | YYTOKENTYPE |
#define | YYTRANSLATE(YYX) ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
#define | YYUNDEFTOK 2 |
#define | YYUSE(e) ((void) (e)) |
Typedefs | |
typedef short int | yytype_int16 |
typedef short int | yytype_int8 |
typedef unsigned short int | yytype_uint16 |
typedef unsigned char | yytype_uint8 |
Enumerations | |
enum | yytokentype { EQOP = 258 , RELOP = 259 , MULOP = 260 , MINUS = 261 , PLUS = 262 , AND = 263 , OR = 264 , AXISNAME = 265 , NODETYPE = 266 , PI = 267 , FUNCTIONNAME = 268 , LITERAL = 269 , VARIABLEREFERENCE = 270 , NUMBER = 271 , DOTDOT = 272 , SLASHSLASH = 273 , NAMETEST = 274 , ERROR = 275 , EQOP = 258 , RELOP = 259 , MULOP = 260 , MINUS = 261 , PLUS = 262 , AND = 263 , OR = 264 , AXISNAME = 265 , NODETYPE = 266 , PI = 267 , FUNCTIONNAME = 268 , LITERAL = 269 , VARIABLEREFERENCE = 270 , NUMBER = 271 , DOTDOT = 272 , SLASHSLASH = 273 , NAMETEST = 274 , ERROR = 275 } |
Functions | |
if (!yymsg) yymsg | |
Expression * | khtmlParseXPathStatement (const DOM::DOMString &statement, int &ec) |
Expression * | khtml::XPath::khtmlParseXPathStatement (const DOMString &statement, int &ec) |
void | khtml::XPath::khtmlxpathyyerror (const char *str) |
switch (yytype) | |
YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp) | |
static void | yydestruct (yymsg, yytype, yyvaluep) const char *yymsg |
Variables | |
static Expression * | _topExpr |
static int | xpathParseException |
int | yychar |
static const yytype_int8 | yycheck [] |
static const yytype_uint8 | yydefact [] |
static const yytype_int8 | yydefgoto [] |
YYSTYPE | yylval |
int | yynerrs |
static const yytype_int8 | yypact [] |
static const yytype_int8 | yypgoto [] |
static const yytype_uint8 | yyr1 [] |
static const yytype_uint8 | yyr2 [] |
static const yytype_uint8 | yystos [] |
static const yytype_uint8 | yytable [] |
static const yytype_uint8 | yytranslate [] |
int | yytype |
YYSTYPE * | yyvaluep |
Macro Definition Documentation
◆ YY_
#define YY_ | ( | msgid | ) | msgid |
Definition at line 261 of file parser.cpp.
◆ YY_LOCATION_PRINT
#define YY_LOCATION_PRINT | ( | File, | |
Loc | |||
) | ((void) 0) |
Definition at line 759 of file parser.cpp.
◆ YY_REDUCE_PRINT
#define YY_REDUCE_PRINT | ( | Rule | ) |
Definition at line 932 of file parser.cpp.
◆ YY_STACK_PRINT
#define YY_STACK_PRINT | ( | Bottom, | |
Top | |||
) |
Definition at line 931 of file parser.cpp.
◆ YY_SYMBOL_PRINT
Definition at line 930 of file parser.cpp.
◆ YYABORT
#define YYABORT goto yyabortlab |
Definition at line 679 of file parser.cpp.
◆ YYACCEPT
#define YYACCEPT goto yyacceptlab |
Definition at line 678 of file parser.cpp.
◆ YYBACKUP
Definition at line 700 of file parser.cpp.
◆ YYBISON
#define YYBISON 1 |
Definition at line 45 of file parser.cpp.
◆ YYBISON_VERSION
#define YYBISON_VERSION "2.4.2" |
Definition at line 48 of file parser.cpp.
◆ yychar
#define yychar khtmlxpathyychar |
Definition at line 70 of file parser.cpp.
◆ yyclearin
Definition at line 674 of file parser.cpp.
◆ YYCOPY
#define YYCOPY | ( | To, | |
From, | |||
Count | |||
) |
Definition at line 387 of file parser.cpp.
◆ yydebug
#define yydebug khtmlxpathyydebug |
Definition at line 71 of file parser.cpp.
◆ YYDEBUG
#define YYDEBUG 1 |
Definition at line 107 of file parser.cpp.
◆ YYDPRINTF
#define YYDPRINTF | ( | Args | ) |
Definition at line 929 of file parser.cpp.
◆ YYEMPTY
#define YYEMPTY (-2) |
Definition at line 675 of file parser.cpp.
◆ YYEOF
#define YYEOF 0 |
Definition at line 676 of file parser.cpp.
◆ YYERRCODE
#define YYERRCODE 256 |
Definition at line 719 of file parser.cpp.
◆ yyerrok
#define yyerrok (yyerrstatus = 0) |
Definition at line 673 of file parser.cpp.
◆ yyerror
#define yyerror khtmlxpathyyerror |
Definition at line 68 of file parser.cpp.
◆ YYERROR
#define YYERROR goto yyerrorlab |
Definition at line 680 of file parser.cpp.
◆ YYERROR_VERBOSE
#define YYERROR_VERBOSE 0 |
Definition at line 129 of file parser.cpp.
◆ YYFAIL
#define YYFAIL goto yyerrlab |
Definition at line 690 of file parser.cpp.
◆ YYFINAL
#define YYFINAL 43 |
Definition at line 417 of file parser.cpp.
◆ YYFREE
#define YYFREE free |
Definition at line 350 of file parser.cpp.
◆ YYID
#define YYID | ( | n | ) | (n) |
Definition at line 274 of file parser.cpp.
◆ YYINITDEPTH
#define YYINITDEPTH 200 |
Definition at line 938 of file parser.cpp.
◆ YYLAST
#define YYLAST 115 |
Definition at line 419 of file parser.cpp.
◆ yylex
#define yylex khtmlxpathyylex |
Definition at line 67 of file parser.cpp.
◆ YYLEX
#define YYLEX yylex () |
Definition at line 769 of file parser.cpp.
◆ YYLLOC_DEFAULT
#define YYLLOC_DEFAULT | ( | Current, | |
Rhs, | |||
N | |||
) |
Definition at line 728 of file parser.cpp.
◆ YYLSP_NEEDED
#define YYLSP_NEEDED 0 |
Definition at line 63 of file parser.cpp.
◆ yylval
#define yylval khtmlxpathyylval |
Definition at line 69 of file parser.cpp.
◆ YYMALLOC
#define YYMALLOC malloc |
Definition at line 343 of file parser.cpp.
◆ YYMAXDEPTH
#define YYMAXDEPTH 10000 |
Definition at line 949 of file parser.cpp.
◆ YYMAXUTOK
#define YYMAXUTOK 275 |
Definition at line 432 of file parser.cpp.
◆ yynerrs
#define yynerrs khtmlxpathyynerrs |
Definition at line 72 of file parser.cpp.
◆ YYNNTS
#define YYNNTS 26 |
Definition at line 424 of file parser.cpp.
◆ YYNRULES
#define YYNRULES 60 |
Definition at line 426 of file parser.cpp.
◆ YYNSTATES
#define YYNSTATES 90 |
Definition at line 428 of file parser.cpp.
◆ YYNTOKENS
#define YYNTOKENS 30 |
Definition at line 422 of file parser.cpp.
◆ YYPACT_NINF
#define YYPACT_NINF -45 |
Definition at line 599 of file parser.cpp.
◆ yyparse
int yyparse khtmlxpathyyparse |
Definition at line 66 of file parser.cpp.
◆ YYPOPSTACK
#define YYPOPSTACK | ( | N | ) | (yyvsp -= (N), yyssp -= (N)) |
◆ YYPULL
#define YYPULL 1 |
Definition at line 60 of file parser.cpp.
◆ YYPURE
#define YYPURE 0 |
Definition at line 54 of file parser.cpp.
◆ YYPUSH
#define YYPUSH 0 |
Definition at line 57 of file parser.cpp.
◆ YYRECOVERING
#define YYRECOVERING | ( | ) | (!!yyerrstatus) |
Definition at line 698 of file parser.cpp.
◆ YYRHSLOC
#define YYRHSLOC | ( | Rhs, | |
K | |||
) | ((Rhs)[K]) |
Definition at line 726 of file parser.cpp.
◆ YYSIZE_MAXIMUM
#define YYSIZE_MAXIMUM ((YYSIZE_T) -1) |
Definition at line 251 of file parser.cpp.
◆ YYSIZE_T
#define YYSIZE_T unsigned int |
Definition at line 247 of file parser.cpp.
◆ YYSKELETON_NAME
#define YYSKELETON_NAME "yacc.c" |
Definition at line 51 of file parser.cpp.
◆ YYSTACK_ALLOC
#define YYSTACK_ALLOC YYMALLOC |
Definition at line 329 of file parser.cpp.
◆ YYSTACK_ALLOC_MAXIMUM
#define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
Definition at line 332 of file parser.cpp.
◆ YYSTACK_BYTES
#define YYSTACK_BYTES | ( | N | ) |
Definition at line 376 of file parser.cpp.
◆ YYSTACK_FREE
#define YYSTACK_FREE YYFREE |
Definition at line 330 of file parser.cpp.
◆ YYSTACK_GAP_MAXIMUM
#define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) |
Definition at line 372 of file parser.cpp.
◆ YYSTACK_RELOCATE
#define YYSTACK_RELOCATE | ( | Stack_alloc, | |
Stack | |||
) |
Definition at line 403 of file parser.cpp.
◆ YYTABLE_NINF
#define YYTABLE_NINF -1 |
Definition at line 625 of file parser.cpp.
◆ YYTERROR
#define YYTERROR 1 |
Definition at line 718 of file parser.cpp.
◆ YYTOKEN_TABLE
#define YYTOKEN_TABLE 0 |
Definition at line 134 of file parser.cpp.
◆ YYTOKENTYPE
#define YYTOKENTYPE |
Definition at line 140 of file parser.cpp.
◆ YYTRANSLATE
#define YYTRANSLATE | ( | YYX | ) | ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
Definition at line 434 of file parser.cpp.
◆ YYUNDEFTOK
#define YYUNDEFTOK 2 |
Definition at line 431 of file parser.cpp.
◆ YYUSE
#define YYUSE | ( | e | ) | ((void) (e)) |
Definition at line 267 of file parser.cpp.
Typedef Documentation
◆ yytype_int16
typedef short int yytype_int16 |
Definition at line 234 of file parser.cpp.
◆ yytype_int8
typedef short int yytype_int8 |
Definition at line 222 of file parser.cpp.
◆ yytype_uint16
typedef unsigned short int yytype_uint16 |
Definition at line 228 of file parser.cpp.
◆ yytype_uint8
typedef unsigned char yytype_uint8 |
Definition at line 213 of file parser.cpp.
Enumeration Type Documentation
◆ yytokentype
enum yytokentype |
Definition at line 143 of file parser.cpp.
Function Documentation
◆ if()
if | ( | ! | yymsg | ) |
◆ khtmlParseXPathStatement()
Expression * khtmlParseXPathStatement | ( | const DOM::DOMString & | statement, |
int & | ec | ||
) |
◆ switch()
switch | ( | yytype | ) |
Definition at line 1188 of file parser.cpp.
◆ YY_SYMBOL_PRINT()
◆ yydestruct()
Variable Documentation
◆ _topExpr
|
static |
Definition at line 111 of file parser.cpp.
◆ xpathParseException
|
static |
Definition at line 112 of file parser.cpp.
◆ yychar
int yychar |
Definition at line 1213 of file parser.cpp.
◆ yycheck
|
static |
Definition at line 642 of file parser.cpp.
◆ yydefact
|
static |
Definition at line 576 of file parser.cpp.
◆ yydefgoto
|
static |
Definition at line 590 of file parser.cpp.
◆ yylval
YYSTYPE yylval |
Definition at line 1216 of file parser.cpp.
◆ yynerrs
int yynerrs |
Definition at line 1219 of file parser.cpp.
◆ yypact
|
static |
Definition at line 600 of file parser.cpp.
◆ yypgoto
|
static |
Definition at line 614 of file parser.cpp.
◆ yyr1
|
static |
Definition at line 550 of file parser.cpp.
◆ yyr2
|
static |
Definition at line 562 of file parser.cpp.
◆ yystos
|
static |
Definition at line 660 of file parser.cpp.
◆ yytable
|
static |
Definition at line 626 of file parser.cpp.
◆ yytranslate
|
static |
Definition at line 438 of file parser.cpp.
◆ yytype
int yytype |
Definition at line 1178 of file parser.cpp.
◆ yyvaluep
YYSTYPE* yyvaluep |
Definition at line 1179 of file parser.cpp.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.