macro_rules! term {
(<$ident:ident>) => { ... };
($ident:ident) => { ... };
($ident:literal) => { ... };
}Expand description
Creates a Terminal if the input is a string literal or a Nonterminal if the input is inside angle brackets
bnf::term!("terminal");
bnf::term!(<nonterminal>);