pub struct PrattParser<L: Language, T: Pratt<L>> { /* private fields */ }Expand description
A Pratt parser implementation.
Implementations§
Source§impl<L: Language, T: Pratt<L>> PrattParser<L, T>
impl<L: Language, T: Pratt<L>> PrattParser<L, T>
Sourcepub fn parse_expr<'a, S: Source + ?Sized>(
&self,
state: &mut ParserState<'a, L, S>,
min_precedence: u8,
) -> &'a GreenNode<'a, L>
pub fn parse_expr<'a, S: Source + ?Sized>( &self, state: &mut ParserState<'a, L, S>, min_precedence: u8, ) -> &'a GreenNode<'a, L>
Parses an expression with the given minimum precedence.
Auto Trait Implementations§
impl<L, T> Freeze for PrattParser<L, T>where
T: Freeze,
impl<L, T> RefUnwindSafe for PrattParser<L, T>where
T: RefUnwindSafe,
L: RefUnwindSafe,
impl<L, T> Send for PrattParser<L, T>where
T: Send,
impl<L, T> Sync for PrattParser<L, T>where
T: Sync,
impl<L, T> Unpin for PrattParser<L, T>
impl<L, T> UnwindSafe for PrattParser<L, T>where
T: UnwindSafe,
L: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more