macro_rules!

The easiest way to get started is with declarative, or “macro_rules”, macros. (This concept was borrowed directly from Rust.)

Follow the tutorial for a hands-on introduction, or jump straight into the reference for the full run-down.