Macros can now also be stmts and items.
This commit is contained in:
parent
f6a8ffc625
commit
a88f9ac732
1 changed files with 4 additions and 4 deletions
|
@ -494,7 +494,7 @@ transcriber : '(' transcriber * ')' | '[' transcriber * ']'
|
||||||
|
|
||||||
User-defined syntax extensions are called "macros", and they can be defined
|
User-defined syntax extensions are called "macros", and they can be defined
|
||||||
with the `macro_rules!` syntax extension. User-defined macros can currently
|
with the `macro_rules!` syntax extension. User-defined macros can currently
|
||||||
only be invoked in expression position.
|
be invoked as expressions, statements, or items.
|
||||||
|
|
||||||
(A `sep_token` is any token other than `*` and `+`. A `non_special_token` is
|
(A `sep_token` is any token other than `*` and `+`. A `non_special_token` is
|
||||||
any token other than a delimiter or `$`.)
|
any token other than a delimiter or `$`.)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue