Package org.javacc.jjdoc
Interface Generator
- All Known Implementing Classes:
BNFGenerator,HTMLGenerator,TextGenerator,XTextGenerator
public interface Generator
A report generator for a grammar.
- Since:
- 11-Dec-2006
- Author:
- timp
-
Method Summary
Modifier and TypeMethodDescriptionvoidOutput comment from a production.voidLog debug messages.voidOutput document footer.voidOutput document header.voidLog error messages.voidexpansionEnd(Expansion e, boolean first) Output end of Expansion.voidexpansionStart(Expansion e, boolean first) Output start of an Expansion.voidvoidLog informational messages.voidOutput comment from a production.voidOutput end of non-terminal.voidOutput end of non-terminal.voidOutput start of non-terminal.voidOutput start of non-terminal.voidOutput String.voidOutput end of a normal production.voidOutput start of a normal production.voidOutput end of regular expression.voidOutput start of regular expression.voidOutput Special Tokens.voidOutput string with entity substitution for brackets and ampersands.voidOutput end of tokens.voidOutput start of tokens.voidLog warning messages.
-
Method Details
-
text
Output string with entity substitution for brackets and ampersands.- Parameters:
s- the String to output
-
print
Output String.- Parameters:
s- String to output
-
documentStart
void documentStart()Output document header. -
documentEnd
void documentEnd()Output document footer. -
specialTokens
Output Special Tokens.- Parameters:
s- tokens to output
-
handleTokenProduction
-
nonterminalsStart
void nonterminalsStart()Output start of non-terminal. -
nonterminalsEnd
void nonterminalsEnd()Output end of non-terminal. -
tokensStart
void tokensStart()Output start of tokens. -
tokensEnd
void tokensEnd()Output end of tokens. -
javacode
Output comment from a production.- Parameters:
jp- the JavaCodeProduction to output
-
cppcode
Output comment from a production.- Parameters:
cp- the CppCodeProduction to output
-
productionStart
Output start of a normal production.- Parameters:
np- the NormalProduction being output
-
productionEnd
Output end of a normal production.- Parameters:
np- the NormalProduction being output
-
expansionStart
Output start of an Expansion.- Parameters:
e- Expansion being outputfirst- whether this is the first expansion
-
expansionEnd
Output end of Expansion.- Parameters:
e- Expansion being outputfirst- whether this is the first expansion
-
nonTerminalStart
Output start of non-terminal.- Parameters:
nt- the NonTerminal being output
-
nonTerminalEnd
Output end of non-terminal.- Parameters:
nt- the NonTerminal being output
-
reStart
Output start of regular expression.- Parameters:
re- the RegularExpression being output
-
reEnd
Output end of regular expression.- Parameters:
re- the RegularExpression being output
-
debug
Log debug messages.- Parameters:
message- the string to log
-
info
Log informational messages.- Parameters:
message- the string to log
-
warn
Log warning messages.- Parameters:
message- the string to log
-
error
Log error messages.- Parameters:
message- the string to log
-