Constants§
Functions§
- kleene_
op 🔒 - Takes a token and returns
Some(KleeneOp)
if the token is+
*
or?
. Otherwise, returnNone
. - maybe_
emit_ 🔒macro_ metavar_ expr_ concat_ feature - maybe_
emit_ 🔒macro_ metavar_ expr_ feature - Asks for the
macro_metavar_expr
feature if it is not enabled - parse 🔒
- Takes a
tokenstream::TokenStream
and returns aVec<self::TokenTree>
. Specifically, this takes a genericTokenStream
, such as is used in the rest of the compiler, and returns a collection ofTokenTree
for use in parsing a macro. - parse_
kleene_ 🔒op - Parse the next token tree of the input looking for a KleeneOp. Returns
- parse_
sep_ 🔒and_ kleene_ op - Attempt to parse a single Kleene star, possibly with a separator.
- parse_
tree 🔒 - Takes a
tokenstream::TokenTree
and returns aself::TokenTree
. Specifically, this takes a genericTokenTree
, such as is used in the rest of the compiler, and returns aTokenTree
for use in parsing a macro. - span_
dollar_ 🔒dollar_ or_ metavar_ in_ the_ lhs_ err