# Function pest_generator::derive_parser

source · [−]

    pub fn derive_parser(input: TokenStream, include_grammar: bool) -> TokenStream

Expand description

Processes the derive/proc macro input and generates the corresponding parser based on the parsed grammar. If `include_grammar` is set to true, it’ll generate an explicit “include_str” statement (done in pest_derive, but turned off in the local bootstrap).