Struct earlgrey::ParserBuilder
[−]
[src]
pub struct ParserBuilder(_);
Methods
impl ParserBuilder
[src]
fn new() -> ParserBuilder
fn plug_terminal<N, F>(self, name: N, pred: F) -> Self where
N: Into<String>,
F: 'static + Fn(&str) -> bool,
N: Into<String>,
F: 'static + Fn(&str) -> bool,
fn into_parser(
self,
start: &str,
grammar: &str
) -> Result<EarleyParser, EbnfError>
self,
start: &str,
grammar: &str
) -> Result<EarleyParser, EbnfError>
fn treeficator<'a>(
self,
start: &str,
grammar: &'a str
) -> Box<Fn(&mut Iterator<Item = String>) -> Treeresult + 'a>
self,
start: &str,
grammar: &'a str
) -> Box<Fn(&mut Iterator<Item = String>) -> Treeresult + 'a>