pub struct PrattParser<L, T>{ /* private fields */ }Expand description
A Pratt parser implementation.
Implementations§
Source§impl<L, T> PrattParser<L, T>
impl<L, T> PrattParser<L, T>
Sourcepub const fn new(spec: T) -> PrattParser<L, T>
pub const fn new(spec: T) -> PrattParser<L, T>
Creates a new Pratt parser with the given specification.
Sourcepub fn parse_expr<'a, S>(
&self,
state: &mut ParserState<'a, L, S>,
min_precedence: u8,
) -> &'a GreenNode<'a, L>
pub fn parse_expr<'a, S>( &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