• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.8 API Reference
  • KDE Home
  • Contact Us
 

KHTML

  • khtml
  • xpath
Namespaces | Macros | Typedefs | Enumerations | Functions | Variables
parser.cpp File Reference
#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>
#include <stdio.h>

Go to the source code of this file.

Namespaces

 khtml
 
 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 YYFPRINTF   fprintf
 
#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

 for (;yybottom<=yytop;yybottom++)
 
 for (yyi=0;yyi< yynrhs;yyi++)
 
 for (;;)
 
 if (yyss+yystacksize-1<=yyssp)
 
 if (yychar==YYEMPTY)
 
 if (yychar<=YYEOF)
 
 if (yyn<=0)
 
 if (yyerrstatus==3)
 
Expression * khtml::XPath::khtmlParseXPathStatement (const DOMString &statement, int &ec)
 
Expression * khtmlParseXPathStatement (const DOM::DOMString &statement, int &ec)
 
void khtml::XPath::khtmlxpathyyerror (const char *str)
 
 switch (yytype)
 
 switch (yyn)
 
 while (yyssp!=yyss)
 
 YY_REDUCE_PRINT (yyn)
 
 YY_STACK_PRINT (yyss, yyssp)
 
 YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp)
 
 YY_SYMBOL_PRINT ("Next token is", yytoken,&yylval,&yylloc)
 
 YY_SYMBOL_PRINT ("Shifting", yytoken,&yylval,&yylloc)
 
 YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn],&yyval,&yyloc)
 
 YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp)
 
 yy_symbol_value_print (yyoutput, yytype, yyvaluep)
 
 YYDPRINTF ((stderr,"Starting parse\n"))
 
 YYDPRINTF ((stderr,"Entering state %d\n", yystate))
 
 yyerror (YY_("syntax error"))
 
else YYFPRINTF (yyoutput,"nterm %s (", yytname[yytype])
 
 YYFPRINTF (yyoutput,")")
 
 YYFPRINTF (stderr,"\n")
 
 YYFPRINTF (stderr,"Reducing stack by rule %d (line %lu):\n", yyrule-1, yylno)
 
return YYID (yyresult)
 
int yyparse ()
 
 YYPOPSTACK (yylen)
 
 YYSTACK_FREE (yyss)
 
 YYUSE (yyoutput)
 

Variables

yynewstate __pad0__
 
yyexhaustedlab __pad10__
 
yyreturn __pad11__
 
yysetstate __pad1__
 
yybackup __pad2__
 
yydefault __pad3__
 
yyreduce __pad4__
 
yyerrlab __pad5__
 
yyerrorlab __pad6__
 
yyerrlab1 __pad7__
 
yyacceptlab __pad8__
 
yyabortlab __pad9__
 
static Expression * _topExpr
 
 else
 
 int
 
static int xpathParseException
 
 YYACCEPT
 
goto yybackup
 
static void yytype_int16 * yybottom
 
int yychar = YYEMPTY
 
static const yytype_int8 yycheck []
 
int yydebug
 
static const yytype_uint8 yydefact []
 
goto yydefault
 
static const yytype_int8 yydefgoto []
 
goto yyerrlab
 
goto yyerrlab1
 
int yyerrstatus = 0
 
int yyi
 
int yylen = 0
 
unsigned long int yylno = yyrline[yyrule]
 
YYSTYPE yylval
 
static void const char * yymsg = "Deleting"
 
int yyn = yytoken
 
int yynerrs = 0
 
goto yynewstate
 
static void FILE * yyoutput
 
static const yytype_int8 yypact []
 
static const yytype_int8 yypgoto []
 
static const yytype_uint8 yyprhs []
 
static const yytype_uint8 yyr1 []
 
static const yytype_uint8 yyr2 []
 
goto yyreduce
 
int yyresult = 2
 
goto yyreturn
 
static const yytype_int8 yyrhs []
 
static const yytype_uint16 yyrline []
 
int yyrule
 
goto yysetstate
 
yytype_int16 * yyss = yyssa
 
yytype_int16 yyssa [YYINITDEPTH]
 
yytype_int16 * yyssp = yyss
 
YYSIZE_T yystacksize = YYINITDEPTH
 
 yystate = 0
 
static const yytype_uint8 yystos []
 
static const yytype_uint8 yytable []
 
static const char *const yytname []
 
int yytoken = 0
 
yytype_int16 * yytop
 
