Macro rusty_parser::or
source · macro_rules! or { ($single:expr) => { ... }; ($first:expr, $($rest:expr),+) => { ... }; }
Expand description
A macro for creating or combination of parsers.
§Example
use rusty_parser as rp;
use rp::IntoParser;
// 'a' or 'b' or 'c'
let ab_parser = rp::or!('a', 'b', 'c'); // IntoParser for char