public abstract class DynamicParser extends GenericParser
ParserGenerator,
GenericParser,
StaticParser| Modifier and Type | Field and Description |
|---|---|
java.util.AbstractList |
operators
The set of parser operators.
|
COMPACT_TREE, E_O_I, ERROR_SYMBOL, FULL_TREE, NO_TREE, parseTreeType, XML_TREE| Constructor and Description |
|---|
DynamicParser() |
| Modifier and Type | Method and Description |
|---|---|
void |
cut()
Erases the latest backtracking information.
|
void |
cutAll()
Erases all backtracking information.
|
ParseNode |
error()
Returns an error token.
|
static ParseNode |
literalToken(java.lang.String symbol)
Overrides the implementation in GenericParser so that it
does not return an error token if the symbol is not a known
terminal symbol and the parser admits operators, in which case it
is returned as a literal token anyway that will be resolved as a
potential dynamic operator by the readToken method.
|
java.util.AbstractList |
operators(java.lang.String name)
Returns the set of operators with this name; or null in there
are none.
|
java.util.AbstractList |
operatorsInCategory(java.lang.String category)
Returns the set of operators in this category; or null in there
are none.
|
void |
resetParser() |
void |
showOperators() |
abort, currentNode, eoi, error, error, errorManager, fatalError, fatalError, fileName, getTokenizer, initialize, locate, makeXmlDocument, numberToken, numberToken, parse, parse, parse, parse, parse, parse, setErrorManager, setSwitchToken, setTokenizer, setTrace, setTreeType, setTreeType, symbolToken, syntaxError, syntaxError, toggleTrace, trace, traceAction, tracingIsOn, writeXml, xmlForm, xmlWriterpublic final java.util.AbstractList operators(java.lang.String name)
public final java.util.AbstractList operatorsInCategory(java.lang.String category)
public void resetParser()
resetParser in class GenericParserpublic ParseNode error()
error in class GenericParserpublic static final ParseNode literalToken(java.lang.String symbol)
public final void cutAll()
public final void cut()
public final void showOperators()