bnfgen

Random text generator that takes context-free grammars from BNF files
IN THIS PACKAGE
Module Bnfgen
module Grammar : sig ... end
type settings = {
dump_stack : bool;
debug : bool;
debug_fun : string -> unit;
max_reductions : int option;
max_nonproductive_reductions : int option;
symbol_separator : string;
}
val default_settings : settings
val grammar_from_string : string -> ( Grammar.grammar, string ) result
val grammar_from_channel : in_channel -> ( Grammar.grammar, string ) result
val grammar_from_file : string -> ( Grammar.grammar, string ) result
val grammar_to_string : Grammar.grammar -> string
val check_grammar : Grammar.grammar -> ( unit, string ) result
val check_grammar_exn : Grammar.grammar -> unit
val generate : ?settings:settings -> ( string -> unit ) -> Grammar.grammar -> string -> ( unit, string ) result
val generate_string : ?settings:settings -> Grammar.grammar -> string -> ( string, string ) result