public class CEParser extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
CEParserBody.Lexer
Communication interface between the scanner and the Bison-generated
parser CEParserBody.
|
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.
|
protected CEAST |
constraint |
protected Map<String,Slice> |
dimdefs |
protected DapDataset |
template |
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.
|
Constructor and Description |
---|
CEParser(DapDataset template) |
Modifier and Type | Method and Description |
---|---|
CEAST |
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.
|
boolean |
getErrorVerbose()
Return whether verbose error messages are enabled.
|
boolean |
parse()
Parse input from the scanner that was specified at object construction
time.
|
boolean |
parse(String document) |
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(PrintStream s)
Set the PrintStream on which the debug output is printed.
|
void |
setErrorVerbose(boolean verbose)
Set the verbosity of error messages.
|
protected void |
yycdebug(String s) |
void |
yyerror(String msg)
Print an error message via the lexer.
|
protected DapDataset template
protected CEAST constraint
public static final String bisonVersion
public static final String bisonSkeleton
public static final int YYACCEPT
public static final int YYABORT
public static final int YYERROR
public CEParser(DapDataset template) throws ParseException
ParseException
public CEAST getConstraint()
public boolean parse(String document) throws ParseException
ParseException
public final boolean getErrorVerbose()
public final void setErrorVerbose(boolean verbose)
verbose
- True to request verbose error messages.public final PrintStream getDebugStream()
public final void setDebugStream(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.public final void yyerror(String msg)
msg
- The error message.protected final void yycdebug(String s)
public final boolean recovering()
public boolean parse() throws ParseException, ParseException
ParseException
Copyright © 1999–2017 UCAR/Unidata. All rights reserved.