Skip to main content

render_production

Function render_production 

Source
pub fn render_production(
    grammar_json: &str,
    name: &str,
) -> Result<String, GrammarError>
Expand description

Render a complete production line, <display name> ::= <rhs>, as it appears in the appendix (no surrounding fence). This is what {{#grammar <rule>}} embeds.