Struct earlgrey::EarleyParser [−][src]
pub struct EarleyParser { pub g: Grammar, // some fields omitted }
Fields
g: Grammar
Methods
impl EarleyParser
[src]
impl EarleyParser
pub fn new(grammar: Grammar) -> EarleyParser
[src]
pub fn new(grammar: Grammar) -> EarleyParser
pub fn parse<S, SI>(&self, tok: SI) -> Result<ParseTrees, Error> where
S: AsRef<str>,
SI: Iterator<Item = S>,
[src]
pub fn parse<S, SI>(&self, tok: SI) -> Result<ParseTrees, Error> where
S: AsRef<str>,
SI: Iterator<Item = S>,
Auto Trait Implementations
impl !Send for EarleyParser
impl !Send for EarleyParser
impl !Sync for EarleyParser
impl !Sync for EarleyParser