BNFGenerator
, HTMLGenerator
, TextGenerator
, XTextGenerator
public interface Generator
Modifier and Type | Method | Description |
---|---|---|
void |
cppcode(CppCodeProduction cp) |
Output comment from a production.
|
void |
debug(java.lang.String message) |
Log debug messages.
|
void |
documentEnd() |
Output document footer.
|
void |
documentStart() |
Output document header.
|
void |
error(java.lang.String message) |
Log error messages.
|
void |
expansionEnd(Expansion e,
boolean first) |
Output end of Expansion.
|
void |
expansionStart(Expansion e,
boolean first) |
Output start of an Expansion.
|
void |
handleTokenProduction(TokenProduction tp) |
|
void |
info(java.lang.String message) |
Log informational messages.
|
void |
javacode(JavaCodeProduction jp) |
Output comment from a production.
|
void |
nonTerminalEnd(NonTerminal nt) |
Output end of non-terminal.
|
void |
nonterminalsEnd() |
Output end of non-terminal.
|
void |
nonterminalsStart() |
Output start of non-terminal.
|
void |
nonTerminalStart(NonTerminal nt) |
Output start of non-terminal.
|
void |
print(java.lang.String s) |
Output String.
|
void |
productionEnd(NormalProduction np) |
Output end of a normal production.
|
void |
productionStart(NormalProduction np) |
Output start of a normal production.
|
void |
reEnd(RegularExpression re) |
Output end of regular expression.
|
void |
reStart(RegularExpression re) |
Output start of regular expression.
|
void |
specialTokens(java.lang.String s) |
Output Special Tokens.
|
void |
text(java.lang.String s) |
Output string with entity substitution for brackets and ampersands.
|
void |
tokensEnd() |
Output end of tokens.
|
void |
tokensStart() |
Output start of tokens.
|
void |
warn(java.lang.String message) |
Log warning messages.
|
void text(java.lang.String s)
s
- the String to outputvoid print(java.lang.String s)
s
- String to outputvoid documentStart()
void documentEnd()
void specialTokens(java.lang.String s)
s
- tokens to outputvoid handleTokenProduction(TokenProduction tp)
void nonterminalsStart()
void nonterminalsEnd()
void tokensStart()
void tokensEnd()
void javacode(JavaCodeProduction jp)
jp
- the JavaCodeProduction to outputvoid cppcode(CppCodeProduction cp)
cp
- the CppCodeProduction to outputvoid productionStart(NormalProduction np)
np
- the NormalProduction being outputvoid productionEnd(NormalProduction np)
np
- the NormalProduction being outputvoid expansionStart(Expansion e, boolean first)
e
- Expansion being outputfirst
- whether this is the first expansionvoid expansionEnd(Expansion e, boolean first)
e
- Expansion being outputfirst
- whether this is the first expansionvoid nonTerminalStart(NonTerminal nt)
nt
- the NonTerminal being outputvoid nonTerminalEnd(NonTerminal nt)
nt
- the NonTerminal being outputvoid reStart(RegularExpression re)
re
- the RegularExpression being outputvoid reEnd(RegularExpression re)
re
- the RegularExpression being outputvoid debug(java.lang.String message)
message
- the string to logvoid info(java.lang.String message)
message
- the string to logvoid warn(java.lang.String message)
message
- the string to logvoid error(java.lang.String message)
message
- the string to log