macro_rules! invalid {
    ($printer:ident) => { ... };
}
Expand description

Mark the parser as errored (with ParseError::Invalid), print the appropriate message (see ParseError::message) and return early.