Trait NonTerminal

Source
pub trait NonTerminal<Term> {
    // Required methods
    fn is_auto_generated(&self) -> bool;
    fn is_augmented(&self) -> bool;
}
Expand description

A struct to hold information about non-terminal symbols

Required Methods§

Source

fn is_auto_generated(&self) -> bool

Whether this non-terminal is auto-generated by rustylr. Some non-terminals could be auto-generated to handle regex patterns, character sets, etc.

Source

fn is_augmented(&self) -> bool

Augmented rule will be generated for entry point of the grammar.

Implementors§