comments in ast.rs

This commit is contained in:
John Clements 2013-06-06 11:14:29 -07:00
parent 6c6d053b01
commit d8276e75f0

View file

@ -568,6 +568,7 @@ pub enum token_tree {
// a delimited sequence (the delimiters appear as the first
// and last elements of the vector)
tt_delim(@mut ~[token_tree]),
// These only make sense for right-hand-sides of MBE macros:
// a kleene-style repetition sequence with a span, a tt_forest,
@ -646,6 +647,10 @@ pub enum matcher_ {
pub type mac = Spanned<mac_>;
// represents a macro invocation. The Path indicates which macro
// is being invoked, and the vector of token-trees contains the source
// of the macro invocation.
// There's only one flavor, now, so this could presumably be simplified.
#[deriving(Clone, Eq, Encodable, Decodable, IterBytes)]
pub enum mac_ {
mac_invoc_tt(Path,~[token_tree]), // new macro-invocation