Compile a Parser from a grammar represented as a string.
the grammar to use
the runtime object of the nonterminals enum. For example, if enum Nonterminals { root, a, b, c }; then Nonterminals must be explicitly passed as this runtime parameter compile(grammar, Nonterminals, Nonterminals.root); (in addition to being implicitly used for the type parameter NT)
the desired root nonterminal in the grammar
a parser for the given grammar that will start parsing at rootNonterminal.
Visualizes a parse tree as a string of HTML that can be displayed in a web browser.
the enumeration of symbols in the parse tree's grammar
tree to visualize
string of HTML that shows a visualization of the parse tree
Visualizes a parse tree using a URL that can be pasted into your web browser.
the enumeration of symbols in the parse tree's grammar
tree to visualize
url that shows a visualization of the parse tree
Generated using TypeDoc
Type of the runtime object for an enumeration.