| |
|
| xtc.parser.PrettyPrinter xtc.parser.HtmlPrinter
HtmlPrinter | public class HtmlPrinter extends PrettyPrinter (Code) | | A grammar pretty printer producing HTML.
author: Robert Grimm version: $Revision: 1.27 $ |
Field Summary | |
final protected Analyzer | analyzer The analyzer utility. | protected boolean | isGrammar The flag for whether we are processing a grammar or single module. | protected int | pNumber The number of the current production. | final protected Runtime | runtime The runtime. |
isGrammar | protected boolean isGrammar(Code) | | The flag for whether we are processing a grammar or single module.
|
pNumber | protected int pNumber(Code) | | The number of the current production.
|
HtmlPrinter | public HtmlPrinter(Runtime runtime, Analyzer analyzer, AST ast, boolean verbose)(Code) | | Create a new HTML printer.
Parameters: runtime - The runtime. Parameters: analyzer - The analyzer. Parameters: ast - The type operations. Parameters: verbose - The verbose flag. |
open | protected void open(String name) throws IOException(Code) | | Create a printer for the specified file. This method initializes
this class'
HtmlPrinter.printer printer to a printer writing to the
file with the specified name in the runtime's output directory.
Parameters: name - The file name. |
print | protected void print(Module m)(Code) | | Actually print the specified module.
Parameters: m - The module to print. |
print | protected void print(ModuleName name, boolean resolved)(Code) | | Print a linked version of the specified module name.
Parameters: name - The module name. Parameters: resolved - The flag for whether the name can be resolved. |
printDocumentation | protected void printDocumentation(Module m)(Code) | | |
regexEscapes | protected int regexEscapes()(Code) | | |
stringEscapes | protected int stringEscapes()(Code) | | |
|
|
|