glc
This crate's aim is to generate random expressions based on a context-free grammar.
The acronym stands for "gramática livre de contexto" (context-free grammar).
How to Use
use ;
let grammar = Grammar
// generate a random string with this grammar
println!;
A simplified version of the macro above is available:
// You may need to tune this parameter depending on how large is your grammar,
// since the `grammar` macro is recursive.
use grammar;
let _grammar = grammar!;
For a real-life example take a look at mexe.