Macro unrest_tmp_synom::cond_reduce [] [src]

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

Fail to parse if condition is false, otherwise parse the given parser.

This is typically used inside of option! or alt!.

  • Syntax: cond_reduce!(CONDITION, THING)
  • Output: THING