parsing for the macro system
This commit is contained in:
parent
650dfe58a3
commit
4f104954a6
8 changed files with 370 additions and 29 deletions
|
|
@ -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_>;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue