[][src]Macro pahs::sequence

macro_rules! sequence {
    ($pd:expr, $pos:expr, {let $x:pat = $parser:expr; $($rest:tt)*}, $val:expr) => { ... };
    ($pd:expr, $pos:expr, {$parser:expr; $($rest:tt)*}, $val:expr) => { ... };
    ($pd:expr, $pos:expr, {}, $val:expr) => { ... };
}

Runs parsers one after another, optionally saving their results. Then, builds a value based on the saved results.

Short-circuits if any parser fails.

If you need access to the ParseDriver or the Pos when building the final value, see sequence_with! instead.