Skip to content

Commit

Permalink
Document matchers a little better.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulstansifer committed Jul 6, 2012
1 parent 2ee779c commit 74c2266
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libsyntax/ast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 74c2266

Please sign in to comment.