[][src]Trait cyk::Grammar

pub trait Grammar<'grammar> {
    fn convert(&self) -> Vec<GrammarRule<'grammar>>;
}

The trait for a grammar. For a struct to be a grammar it must implement these methods.

Required methods

fn convert(&self) -> Vec<GrammarRule<'grammar>>

The convert function takes whatever struct you define and generates a Vector of Grammar Rules.

Loading content...

Implementors

Loading content...