public class Visualizer extends Object
| Modifier and Type | Method and Description |
|---|---|
static <NT extends Enum<NT>> |
showInBrowser(ParseTree<NT> parseTree)
Tries to show a visualization of a parse tree in your web browser.
|
static <NT extends Enum<NT>> |
writeToFile(ParseTree<NT> parseTree,
String filename)
Generate an HTML visualization of the parse tree and write it to a file.
|
public static <NT extends Enum<NT>> void showInBrowser(ParseTree<NT> parseTree)
NT - the enumeration of symbols in the parse tree's grammarparseTree - tree to visualizepublic static <NT extends Enum<NT>> void writeToFile(ParseTree<NT> parseTree, String filename) throws IOException
NT - the enumeration of symbols in the parse tree's grammarparseTree - tree to visualizefilename - output file. Advisable to give it ".html" extension, though not required.IOException - if unable to write the file.