From 74c2266a06d3c1038491fa0aea32be52a47f598d Mon Sep 17 00:00:00 2001 From: Paul Stansifer Date: Tue, 26 Jun 2012 11:11:51 -0700 Subject: [PATCH] Document matchers a little better. --- src/libsyntax/ast.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index 676c713f8e52..d28d0819f967 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -385,9 +385,11 @@ type matcher = spanned; #[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, bool), + /* parse a Rust NT: name to bind, name of NT, position in match array : */ mtc_bb(ident, ident, uint) }