static const yytype_uint8 yytranslate []
 
int yytype
 
YYSTYPE yyval = yyvsp[1-yylen]
 
YYSTYPE const *const yyvaluep
 
YYSTYPE * yyvs = yyvsa
 
YYSTYPE yyvsa [YYINITDEPTH]
 
static void YYSTYPE * yyvsp = yyvs
 

Macro Definition Documentation

#define YY_ (   msgid)    msgid

Definition at line 261 of file parser.cpp.

#define YY_LOCATION_PRINT (   File,
  Loc 
)    ((void) 0)

Definition at line 759 of file parser.cpp.

#define YY_REDUCE_PRINT (   Rule)
Value:
do { \
if (yydebug) \
yy_reduce_print (yyvsp, Rule); \
} while (YYID (0))
yyvsp
static void YYSTYPE * yyvsp
Definition: parser.cpp:899
yydebug
#define yydebug
Definition: parser.cpp:71
if
if(yyss+yystacksize-1<=yyssp)
Definition: parser.cpp:1327
YYID
#define YYID(n)
Definition: parser.cpp:274

Definition at line 919 of file parser.cpp.

#define YY_STACK_PRINT (   Bottom,
  Top 
)
Value:
do { \
if (yydebug) \
yy_stack_print ((Bottom), (Top)); \
} while (YYID (0))
yydebug
#define yydebug
Definition: parser.cpp:71
if
if(yyss+yystacksize-1<=yyssp)
Definition: parser.cpp:1327
Top
YYID
#define YYID(n)
Definition: parser.cpp:274

Definition at line 881 of file parser.cpp.

#define YY_SYMBOL_PRINT (   Title,
  Type,
  Value,
  Location 
)
Value:
do { \
if (yydebug) \
{ \
YYFPRINTF (stderr, "%s ", Title); \
yy_symbol_print (stderr, \
Type, Value); \
YYFPRINTF (stderr, "\n"); \
} \
} while (YYID (0))
Type
Type
khtml::XPath::Value
Definition: expression.h:75
YYFPRINTF
#define YYFPRINTF
Definition: parser.cpp:777
yydebug
#define yydebug
Definition: parser.cpp:71
if
if(yyss+yystacksize-1<=yyssp)
Definition: parser.cpp:1327
YYID
#define YYID(n)
Definition: parser.cpp:274

Definition at line 786 of file parser.cpp.

#define YYABORT   goto yyabortlab

Definition at line 679 of file parser.cpp.

#define YYACCEPT   goto yyacceptlab

Definition at line 678 of file parser.cpp.

#define YYBACKUP (   Token,
  Value 
)
Value:
do \
if (yychar == YYEMPTY && yylen == 1) \
{ \
yychar = (Token); \
yylval = (Value); \
yytoken = YYTRANSLATE (yychar); \
YYPOPSTACK (1); \
goto yybackup; \
} \
else \
{ \
yyerror (YY_("syntax error: cannot back up")); \
YYERROR; \
} \
while (YYID (0))
yylval
#define yylval
Definition: parser.cpp:69
YYTRANSLATE
#define YYTRANSLATE(YYX)
Definition: parser.cpp:434
khtml::XPath::Token
Definition: tokenizer.h:43
yylen
int yylen
Definition: parser.cpp:1293
yychar
#define yychar
Definition: parser.cpp:70
YY_
#define YY_(msgid)
Definition: parser.cpp:261
khtml::XPath::Value
Definition: expression.h:75
yyerror
#define yyerror
Definition: parser.cpp:68
YYERROR
#define YYERROR
Definition: parser.cpp:680
if
if(yyss+yystacksize-1<=yyssp)
Definition: parser.cpp:1327
yytoken
int yytoken
Definition: parser.cpp:1277
while
while(yyssp!=yyss)
Definition: parser.cpp:2143
YYPOPSTACK
#define YYPOPSTACK(N)
Definition: parser.cpp:1289
else
else
Definition: parser.cpp:1423
yybackup
goto yybackup
Definition: parser.cpp:1393
YYEMPTY
#define YYEMPTY
Definition: parser.cpp:675
YYID
#define YYID(n)
Definition: parser.cpp:274

Definition at line 700 of file parser.cpp.

#define YYBISON   1

Definition at line 45 of file parser.cpp.

#define YYBISON_VERSION   "2.4.2"

Definition at line 48 of file parser.cpp.

