Package org.javacc.jjdoc
Class BNFGenerator
java.lang.Object
org.javacc.jjdoc.BNFGenerator
- All Implemented Interfaces:
Generator
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidOutput comment from a production.protected PrintWritervoidLog 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.protected StringvoidvoidLog 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.
-
Field Details
-
ostr
-
-
Constructor Details
-
BNFGenerator
public BNFGenerator()
-
-
Method Details
-
get_id
-
create_output_stream
-
text
Description copied from interface:GeneratorOutput string with entity substitution for brackets and ampersands. -
print
Description copied from interface:GeneratorOutput String. -
documentStart
public void documentStart()Description copied from interface:GeneratorOutput document header.- Specified by:
documentStartin interfaceGenerator
-
documentEnd
public void documentEnd()Description copied from interface:GeneratorOutput document footer.- Specified by:
documentEndin interfaceGenerator
-
specialTokens
Description copied from interface:GeneratorOutput Special Tokens.- Specified by:
specialTokensin interfaceGenerator- Parameters:
s- tokens to output
-
nonterminalsStart
public void nonterminalsStart()Description copied from interface:GeneratorOutput start of non-terminal.- Specified by:
nonterminalsStartin interfaceGenerator
-
nonterminalsEnd
public void nonterminalsEnd()Description copied from interface:GeneratorOutput end of non-terminal.- Specified by:
nonterminalsEndin interfaceGenerator
-
tokensStart
public void tokensStart()Description copied from interface:GeneratorOutput start of tokens.- Specified by:
tokensStartin interfaceGenerator
-
tokensEnd
public void tokensEnd()Description copied from interface:GeneratorOutput end of tokens. -
javacode
Description copied from interface:GeneratorOutput comment from a production. -
cppcode
Description copied from interface:GeneratorOutput comment from a production. -
expansionEnd
Description copied from interface:GeneratorOutput end of Expansion.- Specified by:
expansionEndin interfaceGenerator- Parameters:
e- Expansion being outputfirst- whether this is the first expansion
-
nonTerminalStart
Description copied from interface:GeneratorOutput start of non-terminal.- Specified by:
nonTerminalStartin interfaceGenerator- Parameters:
nt- the NonTerminal being output
-
nonTerminalEnd
Description copied from interface:GeneratorOutput end of non-terminal.- Specified by:
nonTerminalEndin interfaceGenerator- Parameters:
nt- the NonTerminal being output
-
productionStart
Description copied from interface:GeneratorOutput start of a normal production.- Specified by:
productionStartin interfaceGenerator- Parameters:
np- the NormalProduction being output
-
productionEnd
Description copied from interface:GeneratorOutput end of a normal production.- Specified by:
productionEndin interfaceGenerator- Parameters:
np- the NormalProduction being output
-
expansionStart
Description copied from interface:GeneratorOutput start of an Expansion.- Specified by:
expansionStartin interfaceGenerator- Parameters:
e- Expansion being outputfirst- whether this is the first expansion
-
reStart
Description copied from interface:GeneratorOutput start of regular expression. -
reEnd
Description copied from interface:GeneratorOutput end of regular expression. -
debug
Description copied from interface:GeneratorLog debug messages. -
info
Description copied from interface:GeneratorLog informational messages. -
warn
Description copied from interface:GeneratorLog warning messages. -
error
Description copied from interface:GeneratorLog error messages. -
handleTokenProduction
- Specified by:
handleTokenProductionin interfaceGenerator
-