grammar!() { /* proc-macro */ }Expand description
The main macro for defining grammars.
See the crate-level documentation for full syntax and usage details.
ยงExample
use syn_grammar::grammar;
grammar! {
grammar MyGrammar {
rule main -> i32 = "42" -> { 42 }
}
}