oak-macros 0.0.9

Procedural macros for the Oak framework to simplify parser and AST definition.
Documentation

🚀 oak-macros

Crates.io Documentation

Procedural Macros for Oak — Derive macros and helper attributes for Oak language implementations.

🎯 Why oak-macros?

Procedural macros reduce boilerplate in language implementations. oak-macros provides derive macros and helper attributes that simplify implementing Oak traits.

✨ Key Features

  • 🔧 Derive Macros — Automatically implement common Oak traits
  • 📝 Code Generation — Generate repetitive code patterns
  • 🎯 Type-Safe — Compile-time verification of generated code
  • ⚡ Zero Runtime Cost — Macros expand at compile time

🏗️ Architecture

Available Macros

Macro Purpose
#[derive(Language)] Auto-implement the Language trait
json! JSON literal construction

🔗 Ecosystem Integration

Used by language parser implementations, test code generation, and AST construction utilities.

📖 Documentation

For usage examples and API details, see the API documentation.

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.