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 TypeMethodDescriptionvoid
Output comment from a production.void
Log debug messages.void
Output document footer.void
Output document header.void
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
void
Log informational messages.void
Output comment from a production.void
Output end of non-terminal.void
Output end of non-terminal.void
Output start of non-terminal.void
Output start of non-terminal.void
Output String.void
Output end of a normal production.void
Output start of a normal production.void
Output end of regular expression.void
Output start of regular expression.void
Output Special Tokens.void
Output string with entity substitution for brackets and ampersands.void
Output end of tokens.void
Output start of tokens.void
Log 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
-