[][src]Struct abackus::ParserBuilder

pub struct ParserBuilder(pub GrammarBuilder);

Methods

impl ParserBuilder
[src]

pub fn parse_grammar(
    gb: GrammarBuilder,
    user_grammar_spec: &str
) -> Result<GrammarBuilder, Error>
[src]

pub fn plug_terminal<N, F>(self, name: N, pred: F) -> Self where
    N: Into<String>,
    F: 'static + Fn(&str) -> bool
[src]

pub fn into_parser(
    self,
    start: &str,
    grammar: &str
) -> Result<EarleyParser, Error>
[src]

impl ParserBuilder
[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>, 
[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>, 
[src]

Trait Implementations

impl Default for ParserBuilder
[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]