#define yychar   khtmlxpathyychar

Definition at line 70 of file parser.cpp.

#define yyclearin   (yychar = YYEMPTY)

Definition at line 674 of file parser.cpp.

#define YYCOPY (   To,
  From,
  Count 
)
Value:
do \
{ \
YYSIZE_T yyi; \
for (yyi = 0; yyi < (Count); yyi++) \
(To)[yyi] = (From)[yyi]; \
} \
while (YYID (0))
YYSIZE_T
#define YYSIZE_T
Definition: parser.cpp:247
while
while(yyssp!=yyss)
Definition: parser.cpp:2143
for
for(;yybottom<=yytop;yybottom++)
Definition: parser.cpp:873
yyi
int yyi
Definition: parser.cpp:902
YYID
#define YYID(n)
Definition: parser.cpp:274

Definition at line 387 of file parser.cpp.

#define yydebug   khtmlxpathyydebug

Definition at line 71 of file parser.cpp.

#define YYDEBUG   1

Definition at line 107 of file parser.cpp.

#define YYDPRINTF (   Args)
Value:
do { \
if (yydebug) \
YYFPRINTF Args; \
} while (YYID (0))
YYFPRINTF
#define YYFPRINTF
Definition: parser.cpp:777
yydebug
#define yydebug
Definition: parser.cpp:71
if
if(yyss+yystacksize-1<=yyssp)
Definition: parser.cpp:1327
YYID
#define YYID(n)
Definition: parser.cpp:274

Definition at line 780 of file parser.cpp.

#define YYEMPTY   (-2)

Definition at line 675 of file parser.cpp.

#define YYEOF   0

Definition at line 676 of file parser.cpp.

#define YYERRCODE   256

Definition at line 719 of file parser.cpp.

#define yyerrok   (yyerrstatus = 0)

Definition at line 673 of file parser.cpp.

#define yyerror   khtmlxpathyyerror

Definition at line 68 of file parser.cpp.

#define YYERROR   goto yyerrorlab

Definition at line 680 of file parser.cpp.

#define YYERROR_VERBOSE   0

Definition at line 129 of file parser.cpp.

#define YYFAIL   goto yyerrlab

Definition at line 690 of file parser.cpp.

#define YYFINAL   43

Definition at line 417 of file parser.cpp.

#define YYFPRINTF   fprintf

Definition at line 777 of file parser.cpp.

#define YYFREE   free

Definition at line 350 of file parser.cpp.

#define YYID (   n)    (n)

Definition at line 274 of file parser.cpp.

#define YYINITDEPTH   200

Definition at line 938 of file parser.cpp.

#define YYLAST   115

Definition at line 419 of file parser.cpp.

#define yylex   khtmlxpathyylex

Definition at line 67 of file parser.cpp.

#define YYLEX   yylex ()

Definition at line 769 of file parser.cpp.

#define YYLLOC_DEFAULT (   Current,
  Rhs,
  N 
)
Value:
do \
if (YYID (N)) \
{ \
(Current).first_line = YYRHSLOC (Rhs, 1).first_line; \
(Current).first_column = YYRHSLOC (Rhs, 1).first_column; \
(Current).last_line = YYRHSLOC (Rhs, N).last_line; \
(Current).last_column = YYRHSLOC (Rhs, N).last_column; \
} \
else \
{ \
(Current).first_line = (Current).last_line = \
YYRHSLOC (Rhs, 0).last_line; \
(Current).first_column = (Current).last_column = \
YYRHSLOC (Rhs, 0).last_column; \
} \
while (YYID (0))
if
if(yyss+yystacksize-1<=yyssp)
Definition: parser.cpp:1327
while
while(yyssp!=yyss)
Definition: parser.cpp:2143
else
else
Definition: parser.cpp:1423
YYID
#define YYID(n)
Definition: parser.cpp:274
YYRHSLOC
#define YYRHSLOC(Rhs, K)
Definition: parser.cpp:726

Definition at line 728 of file parser.cpp.

#define YYLSP_NEEDED   0

Definition at line 63 of file parser.cpp.

yyreturn & yylval   khtmlxpathyylval

Definition at line 69 of file parser.cpp.

#define YYMALLOC   malloc

Definition at line 343 of file parser.cpp.

#define YYMAXDEPTH   10000

Definition at line 949 of file parser.cpp.

#define YYMAXUTOK   275

Definition at line 432 of file parser.cpp.

