seq

Macro 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', and then 'c'
let ab_parser = rp::seq!('a', 'b', 'c'); // IntoParser for char