Macro lip::one_of

source ·
macro_rules! one_of {
    ($single_parser:expr) => { ... };
    ($first_parser:expr, $($parsers:expr),+) => { ... };
}
Expand description

Parse one of many things.

Parser goes through each one option in order until one succeeds. If none succeeds, return error.