#define yynerrs   khtmlxpathyynerrs

Definition at line 72 of file parser.cpp.

#define YYNNTS   26

Definition at line 424 of file parser.cpp.

#define YYNRULES   60

Definition at line 426 of file parser.cpp.

#define YYNSTATES   90

Definition at line 428 of file parser.cpp.

#define YYNTOKENS   30

Definition at line 422 of file parser.cpp.

#define YYPACT_NINF   -45

Definition at line 599 of file parser.cpp.

#define yyparse   khtmlxpathyyparse

Definition at line 66 of file parser.cpp.

#define YYPOPSTACK (   N)    (yyvsp -= (N), yyssp -= (N))

Definition at line 1289 of file parser.cpp.

#define YYPULL   1

Definition at line 60 of file parser.cpp.

#define YYPURE   0

Definition at line 54 of file parser.cpp.

#define YYPUSH   0

Definition at line 57 of file parser.cpp.

#define YYRECOVERING ( )    (!!yyerrstatus)

Definition at line 698 of file parser.cpp.

#define YYRHSLOC (   Rhs,
  K 
)    ((Rhs)[K])

Definition at line 726 of file parser.cpp.

#define YYSIZE_MAXIMUM   ((YYSIZE_T) -1)

Definition at line 251 of file parser.cpp.

#define YYSIZE_T   unsigned int

Definition at line 247 of file parser.cpp.

#define YYSKELETON_NAME   "yacc.c"

Definition at line 51 of file parser.cpp.

#define YYSTACK_ALLOC   YYMALLOC

Definition at line 329 of file parser.cpp.

#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM

Definition at line 332 of file parser.cpp.

#define YYSTACK_BYTES (   N)
Value:
((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
+ YYSTACK_GAP_MAXIMUM)
yytype_int16
short int yytype_int16
Definition: parser.cpp:234
YYSTYPE
union YYSTYPE YYSTYPE
YYSTACK_GAP_MAXIMUM
#define YYSTACK_GAP_MAXIMUM
Definition: parser.cpp:372

Definition at line 376 of file parser.cpp.

#define YYSTACK_FREE   YYFREE

Definition at line 330 of file parser.cpp.

#define YYSTACK_GAP_MAXIMUM   (sizeof (union yyalloc) - 1)

Definition at line 372 of file parser.cpp.

#define YYSTACK_RELOCATE (   Stack_alloc,
  Stack 
)
Value:
do \
{ \
YYSIZE_T yynewbytes; \
YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
Stack = &yyptr->Stack_alloc; \
yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
yyptr += yynewbytes / sizeof (*yyptr); \
} \
while (YYID (0))
YYSIZE_T
#define YYSIZE_T
Definition: parser.cpp:247
yystacksize
YYSIZE_T yystacksize
Definition: parser.cpp:1272
YYCOPY
#define YYCOPY(To, From, Count)
Definition: parser.cpp:387
while
while(yyssp!=yyss)
Definition: parser.cpp:2143
YYID
#define YYID(n)
Definition: parser.cpp:274
YYSTACK_GAP_MAXIMUM
#define YYSTACK_GAP_MAXIMUM
Definition: parser.cpp:372

Definition at line 403 of file parser.cpp.

#define YYTABLE_NINF   -1

Definition at line 625 of file parser.cpp.

#define YYTERROR   1

Definition at line 718 of file parser.cpp.

#define YYTOKEN_TABLE   0

Definition at line 134 of file parser.cpp.

#define YYTOKENTYPE

Definition at line 140 of file parser.cpp.

#define YYTRANSLATE (   YYX)    ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)

Definition at line 434 of file parser.cpp.

#define YYUNDEFTOK   2

Definition at line 431 of file parser.cpp.

#define YYUSE (   e)    ((void) (e))

Definition at line 267 of file parser.cpp.

Typedef Documentation

typedef short int yytype_int16

Definition at line 234 of file parser.cpp.

typedef short int yytype_int8

Definition at line 222 of file parser.cpp.

typedef unsigned short int yytype_uint16

Definition at line 228 of file parser.cpp.

typedef unsigned char yytype_uint8

Definition at line 213 of file parser.cpp.

Enumeration Type Documentation

