Derive Macros§
- Fast
Parse - Static-codegen variant of
Parse. Emits onefnper grammar rule and inherentfast_recognize/fast_parsemethods on the parser struct. The grammar file is read the same way (#[mplg = "..."]). - Parse
- This macro creates
let ident = parser_ident.replace(“Parser”, “”);
{ident}Variableenum,{ident}Rulesconst {variable_i_ident}_RULE for each rule, and impl Parser for{parser_ident}.