An XPath 1.0 parser.
ANCESTOR
public static final int ANCESTOR
- 283
ANCESTOR_OR_SELF
public static final int ANCESTOR_OR_SELF
- 284
AND
public static final int AND
- 299
AT
public static final int AT
- 276
ATTRIBUTE
public static final int ATTRIBUTE
- 285
CHILD
public static final int CHILD
- 286
COLON
public static final int COLON
- 279
COMMA
public static final int COMMA
- 264
COMMENT
public static final int COMMENT
- 300
DESCENDANT
public static final int DESCENDANT
- 287
DESCENDANT_OR_SELF
public static final int DESCENDANT_OR_SELF
- 288
DIGITS
public static final int DIGITS
- 258
DIV
public static final int DIV
- 296
DOLLAR
public static final int DOLLAR
- 278
DOT
public static final int DOT
- 281
DOUBLE_COLON
public static final int DOUBLE_COLON
- 280
DOUBLE_DOT
public static final int DOUBLE_DOT
- 282
DOUBLE_SLASH
public static final int DOUBLE_SLASH
- 267
EQ
public static final int EQ
- 268
FOLLOWING
public static final int FOLLOWING
- 289
FOLLOWING_SIBLING
public static final int FOLLOWING_SIBLING
- 290
GT
public static final int GT
- 270
GTE
public static final int GTE
- 272
LB
public static final int LB
- 262
LITERAL
public static final int LITERAL
- 257
LP
public static final int LP
- 260
LT
public static final int LT
- 271
LTE
public static final int LTE
- 273
MINUS
public static final int MINUS
- 275
MOD
public static final int MOD
- 297
NAME
public static final int NAME
- 259
NAMESPACE
public static final int NAMESPACE
- 291
NE
public static final int NE
- 269
NODE
public static final int NODE
- 303
OR
public static final int OR
- 298
PARENT
public static final int PARENT
- 292
PIPE
public static final int PIPE
- 265
PLUS
public static final int PLUS
- 274
PRECEDING
public static final int PRECEDING
- 293
PRECEDING_SIBLING
public static final int PRECEDING_SIBLING
- 294
PROCESSING_INSTRUCTION
public static final int PROCESSING_INSTRUCTION
- 301
RB
public static final int RB
- 263
RP
public static final int RP
- 261
SELF
public static final int SELF
- 295
SLASH
public static final int SLASH
- 266
STAR
public static final int STAR
- 277
TEXT
public static final int TEXT
- 302
UNARY
public static final int UNARY
- 304
yyErrorCode
public static final int yyErrorCode
- 256
yyFinal
protected static final int yyFinal
debugging support, requires the package jay.yydebug.
Set to null to suppress debugging messages.
- 30
yyMax
protected int yyMax
initial size and increment of the state/value stack [default 256].
This is not final so that it can be overwritten outside of invocations
of yyparse().
yyDefault
protected Object yyDefault(Object first)
executed at the beginning of a reduce action.
Used as $$ = yyDefault($1), prior to the user-specified action, if any.
Can be overwritten to provide deep copy, etc.
first
- value for $1, or null.
- first.
yyExpecting
protected String[] yyExpecting(int state)
computes list of expected tokens on error by tracing the tables.
state
- for which to compute the list.
- list of token names.
yyerror
public void yyerror(String message)
simplified error message.
yyerror
yyerror
public void yyerror(String message,
String[] expected)
(syntax) error message.
Can be overwritten to control message format.
message
- text to be displayed.expected
- vector of acceptable tokens, if available.
yyparse
public Object yyparse(XPathParser.yyInput yyLex,
Object yydebug)
throws java.io.IOException,
XPathParser.yyException
the generated parser, with debugging messages.
Maintains a state and a value stack, currently with fixed maximum size.
yyLex
- scanner.yydebug
- debug message writer implementing yyDebug, or null.
- result of the last reduction, if any.
XPathParser.yyException
- on irrecoverable parse error.