Expand description
Procedural macros for the moore compiler.
Macros§
- derive_
all_ node - Generate a
AllNode
enum. - derive_
arena - Generate an arena struct.
- derive_
query_ db - Generate a compiler query database.
- derive_
visitor - Generate a
Visitor
trait.
Attribute Macros§
- all_
node - Mark a node to be included in the
AllNode
enum. - arena
- Mark an item to be allocatable in an arena.
- node
- Wrap a struct or enum in a
Node
. - query
- Mark a function as a compiler query.
- visit
- Convenience macro to derive
AcceptVisitorAndForeach
andwalk_visitor
. - visit_
without_ foreach - Convenience macro to derive
AcceptVisitor
andwalk_visitor
. - walk_
visitor - Generate corresponding
*_visit_*
functions in a visitor.
Derive Macros§
- Accept
Visitor - Generate an
AcceptVisitor
implementation. - Accept
Visitor AndForeach - Generate an
AcceptVisitor
,ForEachNode
, andForEachChild
implementation. - AnyNode
Data - Generate an
AnyNodeData
implementation.