Module regex

Module regex 

Source

Structs§

ConvertOutput
Result of a successful conversion.
RegexConverter
The regex→EBNF converter. Construct with RegexConverter::new then call RegexConverter::convert.
RegexError
Error raised while converting a regex to EBNF.

Enums§

RegexToGrammarError
Error from regex_to_grammar: either the regex itself was malformed, or the EBNF it lowered to failed to parse.

Functions§

regex_to_ebnf
Convert a regex string to an EBNF grammar string.
regex_to_grammar
Convert a regex string straight to a parsed GrammarData AST.