Package | Description |
---|---|
net.percederberg.grammatica.parser |
Modifier and Type | Method and Description |
---|---|
ParseException |
ParserLogException.getError(int index)
Returns a specific error from the log.
|
Modifier and Type | Method and Description |
---|---|
void |
ParserLogException.addError(ParseException e)
Adds a parse error to the log.
|
Modifier and Type | Method and Description |
---|---|
protected void |
Analyzer.child(Production node,
Node child)
Called when adding a child to a parse tree node.
|
protected void |
Analyzer.enter(Node node)
Called when entering a parse tree node.
|
protected Node |
Analyzer.exit(Node node)
Called when exiting a parse tree node.
|
protected Node |
Analyzer.getChildAt(Node node,
int pos)
Returns a child at the specified position.
|
protected Node |
Analyzer.getChildWithId(Node node,
int id)
Returns the first child with the specified id.
|
protected int |
Analyzer.getIntValue(Node node,
int pos)
Returns the node integer value at the specified position.
|
protected java.lang.String |
Analyzer.getStringValue(Node node,
int pos)
Returns the node string value at the specified position.
|
protected java.lang.Object |
Analyzer.getValue(Node node,
int pos)
Returns the node value at the specified position.
|
Token |
Tokenizer.next()
Finds the next token on the stream.
|
protected Node |
RecursiveDescentParser.parseStart()
Parses the input stream and creates a parse tree.
|
protected abstract Node |
Parser.parseStart()
Parses the token stream and returns a parse tree.
|