Function generate_diagram

Source
pub fn generate_diagram(
    input: &str,
) -> Result<(Diagram<VerticalGrid<Box<dyn Node>>>, Vec<String>), Error<Rule>>
Expand description

Creates a railroad (aka syntax) diagram from the grammar contained in the input string. It also returns a list of unsupported warnings for the pest rules that aren’t supported.