Macro unrest_tmp_synom::many0 [] [src]

macro_rules! many0 {
    ($i:expr, $submac:ident!( $($args:tt)* )) => { ... };
    ($i:expr, $f:expr) => { ... };
}

Parse zero or more values using the given parser.

  • Syntax: many0!(THING)
  • Output: Vec<THING>

You may also be looking for:

  • call!(Delimited::parse_separated) - zero or more values with separator
  • call!(Delimited::parse_separated_nonempty) - one or more values
  • call!(Delimited::parse_terminated) - zero or more, allows trailing separator
extern crate syn;
#[macro_use] extern crate synom;

use syn::Item;

named!(items -> Vec<Item>, many0!(syn!(Item)));