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