macro_rules! or {
    { } => { ... };
    { $input:expr } => { ... };
    { $input:expr ; } => { ... };
    { $input:expr ; $a:expr $(,)? } => { ... };
    { $input:expr ; $a:expr, $($b: expr),+ $(,)? } => { ... };
}
Expand description

Pass when any subparser passes

Example

let code = "b".span();
let r = or!(code ; one('a'), one('b'), one('c'));
assert_eq!(r, Some(0..1));