Macro synom::named [] [src]

macro_rules! named {
    ($name:ident -> $o:ty, $submac:ident!( $($args:tt)* )) => { ... };
    (pub $name:ident -> $o:ty, $submac:ident!( $($args:tt)* )) => { ... };
}

Define a function from a parser combination.

// One or more Rust types separated by commas.
named!(pub comma_separated_types -> Vec<Ty>,
    separated_nonempty_list!(punct!(","), ty)
);