Document matchers a little better.
This commit is contained in:
parent
2ee779c839
commit
74c2266a06
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue