Trait CommonGeneratorConfig

Source
pub trait CommonGeneratorConfig {
    // Required methods
    fn user_type_name(&self) -> &str;
    fn module_name(&self) -> &str;
    fn minimize_boxed_types(&self) -> bool;
    fn range(&self) -> bool;
}
Expand description

Common configuration of both parser generator an user trait generator.

Required Methods§

Source

fn user_type_name(&self) -> &str

User type that implements the language processing

Source

fn module_name(&self) -> &str

User type’s module name

Source

fn minimize_boxed_types(&self) -> bool

Activate the minimization of boxed types in the generated parser

Source

fn range(&self) -> bool

Generate range information for AST types

Implementors§