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 TypeMethodDescriptionvoid
Output comment from a production.protected PrintWriter
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.protected String
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.
-
Field Details
-
ostr
-
-
Constructor Details
-
BNFGenerator
public BNFGenerator()
-
-
Method Details
-
get_id
-
create_output_stream
-
text
Description copied from interface:Generator
Output string with entity substitution for brackets and ampersands. -
print
Description copied from interface:Generator
Output String. -
documentStart
public void documentStart()Description copied from interface:Generator
Output document header.- Specified by:
documentStart
in interfaceGenerator
-
documentEnd
public void documentEnd()Description copied from interface:Generator
Output document footer.- Specified by:
documentEnd
in interfaceGenerator
-
specialTokens
Description copied from interface:Generator
Output Special Tokens.- Specified by:
specialTokens
in interfaceGenerator
- Parameters:
s
- tokens to output
-
nonterminalsStart
public void nonterminalsStart()Description copied from interface:Generator
Output start of non-terminal.- Specified by:
nonterminalsStart
in interfaceGenerator
-
nonterminalsEnd
public void nonterminalsEnd()Description copied from interface:Generator
Output end of non-terminal.- Specified by:
nonterminalsEnd
in interfaceGenerator
-
tokensStart
public void tokensStart()Description copied from interface:Generator
Output start of tokens.- Specified by:
tokensStart
in interfaceGenerator
-
tokensEnd
public void tokensEnd()Description copied from interface:Generator
Output end of tokens. -
javacode
Description copied from interface:Generator
Output comment from a production. -
cppcode
Description copied from interface:Generator
Output comment from a production. -
expansionEnd
Description copied from interface:Generator
Output end of Expansion.- Specified by:
expansionEnd
in interfaceGenerator
- Parameters:
e
- Expansion being outputfirst
- whether this is the first expansion
-
nonTerminalStart
Description copied from interface:Generator
Output start of non-terminal.- Specified by:
nonTerminalStart
in interfaceGenerator
- Parameters:
nt
- the NonTerminal being output
-
nonTerminalEnd
Description copied from interface:Generator
Output end of non-terminal.- Specified by:
nonTerminalEnd
in interfaceGenerator
- Parameters:
nt
- the NonTerminal being output
-
productionStart
Description copied from interface:Generator
Output start of a normal production.- Specified by:
productionStart
in interfaceGenerator
- Parameters:
np
- the NormalProduction being output
-
productionEnd
Description copied from interface:Generator
Output end of a normal production.- Specified by:
productionEnd
in interfaceGenerator
- Parameters:
np
- the NormalProduction being output
-
expansionStart
Description copied from interface:Generator
Output start of an Expansion.- Specified by:
expansionStart
in interfaceGenerator
- Parameters:
e
- Expansion being outputfirst
- whether this is the first expansion
-
reStart
Description copied from interface:Generator
Output start of regular expression. -
reEnd
Description copied from interface:Generator
Output end of regular expression. -
debug
Description copied from interface:Generator
Log debug messages. -
info
Description copied from interface:Generator
Log informational messages. -
warn
Description copied from interface:Generator
Log warning messages. -
error
Description copied from interface:Generator
Log error messages. -
handleTokenProduction
- Specified by:
handleTokenProduction
in interfaceGenerator
-