BnfSyntax

A BNF visitor that generates BNF in HTML form.

Methods
String getHtml(Bnf bnf, String syntaxLines)
Get the HTML syntax for the given syntax.
String getHtml(Bnf bnf, String syntaxLines)
Get the HTML syntax for the given syntax.
Parameters:
bnf - the BNF
syntaxLines - the syntax
Returns:
the HTML
String getLink(Bnf bnf, String token)
Get the HTML link to the given token.
String getLink(Bnf bnf, String token)
Get the HTML link to the given token.
Parameters:
bnf - the BNF
token - the token
Returns:
the HTML link
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)