Package | Description |
---|---|
org.stekikun.dolmen.debug |
This package contains generic utility functions to help debug
Dolmen-generated lexical analyzers and parsers.
|
Modifier and Type | Class and Description |
---|---|
static class |
Derivation.NonTerminal
This represents a node in a
Derivation tree, i.e. the realization
of some non-terminal (symbol ) in the grammar via one
of its production (Derivation.NonTerminal.prod ). |
static class |
Derivation.Terminal
This represents a leaf in a
Derivation tree, i.e. some
terminal identified by its symbol number. |
Modifier and Type | Method and Description |
---|---|
List<Derivation> |
Derivation.NonTerminal.getChildren() |
Modifier and Type | Method and Description |
---|---|
void |
DerivationGenerator.forEachDerivation(String ruleName,
short depth,
Consumer<Derivation> consumer)
Generates all the possible derivations of the non-terminal symbol
in the underlying grammar with the name
ruleName which are
of depth less or equal to depth . |
static Derivation.NonTerminal |
Derivation.production(short rule,
short prod,
List<Derivation> derivations) |