public class CeParser extends Ceparse
| Modifier and Type | Class and Description |
|---|---|
static interface |
CeParser.Lexer
Communication interface between the scanner and the Bison-generated
parser CeParser.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
bisonSkeleton
Name of the skeleton that generated this parser.
|
static String |
bisonVersion
Version number for the Bison executable that generated this parser.
|
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 |
SCAN_NUMBERCONST
Token number, to be returned by the scanner.
|
static int |
SCAN_STRINGCONST
Token number, to be returned by the scanner.
|
static int |
SCAN_WORD
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.
|
AMPERSAND, COLON, COMMA, DEFAULT, EQUAL, FLOATCONST, FUNCTION, GREATER, GREATER_EQL, INTCONST, LBRACE, LBRACKET, LESS, LESS_EQL, LPAREN, NOT_EQUAL, operatorImage, RBRACE, RBRACKET, REGEXP, RPAREN, SEPARATOR, STRINGCONST, tokenImage, VAR, WORD| Constructor and Description |
|---|
CeParser(BaseTypeFactory factory)
Instantiates the Bison-generated parser.
|
CeParser(CeParser.Lexer yylexer)
Instantiates the Bison-generated parser.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
constraint_expression(CEEvaluator ceEval,
BaseTypeFactory factory,
ClauseFactory clauseFactory,
String constraint,
String url) |
String |
getConstraint() |
int |
getDebugLevel()
Answer the verbosity of the debugging output; 0 means that all kinds of
output from the parser are suppressed.
|
PrintStream |
getDebugStream()
Return the PrintStream on which the debugging output is
printed.
|
String |
getURL() |
boolean |
parse()
Parse input from the scanner that was specified at object construction
time.
|
boolean |
recovering()
Return whether error recovery is being done.
|
void |
setConstraint(String constraint) |
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(PrintStream s)
Set the PrintStream on which the debug output is printed.
|
void |
setURL(String url) |
protected void |
yycdebug(String s) |
protected void |
yyerror(String s) |
constraint_expression, getAST, getASTnodesetpublic static final String bisonVersion
public static final String bisonSkeleton
public boolean errorVerbose
public static final int EOF
public static final int SCAN_WORD
public static final int SCAN_STRINGCONST
public static final int SCAN_NUMBERCONST
public static final int YYACCEPT
public static final int YYABORT
public static final int YYERROR
public static final int YYFAIL
public CeParser(CeParser.Lexer yylexer)
yylexer - The scanner that will supply tokens to the parser.public CeParser(BaseTypeFactory factory)
yylexer - The scanner that will supply tokens to the parser.public final PrintStream getDebugStream()
public final void setDebugStream(PrintStream s)
s - The stream that is used for debugging output.public final int getDebugLevel()
getDebugLevel in class Ceparsepublic final void setDebugLevel(int level)
setDebugLevel in class Ceparselevel - The verbosity level for debugging output.protected final void yyerror(String s)
protected final void yycdebug(String s)
public final boolean recovering()
public boolean parse()
throws ParseException,
ParseException
parse in class CeparseParseExceptionpublic static boolean constraint_expression(CEEvaluator ceEval, BaseTypeFactory factory, ClauseFactory clauseFactory, String constraint, String url) throws DAP2Exception, ParseException
DAP2ExceptionParseExceptionpublic void setConstraint(String constraint)
setConstraint in class Ceparsepublic String getConstraint()
getConstraint in class CeparseCopyright © 1999–2014 OPeNDAP. All rights reserved.