diff options
| author | John Clements <clements@racket-lang.org> | 2013-06-06 11:14:29 -0700 |
|---|---|---|
| committer | John Clements <clements@racket-lang.org> | 2013-09-06 13:35:07 -0700 |
| commit | d8276e75f048955b496b1ef9ca1b3e11ca5bc306 (patch) | |
| tree | 7e6745173846c1c51998c633f6ba9aef2cba4086 /src/libsyntax | |
| parent | 6c6d053b0177ed91071128aa5a2f57539e746987 (diff) | |
| download | rust-d8276e75f048955b496b1ef9ca1b3e11ca5bc306.tar.gz rust-d8276e75f048955b496b1ef9ca1b3e11ca5bc306.zip | |
comments in ast.rs
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/ast.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index ef5282551a1..8e974cae86e 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -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 |
