public interface IParserConfiguration
Modifier and Type | Method and Description |
---|---|
void |
configureConsumers()
Initialize the created consumers.
|
KeywordConsumer |
createKeywordConsumer()
The created keyword consumer should not be referenced from the parser configuration.
|
EnumLiteralConsumer |
createLiteralConsumer()
The created literal consumer should not be referenced from the parser configuration.
|
void |
createNonTerminalConsumers()
Create any non-terminal consumers, that are required.
|
void |
createTerminalConsumers()
Create any terminal consumers, that are required.
|
ITerminalConsumer[] |
getInitialHiddenTerminals()
Provides access to the initial (e.g. default) hidden terminal consumers.
|
INonTerminalConsumer |
getRootConsumer()
Return a references to the same and same again root consumer.
|
INonTerminalConsumer getRootConsumer()
void createNonTerminalConsumers()
createNonTerminalConsumers()
for any referenced
other parser configuration in this method.
It is ensured that createTerminalConsumers()
is called before createNonTerminalConsumers()
thus
the terminals can be used to set the hidden tokens per terminal.void createTerminalConsumers()
configureConsumers()
will be called.configureConsumers()
void configureConsumers()
createNonTerminalConsumers()
and createTerminalConsumers()
was called before.KeywordConsumer createKeywordConsumer()
EnumLiteralConsumer createLiteralConsumer()
ITerminalConsumer[] getInitialHiddenTerminals()