public class XTextGenerator extends TextGenerator implements Generator
ostr| Constructor and Description |
|---|
XTextGenerator() |
| Modifier and Type | Method and Description |
|---|---|
void |
cppcode(CppCodeProduction cp)
Output comment from a production.
|
void |
documentEnd()
Output document footer.
|
void |
documentStart()
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 java.lang.String |
get_id(java.lang.String nt) |
void |
handleTokenProduction(TokenProduction tp) |
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 r)
Output end of regular expression.
|
void |
reStart(RegularExpression r)
Output start of regular expression.
|
void |
specialTokens(java.lang.String s)
Prints out comments, used for tokens and non-terminals.
|
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.
|
create_output_stream, debug, error, info, warnpublic void handleTokenProduction(TokenProduction tp)
handleTokenProduction in interface GeneratorhandleTokenProduction in class TextGeneratorprotected java.lang.String get_id(java.lang.String nt)
public void text(java.lang.String s)
TextGeneratortext in interface Generatortext in class TextGenerators - the String to outputGenerator.text(java.lang.String)public void print(java.lang.String s)
TextGeneratorprint in interface Generatorprint in class TextGenerators - String to outputGenerator.print(java.lang.String)public void documentStart()
TextGeneratordocumentStart in interface GeneratordocumentStart in class TextGeneratorGenerator.documentStart()public void documentEnd()
TextGeneratordocumentEnd in interface GeneratordocumentEnd in class TextGeneratorGenerator.documentEnd()public void specialTokens(java.lang.String s)
specialTokens in interface GeneratorspecialTokens in class TextGenerators - tokens to outputTextGenerator.specialTokens(java.lang.String)public void nonterminalsStart()
TextGeneratornonterminalsStart in interface GeneratornonterminalsStart in class TextGeneratorGenerator.nonterminalsStart()public void nonterminalsEnd()
TextGeneratornonterminalsEnd in interface GeneratornonterminalsEnd in class TextGeneratorGenerator.nonterminalsEnd()public void tokensStart()
TextGeneratortokensStart in interface GeneratortokensStart in class TextGeneratorGenerator.tokensStart()public void tokensEnd()
TextGeneratortokensEnd in interface GeneratortokensEnd in class TextGeneratorGenerator.tokensEnd()public void javacode(JavaCodeProduction jp)
TextGeneratorjavacode in interface Generatorjavacode in class TextGeneratorjp - the JavaCodeProduction to outputGenerator.javacode(org.javacc.parser.JavaCodeProduction)public void cppcode(CppCodeProduction cp)
TextGeneratorcppcode in interface Generatorcppcode in class TextGeneratorcp - the CppCodeProduction to outputGenerator.cppcode(org.javacc.parser.CppCodeProduction)public void productionStart(NormalProduction np)
TextGeneratorproductionStart in interface GeneratorproductionStart in class TextGeneratornp - the NormalProduction being outputGenerator.productionStart(org.javacc.parser.NormalProduction)public void productionEnd(NormalProduction np)
TextGeneratorproductionEnd in interface GeneratorproductionEnd in class TextGeneratornp - the NormalProduction being outputGenerator.productionEnd(org.javacc.parser.NormalProduction)public void expansionStart(Expansion e, boolean first)
TextGeneratorexpansionStart in interface GeneratorexpansionStart in class TextGeneratore - Expansion being outputfirst - whether this is the first expansionGenerator.expansionStart(org.javacc.parser.Expansion, boolean)public void expansionEnd(Expansion e, boolean first)
TextGeneratorexpansionEnd in interface GeneratorexpansionEnd in class TextGeneratore - Expansion being outputfirst - whether this is the first expansionGenerator.expansionEnd(org.javacc.parser.Expansion, boolean)public void nonTerminalStart(NonTerminal nt)
TextGeneratornonTerminalStart in interface GeneratornonTerminalStart in class TextGeneratornt - the NonTerminal being outputGenerator.nonTerminalStart(org.javacc.parser.NonTerminal)public void nonTerminalEnd(NonTerminal nt)
TextGeneratornonTerminalEnd in interface GeneratornonTerminalEnd in class TextGeneratornt - the NonTerminal being outputGenerator.nonTerminalEnd(org.javacc.parser.NonTerminal)public void reStart(RegularExpression r)
TextGeneratorreStart in interface GeneratorreStart in class TextGeneratorr - the RegularExpression being outputGenerator.reStart(org.javacc.parser.RegularExpression)public void reEnd(RegularExpression r)
TextGeneratorreEnd in interface GeneratorreEnd in class TextGeneratorr - the RegularExpression being outputGenerator.reEnd(org.javacc.parser.RegularExpression)