macro_rules! named {
($name:ident -> $o:ty, $submac:ident!( $($args:tt)* )) => { ... };
(pub $name:ident -> $o:ty, $submac:ident!( $($args:tt)* )) => { ... };
}Expand description
Define a function from a parser combination.
- Syntax:
named!(NAME -> TYPE, PARSER)ornamed!(pub NAME -> TYPE, PARSER)
// One or more Rust types separated by commas.
named!(pub comma_separated_types -> Vec<Ty>,
separated_nonempty_list!(punct!(","), ty)
);