BnfRailroad

A BNF visitor that generates HTML railroad diagrams.

Methods
static String getHtmlText(int type)
Get the HTML text for the given fixed rule.
static String getHtmlText(int type)
Get the HTML text for the given fixed rule.
Parameters:
type - the fixed rule type
Returns:
the HTML text
String getHtml(Bnf bnf, String syntaxLines)
Generate the HTML for the given syntax.
String getHtml(Bnf bnf, String syntaxLines)
Generate the HTML for the given syntax.
Parameters:
bnf - the BNF parser
syntaxLines - the syntax
Returns:
the HTML
void visitRuleElement(boolean keyword, String name, Rule link)
void visitRuleElement(boolean keyword, String name, Rule link)
void visitRuleFixed(int type)
void visitRuleFixed(int type)
void visitRuleList(boolean or, ArrayList list)
void visitRuleList(boolean or, ArrayList list)
void visitRuleOptional(Rule rule)
void visitRuleOptional(Rule rule)
void visitRuleRepeat(boolean comma, Rule rule)
void visitRuleRepeat(boolean comma, Rule rule)