[−][src]Struct stelar::Parser
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]
NT: Clone + PartialEq + Eq + Hash,
T: PartialEq + Eq + Hash + Clone,
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]
&mut self,
input: I
) -> Result<SyntaxTree<T, NT, V>, ParseError<T>> where
I: Iterator<Item = ValuedToken<T, V>>,
Auto Trait Implementations
impl<T, V, NT> Unpin for Parser<T, V, NT> where
NT: Unpin,
T: Unpin,
V: Unpin,
NT: Unpin,
T: Unpin,
V: Unpin,
impl<T, V, NT> Sync for Parser<T, V, NT> where
NT: Sync,
T: Sync,
V: Sync,
NT: Sync,
T: Sync,
V: Sync,
impl<T, V, NT> Send for Parser<T, V, NT> where
NT: Send,
T: Send,
V: Send,
NT: Send,
T: Send,
V: Send,
impl<T, V, NT> UnwindSafe for Parser<T, V, NT> where
NT: UnwindSafe,
T: UnwindSafe,
V: UnwindSafe,
NT: UnwindSafe,
T: UnwindSafe,
V: UnwindSafe,
impl<T, V, NT> RefUnwindSafe for Parser<T, V, NT> where
NT: RefUnwindSafe,
T: RefUnwindSafe,
V: RefUnwindSafe,
NT: RefUnwindSafe,
T: RefUnwindSafe,
V: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,