expand boilerplate

This commit is contained in:
Aleksey Kladov 2019-01-31 13:49:57 +03:00
parent 2d88207853
commit 09a8d75351
3 changed files with 10 additions and 1 deletions

View File

@ -13,3 +13,4 @@ macro_rules! impl_froms {
pub mod tt;
pub mod mbe;
mod mbe_parser;
mod mbe_expander;

View File

@ -2,7 +2,10 @@ use smol_str::SmolStr;
use crate::tt::{self, Delimiter};
pub use crate::mbe_parser::parse;
pub use crate::{
mbe_parser::parse,
mbe_expander::exapnd,
};
#[derive(Debug)]
pub struct MacroRules {

View File

@ -0,0 +1,5 @@
use crate::{mbe, tt};
pub fn exapnd(rules: &mbe::MacroRules, input: tt::Subtree) -> Option<tt::Subtree> {
Some(input)
}