[−][src]Crate ra_ap_mbe
mbe
(short for Macro By Example) crate contains code for handling
macro_rules
macros. It uses TokenTree
(from tt
package) as the
interface, although it contains some code to bridge SyntaxNode
s and
TokenTree
s as well!
Structs
Delimiter | |
ExpandResult | |
MacroRules | This struct contains AST for a single |
Punct | |
TokenMap | Maps |
Enums
ExpandError | |
Origin | |
ParseError |
Functions
ast_to_token_tree | Convert the syntax tree (what user has written) to a |
parse_to_token_tree | Convert a string to a |
syntax_node_to_token_tree | Convert the syntax node to a |
token_tree_to_syntax_node |