// declare_table.mrs — DSL-to-struct mapping // Demonstrates: $body:tt raw token capture, escape block calling misses_rt, // expression injection of a &str macro declare_table! { $name:ident { $body:tt } => { @{ let table_str = misses_rt::to_table_name(&name); } T~{ pub struct $name { pub id: u64, } impl $name { pub const TABLE: &'static str = ${ table_str.as_str() }; } } } }