parsing for the macro system

This commit is contained in:
Paul Stansifer 2012-06-12 10:59:50 -07:00
parent 650dfe58a3
commit 4f104954a6
8 changed files with 370 additions and 29 deletions

View file

@ -377,6 +377,17 @@ enum token_tree {
tt_flat(span, token::token)
}
#[auto_serialize]
type matcher = spanned<matcher_>;
#[auto_serialize]
enum matcher_ {
mtc_tok(token::token),
/* body, separator, zero ok? : */
mtc_rep([matcher], option<token::token>, bool),
mtc_bb(ident, ident, uint)
}
#[auto_serialize]
type mac = spanned<mac_>;