Macro mentat_parser_utils::matches_plain_symbol [] [src]

macro_rules! matches_plain_symbol {
    ($name: expr, $input: ident) => { ... };
}

Generate a satisfy_map expression that matches a PlainSymbol value with the given name.

We do this rather than using combine::token so that we don't need to allocate a new String inside a PlainSymbol inside a Value just to match input.