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_exprfeature if it is not enabled - parse ๐
- Takes a
tokenstream::TokenStreamand returns aVec<self::TokenTree>. Specifically, this takes a genericTokenStream, such as is used in the rest of the compiler, and returns a collection ofTokenTreefor 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::TokenTreeand returns aself::TokenTree. Specifically, this takes a genericTokenTree, such as is used in the rest of the compiler, and returns aTokenTreefor use in parsing a macro. - span_
dollar_ ๐dollar_ or_ metavar_ in_ the_ lhs_ err