pub struct BasicParser<T> where
    T: Grinder<Item = Option<u8>, Error = DiagBuilder2>, 
{ /* private fields */ }

Implementations

Create a new parser which consumes input from the given lexer.

Trait Implementations

Look ahead at a token in the stream.

Consume the current token.

Get the number of tokens consumed. Excludes tokens skipped with skip.

Get the span of the last token consumed token (bumped or skipped).

Emit a diagnostic.

Get the severity of the worst diagnostic emitted so far.

Skip the current token. Usually the same as bump, but may be used to keep skipped tokens out of the consumed tokens count by some parsers. Read more

Get the tail location of the last consumed token (bumped or skipped).

Check whether a fatal diagnostic has been emitted.

Check whether an error diagnostic has been emitted.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.