1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*!
# 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
```rust
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](https://github.com/itsfoxstudio/durbat).
## 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.
*/
pub use ;