| Modifier and Type | Class and Description |
|---|---|
static interface |
ExpressionParser.Lexer
Communication interface between the scanner and the Bison-generated
parser ExpressionParser.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
bisonSkeleton
Name of the skeleton that generated this parser.
|
static java.lang.String |
bisonVersion
Version number for the Bison executable that generated this parser.
|
static int |
COMMA
Token number, to be returned by the scanner.
|
static int |
DIV
Token number, to be returned by the scanner.
|
static int |
EOF
Token returned by the scanner to signal the end of its input.
|
boolean |
errorVerbose
True if verbose error messages are enabled.
|
static int |
KEYWORD
Token number, to be returned by the scanner.
|
static int |
LBRACE
Token number, to be returned by the scanner.
|
static int |
LPAREN
Token number, to be returned by the scanner.
|
static int |
LSQR
Token number, to be returned by the scanner.
|
static int |
MINUS
Token number, to be returned by the scanner.
|
static int |
MULT
Token number, to be returned by the scanner.
|
static int |
NEG
Token number, to be returned by the scanner.
|
static int |
NUMBER
Token number, to be returned by the scanner.
|
static int |
PLUS
Token number, to be returned by the scanner.
|
static int |
PROPTAG
Token number, to be returned by the scanner.
|
static int |
RBRACE
Token number, to be returned by the scanner.
|
static int |
RPAREN
Token number, to be returned by the scanner.
|
static int |
RSQR
Token number, to be returned by the scanner.
|
static int |
STRING
Token number, to be returned by the scanner.
|
static int |
YYABORT
Returned by a Bison action in order to stop the parsing process and
return failure (false).
|
static int |
YYACCEPT
Returned by a Bison action in order to stop the parsing process and
return success (true).
|
static int |
YYERROR
Returned by a Bison action in order to start error recovery without
printing an error message.
|
static int |
YYFAIL
Returned by a Bison action in order to print an error message and start
error recovery.
|
| Constructor and Description |
|---|
ExpressionParser(ExpressionParser.Lexer yylexer)
Instantiates the Bison-generated parser.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getDebugLevel()
Answer the verbosity of the debugging output; 0 means that all kinds of
output from the parser are suppressed.
|
java.io.PrintStream |
getDebugStream()
Return the PrintStream on which the debugging output is
printed.
|
PropExpression |
getExpression() |
void |
init(uk.ac.ed.epcc.webapp.AppContext conn,
PropertyFinder finder) |
boolean |
parse()
Parse input from the scanner that was specified at object construction
time.
|
boolean |
recovering()
Return whether error recovery is being done.
|
void |
setDebugLevel(int level)
Set the verbosity of the debugging output; 0 means that all kinds of
output from the parser are suppressed.
|
void |
setDebugStream(java.io.PrintStream s)
Set the PrintStream on which the debug output is printed.
|
protected void |
yycdebug(java.lang.String s) |
protected void |
yyerror(java.lang.String s) |
public static final java.lang.String bisonVersion
public static final java.lang.String bisonSkeleton
public boolean errorVerbose
public static final int EOF
public static final int NUMBER
public static final int MULT
public static final int DIV
public static final int PLUS
public static final int MINUS
public static final int LPAREN
public static final int RPAREN
public static final int LBRACE
public static final int RBRACE
public static final int LSQR
public static final int RSQR
public static final int PROPTAG
public static final int STRING
public static final int COMMA
public static final int KEYWORD
public static final int NEG
public static final int YYACCEPT
public static final int YYABORT
public static final int YYERROR
public static final int YYFAIL
public ExpressionParser(ExpressionParser.Lexer yylexer)
yylexer - The scanner that will supply tokens to the parser.public final java.io.PrintStream getDebugStream()
public final void setDebugStream(java.io.PrintStream s)
s - The stream that is used for debugging output.public final int getDebugLevel()
public final void setDebugLevel(int level)
level - The verbosity level for debugging output.protected final void yyerror(java.lang.String s)
protected final void yycdebug(java.lang.String s)
public final boolean recovering()
public boolean parse()
throws LexException,
java.lang.Exception
LexExceptionjava.lang.Exceptionpublic void init(uk.ac.ed.epcc.webapp.AppContext conn,
PropertyFinder finder)
public PropExpression getExpression()