Macro nom::exact

source ·
macro_rules! exact {
    ($i:expr, $submac:ident!( $($args:tt)* )) => { ... };
    ($i:expr, $f:expr) => { ... };
}
Expand description

exact!() will fail if the child parser does not consume the whole data

TODO: example