diff options
| author | Paul Stansifer <paul.stansifer@gmail.com> | 2012-06-26 11:11:51 -0700 |
|---|---|---|
| committer | Paul Stansifer <paul.stansifer@gmail.com> | 2012-07-05 18:09:31 -0700 |
| commit | 74c2266a06d3c1038491fa0aea32be52a47f598d (patch) | |
| tree | 47f25ec5188f3c1e5a4763a16b638080b315a1e6 | |
| parent | 2ee779c8393cf534414df6837333c188437fad0d (diff) | |
Document matchers a little better.
| -rw-r--r-- | src/libsyntax/ast.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index 676c713f8e5..d28d0819f96 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -385,9 +385,11 @@ type matcher = spanned<matcher_>; #[auto_serialize] enum matcher_ { + /* match one token */ mtc_tok(token::token), - /* body, separator, zero ok? : */ + /* match repetitions of a sequence: body, separator, zero ok? : */ mtc_rep(~[matcher], option<token::token>, bool), + /* parse a Rust NT: name to bind, name of NT, position in match array : */ mtc_bb(ident, ident, uint) } |