enum yytokentype
Enumerator
EQOP 
RELOP 
MULOP 
MINUS 
PLUS 
AND 
OR 
AXISNAME 
NODETYPE 
PI 
FUNCTIONNAME 
LITERAL 
VARIABLEREFERENCE 
NUMBER 
DOTDOT 
SLASHSLASH 
NAMETEST 
ERROR 
EQOP 
RELOP 
MULOP 
MINUS 
PLUS 
AND 
OR 
AXISNAME 
NODETYPE 
PI 
FUNCTIONNAME 
LITERAL 
VARIABLEREFERENCE 
NUMBER 
DOTDOT 
SLASHSLASH 
NAMETEST 
ERROR 

Definition at line 143 of file parser.cpp.

Function Documentation

for ( ;yybottom<=yytop;yybottom++  )

Definition at line 873 of file parser.cpp.

for ( )

Definition at line 909 of file parser.cpp.

for ( ;;  )

Definition at line 2075 of file parser.cpp.

if ( yyss+yystacksize-1<=  yyssp)

Definition at line 1327 of file parser.cpp.

if ( yychar  = = YYEMPTY)

Definition at line 1411 of file parser.cpp.

if ( yychar<=  YYEOF)

Definition at line 1417 of file parser.cpp.

if ( yyn<=  0)

Definition at line 1434 of file parser.cpp.

if ( yyerrstatus  = = 3)

Definition at line 2025 of file parser.cpp.

Expression* khtmlParseXPathStatement ( const DOM::DOMString &  statement,
int &  ec 
)

Definition at line 2170 of file parser.cpp.

switch ( yytype  )

Definition at line 823 of file parser.cpp.

switch ( yyn  )

Definition at line 1488 of file parser.cpp.

while ( yyssp!  = yyss)

Definition at line 2143 of file parser.cpp.

YY_REDUCE_PRINT ( yyn  )
YY_STACK_PRINT ( yyss  ,
yyssp   
)
YY_SYMBOL_PRINT ( yymsg  ,
yytype  ,
yyvaluep  ,
yylocationp   
)
YY_SYMBOL_PRINT ( "Next token is"  ,
yytoken  ,
&  yylval,
&  yylloc 
)
YY_SYMBOL_PRINT ( "Shifting"  ,
yytoken  ,
&  yylval,
&  yylloc 
)
YY_SYMBOL_PRINT ( )
YY_SYMBOL_PRINT ( "Shifting"  ,
yystos  [yyn],
yyvsp  ,
yylsp   
)
yy_symbol_value_print ( yyoutput  ,
yytype  ,
yyvaluep   
)
YYDPRINTF ( (stderr,"Starting parse\n")  )
YYDPRINTF ( (stderr,"Entering state %d\n", yystate)  )
yyerror ( YY_("syntax error")  )
else YYFPRINTF ( yyoutput  )
YYFPRINTF ( yyoutput  ,
"   
)
YYFPRINTF ( stderr  ,
"\n"   
)
YYFPRINTF ( stderr  ,
"Reducing stack by rule %d (line %lu):\n"  ,
yyrule-  1,
yylno   
)
return YYID ( yyresult  )
int yyparse ( )
YYPOPSTACK ( yylen  )
YYSTACK_FREE ( yyss  )
YYUSE ( yyoutput  )

Variable Documentation

yynewstate __pad0__

Definition at line 1322 of file parser.cpp.

yyexhaustedlab __pad10__

Definition at line 2130 of file parser.cpp.

yyreturn __pad11__

Definition at line 2137 of file parser.cpp.

yysetstate __pad1__

Definition at line 1325 of file parser.cpp.

yybackup __pad2__

Definition at line 1404 of file parser.cpp.

yydefault __pad3__

Definition at line 1463 of file parser.cpp.

yyreduce __pad4__

Definition at line 1474 of file parser.cpp.

yyerrlab __pad5__

Definition at line 1985 of file parser.cpp.

yyerrorlab __pad6__

Definition at line 2058 of file parser.cpp.

yyerrlab1 __pad7__

Definition at line 2073 of file parser.cpp.

yyacceptlab __pad8__

Definition at line 2115 of file parser.cpp.

yyabortlab __pad9__

Definition at line 2122 of file parser.cpp.

Expression* _topExpr
static

Definition at line 111 of file parser.cpp.

