Struct abackus::ParserBuilder [−][src]
pub struct ParserBuilder(pub GrammarBuilder);
Methods
impl ParserBuilder
[src]
impl ParserBuilder
pub fn parse_grammar(
gb: GrammarBuilder,
user_grammar_spec: &str
) -> Result<GrammarBuilder, Error>
[src]
pub fn parse_grammar(
gb: GrammarBuilder,
user_grammar_spec: &str
) -> Result<GrammarBuilder, Error>
pub fn plug_terminal<N, F>(self, name: N, pred: F) -> Self where
N: Into<String>,
F: 'static + Fn(&str) -> bool,
[src]
pub fn plug_terminal<N, F>(self, name: N, pred: F) -> Self where
N: Into<String>,
F: 'static + Fn(&str) -> bool,
pub fn into_parser(
self,
start: &str,
grammar: &str
) -> Result<EarleyParser, Error>
[src]
pub fn into_parser(
self,
start: &str,
grammar: &str
) -> Result<EarleyParser, Error>
impl ParserBuilder
[src]
impl ParserBuilder
pub fn treeficator<S, SI>(
self,
grammar: &str,
start: &str
) -> impl Fn(SI) -> Result<Vec<Tree>, Error> where
S: AsRef<str>,
SI: Iterator<Item = S>,
[src]
pub fn treeficator<S, SI>(
self,
grammar: &str,
start: &str
) -> impl Fn(SI) -> Result<Vec<Tree>, Error> where
S: AsRef<str>,
SI: Iterator<Item = S>,
pub fn sexprificator<S, SI>(
self,
grammar: &str,
start: &str
) -> impl Fn(SI) -> Result<Vec<Sexpr>, Error> where
S: AsRef<str>,
SI: Iterator<Item = S>,
[src]
pub fn sexprificator<S, SI>(
self,
grammar: &str,
start: &str
) -> impl Fn(SI) -> Result<Vec<Sexpr>, Error> where
S: AsRef<str>,
SI: Iterator<Item = S>,
Trait Implementations
impl Default for ParserBuilder
[src]
impl Default for ParserBuilder
fn default() -> ParserBuilder
[src]
fn default() -> ParserBuilder
Returns the "default value" for a type. Read more
Auto Trait Implementations
impl !Send for ParserBuilder
impl !Send for ParserBuilder
impl !Sync for ParserBuilder
impl !Sync for ParserBuilder