[][src]Crate bulk_examples_generator

Usage

bulk_examples_generator come in two flavors: binary or crate (library)

For a basic/medium/advanced usage of the binary/library, please see the Readme.

Frequently Asked Questions? (FAQ)

See the Readme.

I just want to see how this code works

Please see first the Readme. Well if you really want to see the code, go ahead

Re-exports

pub use pest;
pub use pest_meta;

Modules

config

Functions

compile_grammar

Compile a grammar string and creates a HashMap with rules found as keys and their components (AST) as entries

parallel_generate_examples

Generate a number of examples with the grammar,start rule and config provided

parallel_generate_save_examples

Generate and save a number of examples with the grammar,start rule and config provided

parse_input

Parse input with the provided grammar and start rule returns Ok if the parse is sucessfull, Err otherwise