Skip to main content

GrammarFromStr

Derive Macro GrammarFromStr 

Source
#[derive(GrammarFromStr)]
Expand description

Grammar via GrammarFrom + FromStr on the matched text.

Parses GrammarFrom::Source, then calls Self::from_str on the exact substring it matched. Err backtracks the parse as if nothing had matched, and is traced under the trace/trace_pos features.