Struct earlgrey::EarleyParser
[−]
[src]
pub struct EarleyParser { pub g: Grammar, }
Fields
g: Grammar
Methods
impl EarleyParser
[src]
fn new(grammar: Grammar) -> EarleyParser
fn parse<S>(&self, tok: S) -> Result<ParseTrees, ParseError> where
S: Iterator<Item = String>,
S: Iterator<Item = String>,
fn debug<S>(&self, tok: S) -> Result<ParseTrees, ParseError> where
S: Iterator<Item = String>,
S: Iterator<Item = String>,