Package org.javacc.jjdoc
Class XTextGenerator
java.lang.Object
org.javacc.jjdoc.TextGenerator
org.javacc.jjdoc.XTextGenerator
- All Implemented Interfaces:
Generator
Output BNF in HTML 3.2 format.
-
Field Summary
Fields inherited from class org.javacc.jjdoc.TextGenerator
ostr
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Output comment from a production.void
Output document footer.void
Output document header.void
expansionEnd
(Expansion e, boolean first) Output end of Expansion.void
expansionStart
(Expansion e, boolean first) Output start of an Expansion.protected String
void
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
Prints out comments, used for tokens and non-terminals.void
Output string with entity substitution for brackets and ampersands.void
Output end of tokens.void
Output start of tokens.Methods inherited from class org.javacc.jjdoc.TextGenerator
create_output_stream, debug, error, info, warn
-
Constructor Details
-
XTextGenerator
public XTextGenerator()
-
-
Method Details
-
handleTokenProduction
- Specified by:
handleTokenProduction
in interfaceGenerator
- Overrides:
handleTokenProduction
in classTextGenerator
-
get_id
-
text
Description copied from class:TextGenerator
Output string with entity substitution for brackets and ampersands.- Specified by:
text
in interfaceGenerator
- Overrides:
text
in classTextGenerator
- Parameters:
s
- the String to output- See Also:
-
print
Description copied from class:TextGenerator
Output String.- Specified by:
print
in interfaceGenerator
- Overrides:
print
in classTextGenerator
- Parameters:
s
- String to output- See Also:
-
documentStart
public void documentStart()Description copied from class:TextGenerator
Output document header.- Specified by:
documentStart
in interfaceGenerator
- Overrides:
documentStart
in classTextGenerator
- See Also:
-
documentEnd
public void documentEnd()Description copied from class:TextGenerator
Output document footer.- Specified by:
documentEnd
in interfaceGenerator
- Overrides:
documentEnd
in classTextGenerator
- See Also:
-
specialTokens
Prints out comments, used for tokens and non-terminals. Output Special Tokens.- Specified by:
specialTokens
in interfaceGenerator
- Overrides:
specialTokens
in classTextGenerator
- Parameters:
s
- tokens to output- See Also:
-
nonterminalsStart
public void nonterminalsStart()Description copied from class:TextGenerator
Output start of non-terminal.- Specified by:
nonterminalsStart
in interfaceGenerator
- Overrides:
nonterminalsStart
in classTextGenerator
- See Also:
-
nonterminalsEnd
public void nonterminalsEnd()Description copied from class:TextGenerator
Output end of non-terminal.- Specified by:
nonterminalsEnd
in interfaceGenerator
- Overrides:
nonterminalsEnd
in classTextGenerator
- See Also:
-
tokensStart
public void tokensStart()Description copied from class:TextGenerator
Output start of tokens.- Specified by:
tokensStart
in interfaceGenerator
- Overrides:
tokensStart
in classTextGenerator
- See Also:
-
tokensEnd
public void tokensEnd()Description copied from class:TextGenerator
Output end of tokens.- Specified by:
tokensEnd
in interfaceGenerator
- Overrides:
tokensEnd
in classTextGenerator
- See Also:
-
javacode
Description copied from class:TextGenerator
Output comment from a production.- Specified by:
javacode
in interfaceGenerator
- Overrides:
javacode
in classTextGenerator
- Parameters:
jp
- the JavaCodeProduction to output- See Also:
-
cppcode
Description copied from class:TextGenerator
Output comment from a production.- Specified by:
cppcode
in interfaceGenerator
- Overrides:
cppcode
in classTextGenerator
- Parameters:
cp
- the CppCodeProduction to output- See Also:
-
productionStart
Description copied from class:TextGenerator
Output start of a normal production.- Specified by:
productionStart
in interfaceGenerator
- Overrides:
productionStart
in classTextGenerator
- Parameters:
np
- the NormalProduction being output- See Also:
-
productionEnd
Description copied from class:TextGenerator
Output end of a normal production.- Specified by:
productionEnd
in interfaceGenerator
- Overrides:
productionEnd
in classTextGenerator
- Parameters:
np
- the NormalProduction being output- See Also:
-
expansionStart
Description copied from class:TextGenerator
Output start of an Expansion.- Specified by:
expansionStart
in interfaceGenerator
- Overrides:
expansionStart
in classTextGenerator
- Parameters:
e
- Expansion being outputfirst
- whether this is the first expansion- See Also:
-
expansionEnd
Description copied from class:TextGenerator
Output end of Expansion.- Specified by:
expansionEnd
in interfaceGenerator
- Overrides:
expansionEnd
in classTextGenerator
- Parameters:
e
- Expansion being outputfirst
- whether this is the first expansion- See Also:
-
nonTerminalStart
Description copied from class:TextGenerator
Output start of non-terminal.- Specified by:
nonTerminalStart
in interfaceGenerator
- Overrides:
nonTerminalStart
in classTextGenerator
- Parameters:
nt
- the NonTerminal being output- See Also:
-
nonTerminalEnd
Description copied from class:TextGenerator
Output end of non-terminal.- Specified by:
nonTerminalEnd
in interfaceGenerator
- Overrides:
nonTerminalEnd
in classTextGenerator
- Parameters:
nt
- the NonTerminal being output- See Also:
-
reStart
Description copied from class:TextGenerator
Output start of regular expression.- Specified by:
reStart
in interfaceGenerator
- Overrides:
reStart
in classTextGenerator
- Parameters:
r
- the RegularExpression being output- See Also:
-
reEnd
Description copied from class:TextGenerator
Output end of regular expression.- Specified by:
reEnd
in interfaceGenerator
- Overrides:
reEnd
in classTextGenerator
- Parameters:
r
- the RegularExpression being output- See Also:
-