Skip to main content

Crate mpl_macro

Crate mpl_macro 

Source

Derive Macros§

FastParse
Static-codegen variant of Parse. Emits one fn per grammar rule and inherent fast_recognize / fast_parse methods on the parser struct. The grammar file is read the same way (#[mplg = "..."]).
Parse
This macro creates let ident = parser_ident.replace(“Parser”, “”); {ident}Variable enum, {ident}Rules const {variable_i_ident}_RULE for each rule, and impl Parser for {parser_ident}.