[][src]Struct stelar::Parser

pub struct Parser<T, V, NT> where
    T: PartialEq + Eq + Hash + Clone,
    NT: PartialEq + Eq + Hash + Clone
{ /* fields omitted */ }

A parser wrapping a ParseTable with the parsing logic

Methods

impl<T, V, NT> Parser<T, V, NT> where
    NT: Clone + PartialEq + Eq + Hash,
    T: PartialEq + Eq + Hash + Clone
[src]

pub fn new(parse_table: ParseTable<T, NT>) -> Parser<T, V, NT>[src]

pub fn parse<I>(
    &mut self,
    input: I
) -> Result<SyntaxTree<T, NT, V>, ParseError<T>> where
    I: Iterator<Item = ValuedToken<T, V>>, 
[src]

Auto Trait Implementations

impl<T, V, NT> Sync for Parser<T, V, NT> where
    NT: Sync,
    T: Sync,
    V: Sync

impl<T, V, NT> Send for Parser<T, V, NT> where
    NT: Send,
    T: Send,
    V: Send

impl<T, V, NT> Unpin for Parser<T, V, NT> where
    NT: Unpin,
    T: Unpin,
    V: Unpin

impl<T, V, NT> RefUnwindSafe for Parser<T, V, NT> where
    NT: RefUnwindSafe,
    T: RefUnwindSafe,
    V: RefUnwindSafe

impl<T, V, NT> UnwindSafe for Parser<T, V, NT> where
    NT: UnwindSafe,
    T: UnwindSafe,
    V: UnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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