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