Some rearranging in perparation for MBE-style TT transcription.

This commit is contained in:
Paul Stansifer
2012-06-27 15:29:35 -07:00
parent 74c2266a06
commit 39590d81f0
8 changed files with 198 additions and 123 deletions

View File

@@ -374,12 +374,17 @@ enum blk_sort {
*/
#[auto_serialize]
#[doc="For macro invocations; parsing is delegated to the macro"]
enum token_tree {
/* for macro invocations; parsing is the macro's job */
tt_delim(~[token_tree]),
tt_flat(span, token::token)
tt_flat(span, token::token),
/* These only make sense for right-hand-sides of MBE macros*/
tt_dotdotdot(~[token_tree]),
tt_interpolate(ident)
}
#[auto_serialize]
type matcher = spanned<matcher_>;