macro-rules-rt 0.1.1

Transforms text or TokenStream using Rust's macro_rules syntax.
Documentation
use macro_rules_rt::Matcher;
use proc_macro2::TokenStream;
use quote::quote;
use syn::parse2;

macro_rules! check_matcher {
    { $($input:tt)* } => {
        check_matcher_raw(quote!($($input)*))
    };
}
fn check_matcher_raw(ts: TokenStream) {
    parse2::<Matcher>(ts.clone()).unwrap_or_else(|_| panic!("{}", ts.to_string()));
}

#[test]
fn matcher_new() {
    check_matcher!(1);
    check_matcher!($t:expr);
}