Expand description
§durbat
Durbat is a Rust procedural macro that enables writing Rust using Black Speech keywords, identifiers, and module paths from J.R.R. Tolkien’s legendarium.
§Quick Start
durbat::durbat! {
gimb shakh() {
krimpat!("Ash nazg durbatulûk!");
}
}§Features
- Black Speech keywords:
gimb(fn),krimp(let),ishi(if), etc. - ASCII and diacritic forms:
krîmp/krimp,dûrbat/durbat - Translated module paths:
Zud::Gakh(std::collections) - Full interoperability with standard Rust
For complete documentation, see the README.
§Etymology
The name derives from the Ring inscription “Ash nazg durbatulûk” — “to bind them” — reflecting the macro’s role in binding Black Speech syntax to Rust.
§Legal Notice
This project is a playful homage to J.R.R. Tolkien’s legendarium. It is not affiliated with or endorsed by the Tolkien Estate. All Black Speech terms are used nominatively.