public class CEParserImpl
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
dap4.core.ce.parser.CEBisonParser.Context
Information needed to get the list of expected tokens and to forge
a syntax error diagnostic.
|
static interface |
dap4.core.ce.parser.CEBisonParser.Lexer
Communication interface between the scanner and the Bison-generated
parser CEBisonParser.
|
static class |
dap4.core.ce.parser.CEBisonParser.SymbolKind |
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.
|
protected CEAST |
constraint |
protected java.util.Map<java.lang.String,Slice> |
dimdefs |
protected static int |
globaldebuglevel |
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 |
---|
CEParserImpl(DapDataset template) |
Modifier and Type | Method and Description |
---|---|
CEAST |
getCEAST() |
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()
The PrintStream on which the debugging output is printed.
|
boolean |
getErrorVerbose()
Whether verbose error messages are enabled.
|
int |
getNumberOfErrors()
The number of syntax errors so far.
|
boolean |
parse()
Parse input from the scanner that was specified at object construction
time.
|
boolean |
parse(java.lang.String document) |
boolean |
recovering()
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.
|
void |
setErrorVerbose(boolean verbose)
Set the verbosity of error messages.
|
static void |
setGlobalDebugLevel(int level) |
protected void |
yycdebug(java.lang.String s) |
protected void |
yycdebugNnl(java.lang.String s) |
void |
yyerror(java.lang.String msg)
Print an error message via the lexer.
|
protected static int globaldebuglevel
protected DapDataset template
protected java.util.Map<java.lang.String,Slice> dimdefs
protected CEAST constraint
public static final java.lang.String bisonVersion
public static final java.lang.String bisonSkeleton
public static final int YYACCEPT
public static final int YYABORT
public static final int YYERROR
public CEParserImpl(DapDataset template) throws ParseException
ParseException
public static void setGlobalDebugLevel(int level)
public CEAST getCEAST()
public boolean parse(java.lang.String document) throws ParseException
ParseException
public final boolean getErrorVerbose()
public final void setErrorVerbose(boolean verbose)
verbose
- True to request verbose error messages.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.public final int getNumberOfErrors()
public final void yyerror(java.lang.String msg)
msg
- The error message.protected final void yycdebugNnl(java.lang.String s)
protected final void yycdebug(java.lang.String s)
public final boolean recovering()
public boolean parse() throws ParseException, ParseException
ParseException