aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_macros/src/lib.rs
blob: 9485b1c3db6f8ff1e41fb5a3fbab87c42431d466 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
macro_rules! impl_froms {
    ($e:ident: $($v:ident), *) => {
        $(
            impl From<$v> for $e {
                fn from(it: $v) -> $e {
                    $e::$v(it)
                }
            }
        )*
    }
}

pub mod tt;
pub mod mbe;
mod mbe_parser;
mod mbe_expander;