else
Initial value:
{
yytoken = YYTRANSLATE (yychar)
YYTRANSLATE
#define YYTRANSLATE(YYX)
Definition: parser.cpp:434
yychar
#define yychar
Definition: parser.cpp:70
yytoken
int yytoken
Definition: parser.cpp:1277

Definition at line 1423 of file parser.cpp.

int
Initial value:
{
int yystate
yystate
yystate
Definition: parser.cpp:1302

Definition at line 1248 of file parser.cpp.

int xpathParseException
static

Definition at line 112 of file parser.cpp.

YYACCEPT

Definition at line 1391 of file parser.cpp.

goto yybackup

Definition at line 1393 of file parser.cpp.

void yytype_int16* yybottom
static

Definition at line 868 of file parser.cpp.

yychar = YYEMPTY

Definition at line 1213 of file parser.cpp.

const yytype_int8 yycheck[]
static
Initial value:
=
{
1, 19, 0, 12, 48, 25, 23, 51, 10, 11,
12, 29, 6, 7, 23, 17, 14, 19, 24, 14,
22, 18, 28, 41, 21, 27, 46, 23, 72, 24,
11, 12, 50, 18, 44, 45, 21, 23, 19, 0,
59, 60, 25, 9, 53, 54, 8, 29, 3, 47,
4, 24, 5, 24, 24, 87, 21, 6, 76, 77,
61, 10, 11, 12, 13, 14, 15, 16, 17, 18,
19, 55, 21, 22, 23, 24, 6, 52, 27, 26,
10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
57, 21, 22, 23, 58, -1, 56, 27, 10, 11,
12, 13, 14, 15, 16, 17, 18, 19, -1, 21,
22, 23, -1, -1, -1, 27
}

Definition at line 642 of file parser.cpp.

int yydebug

Definition at line 927 of file parser.cpp.

const yytype_uint8 yydefact[]
static
Initial value:
=
{
0, 0, 16, 0, 0, 0, 30, 28, 31, 27,
25, 18, 5, 17, 0, 26, 0, 40, 4, 3,
8, 0, 11, 0, 15, 44, 32, 59, 38, 41,
2, 46, 48, 50, 52, 54, 57, 60, 0, 0,
0, 6, 0, 1, 0, 0, 13, 0, 12, 22,
7, 45, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 19, 0, 20, 33, 37, 0, 35, 29,
9, 10, 14, 0, 23, 39, 42, 43, 47, 49,
51, 53, 56, 55, 58, 21, 34, 0, 24, 36
}

Definition at line 576 of file parser.cpp.

goto yydefault

Definition at line 1406 of file parser.cpp.

const yytype_int8 yydefgoto[]
static
Initial value:
=
{
-1, 66, 17, 18, 19, 20, 21, 22, 48, 49,
23, 24, 25, 26, 67, 68, 27, 28, 29, 30,
31, 32, 33, 34, 35, 36
}

Definition at line 590 of file parser.cpp.

goto yyerrlab

Definition at line 1465 of file parser.cpp.

goto yyerrlab1

Definition at line 2046 of file parser.cpp.

yyerrstatus = 0

Definition at line 1253 of file parser.cpp.

int yyi
Initial value:
{
int yynrhs = yyr2[yyrule]
yyr2
static const yytype_uint8 yyr2[]
Definition: parser.cpp:562
yyrule
int yyrule
Definition: parser.cpp:900

Definition at line 902 of file parser.cpp.

yylen = 0

Definition at line 1293 of file parser.cpp.

unsigned long int yylno = yyrline[yyrule]

Definition at line 905 of file parser.cpp.

yyreturn & yylval

Definition at line 1216 of file parser.cpp.

yymsg = "Deleting"
static

Definition at line 1177 of file parser.cpp.

yyn = yytoken

Definition at line 1274 of file parser.cpp.

yynerrs = 0

Definition at line 1219 of file parser.cpp.

goto yynewstate

Definition at line 1456 of file parser.cpp.

static void FILE * yyoutput
static

Definition at line 810 of file parser.cpp.

const yytype_int8 yypact[]
static
Initial value:
=
{
70, 70, -45, -17, 4, 14, -45, -45, -45, -45,
-45, -45, -2, -45, 70, -45, 39, -45, -45, 3,
-45, 19, 17, -2, -45, 17, -45, 18, -45, 15,
34, 38, 45, 46, 6, 47, -45, -45, 27, 5,
51, 3, 29, -45, -2, -2, 17, 70, 17, -45,
3, 17, 88, -2, -2, 70, 70, 70, 70, 70,
70, 70, -45, 30, -45, -45, -45, -6, -45, -45,
-45, -45, 17, 53, -45, -45, 3, 3, 38, 45,
46, 6, 47, 47, -45, -45, -45, 70, -45, -45
}

Definition at line 600 of file parser.cpp.

const yytype_int8 yypgoto[]
static
Initial value:
=
{
-45, 2, -45, -45, -9, -10, -45, 35, -20, -44,
-18, -45, -45, -45, -45, -32, -45, 25, -45, -45,
16, 40, 33, 36, -19, -1
}

Definition at line 614 of file parser.cpp.

const yytype_uint8 yyprhs[]
static
Initial value:
=
{
0, 0, 3, 5, 7, 9, 11, 14, 17, 19,
23, 27, 29, 32, 35, 39, 41, 43, 45, 47,
51, 55, 60, 62, 65, 69, 71, 73, 75, 77,
81, 83, 85, 87, 91, 96, 98, 102, 104, 106,
110, 112, 114, 118, 122, 124, 127, 129, 133, 135,
139, 141, 145, 147, 151, 153, 157, 161, 163, 167,
169
}

Definition at line 473 of file parser.cpp.

const yytype_uint8 yyr1[]
static
Initial value:
=
{
0, 30, 31, 32, 32, 33, 33, 33, 34, 34,
34, 35, 35, 35, 35, 35, 36, 36, 37, 37,
37, 37, 38, 38, 39, 40, 41, 41, 42, 42,
42, 42, 42, 43, 43, 44, 44, 45, 46, 46,
47, 47, 47, 47, 48, 48, 49, 49, 50, 50,
51, 51, 52, 52, 53, 53, 53, 54, 54, 55,
55
}

Definition at line 550 of file parser.cpp.

const yytype_uint8 yyr2[]
static
Initial value:
=
{
0, 2, 1, 1, 1, 1, 2, 2, 1, 3,
3, 1, 2, 2, 3, 1, 1, 1, 1, 3,
3, 4, 1, 2, 3, 1, 1, 1, 1, 3,
1, 1, 1, 3, 4, 1, 3, 1, 1, 3,
1, 1, 3, 3, 1, 2, 1, 3, 1, 3,
1, 3, 1, 3, 1, 3, 3, 1, 3, 1,
2
}

Definition at line 562 of file parser.cpp.

goto yyreduce

Definition at line 1466 of file parser.cpp.

yyresult = 2

Definition at line 1275 of file parser.cpp.

goto yyreturn

Definition at line 2116 of file parser.cpp.

const yytype_int8 yyrhs[]
static
Initial value:
=
{
31, 0, -1, 49, -1, 34, -1, 33, -1, 21,
-1, 21, 34, -1, 40, 34, -1, 35, -1, 34,
21, 35, -1, 34, 40, 35, -1, 37, -1, 37,
38, -1, 36, 37, -1, 36, 37, 38, -1, 41,
-1, 10, -1, 22, -1, 19, -1, 11, 23, 24,
-1, 12, 23, 24, -1, 12, 23, 14, 24, -1,
39, -1, 38, 39, -1, 25, 31, 26, -1, 18,
-1, 27, -1, 17, -1, 15, -1, 23, 31, 24,
-1, 14, -1, 16, -1, 43, -1, 13, 23, 24,
-1, 13, 23, 44, 24, -1, 45, -1, 44, 28,
45, -1, 31, -1, 47, -1, 46, 29, 47, -1,
32, -1, 48, -1, 48, 21, 34, -1, 48, 40,
34, -1, 42, -1, 42, 38, -1, 50, -1, 49,
9, 50, -1, 51, -1, 50, 8, 51, -1, 52,
-1, 51, 3, 52, -1, 53, -1, 52, 4, 53,
-1, 54, -1, 53, 7, 54, -1, 53, 6, 54,
-1, 55, -1, 54, 5, 55, -1, 46, -1, 6,
55, -1
}

Definition at line 485 of file parser.cpp.

const yytype_uint16 yyrline[]
static
Initial value:
=
{
0, 93, 93, 100, 105, 112, 117, 122, 130, 136,
141, 149, 155, 162, 168, 175, 179, 181, 188, 202,
207, 209, 220, 226, 233, 240, 247, 252, 259, 265,
270, 276, 282, 286, 298, 312, 318, 325, 330, 332,
341, 346, 351, 356, 364, 369, 376, 378, 385, 387,
394, 396, 403, 405, 412, 414, 419, 426, 428, 435,
437
}

Definition at line 508 of file parser.cpp.

int yyrule

Definition at line 900 of file parser.cpp.

goto yysetstate

Definition at line 1314 of file parser.cpp.

yyss = yyssa

Definition at line 1264 of file parser.cpp.

yytype_int16 yyssa[YYINITDEPTH]

Definition at line 1263 of file parser.cpp.

yyssp = yyss

Definition at line 1265 of file parser.cpp.

yystacksize = YYINITDEPTH

Definition at line 1272 of file parser.cpp.

else yystate = 0

Definition at line 1302 of file parser.cpp.

const yytype_uint8 yystos[]
static
Initial value:
=
{
0, 6, 10, 11, 12, 13, 14, 15, 16, 17,
18, 19, 21, 22, 23, 27, 31, 32, 33, 34,
35, 36, 37, 40, 41, 42, 43, 46, 47, 48,
49, 50, 51, 52, 53, 54, 55, 55, 23, 23,
23, 34, 31, 0, 21, 40, 37, 25, 38, 39,
34, 38, 29, 21, 40, 9, 8, 3, 4, 6,
7, 5, 24, 14, 24, 24, 31, 44, 45, 24,
35, 35, 38, 31, 39, 47, 34, 34, 50, 51,
52, 53, 54, 54, 55, 24, 24, 28, 26, 45
}

Definition at line 660 of file parser.cpp.

const yytype_uint8 yytable[]
static
Initial value:
=
{
37, 45, 16, 41, 74, 51, 38, 74, 2, 3,
4, 54, 59, 60, 50, 9, 42, 11, 86, 63,
13, 10, 87, 45, 44, 15, 72, 39, 74, 64,
3, 4, 45, 10, 70, 71, 53, 40, 11, 43,
82, 83, 47, 55, 76, 77, 56, 52, 57, 73,
58, 62, 61, 69, 85, 89, 46, 1, 45, 45,
84, 2, 3, 4, 5, 6, 7, 8, 9, 10,
11, 78, 12, 13, 14, 65, 1, 75, 15, 88,
2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
80, 12, 13, 14, 81, 0, 79, 15, 2, 3,
4, 5, 6, 7, 8, 9, 10, 11, 0, 12,
13, 14, 0, 0, 0, 15
}

Definition at line 626 of file parser.cpp.

const char* const yytname[]
static
Initial value:
=
{
"$end", "error", "$undefined", "EQOP", "RELOP", "MULOP", "MINUS",
"PLUS", "AND", "OR", "AXISNAME", "NODETYPE", "PI", "FUNCTIONNAME",
"LITERAL", "VARIABLEREFERENCE", "NUMBER", "DOTDOT", "SLASHSLASH",
"NAMETEST", "ERROR", "'/'", "'@'", "'('", "')'", "'['", "']'", "'.'",
"','", "'|'", "$accept", "Expr", "LocationPath", "AbsoluteLocationPath",
"RelativeLocationPath", "Step", "AxisSpecifier", "NodeTest",
"PredicateList", "Predicate", "DescendantOrSelf", "AbbreviatedStep",
"PrimaryExpr", "FunctionCall", "ArgumentList", "Argument", "UnionExpr",
"PathExpr", "FilterExpr", "OrExpr", "AndExpr", "EqualityExpr",
"RelationalExpr", "AdditiveExpr", "MultiplicativeExpr", "UnaryExpr", 0
}

Definition at line 523 of file parser.cpp.

yyreturn yytoken = 0

Definition at line 1277 of file parser.cpp.

yytype_int16* yytop

Definition at line 869 of file parser.cpp.

const yytype_uint8 yytranslate[]
static

Definition at line 438 of file parser.cpp.

int yytype

Definition at line 811 of file parser.cpp.

yyval = yyvsp[1-yylen]

Definition at line 1280 of file parser.cpp.

YYSTYPE * yyvaluep

Definition at line 812 of file parser.cpp.

yyvs = yyvsa

Definition at line 1269 of file parser.cpp.

YYSTYPE yyvsa[YYINITDEPTH]

Definition at line 1268 of file parser.cpp.

* yyvsp = yyvs
static

Definition at line 899 of file parser.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2016 The KDE developers.
Generated on Fri Apr 1 2016 10:50:03 by doxygen 1.8.5 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KHTML

Skip menu "KHTML"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs-4.14.8 API Reference

Skip menu "kdelibs-4.14.8 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal