Struct moore_vhdl_syntax::parser::basic::BasicParser [] [src]

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

Methods

impl<T> BasicParser<T> where
    T: Grinder<Item = Option<u8>, Error = DiagBuilder2>, 
[src]

[src]

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

Trait Implementations

impl<T> TokenStream<Token> for BasicParser<T> where
    T: Grinder<Item = Option<u8>, Error = DiagBuilder2>, 
[src]

[src]

Look ahead at a token in the stream.

[src]

Consume the current token.

[src]

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

[src]

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

[src]

Emit a diagnostic.

[src]

Get the severity of the worst diagnostic emitted so far.

[src]

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

[src]

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

[src]

Check whether a fatal diagnostic has been emitted.

[src]

Check whether an error diagnostic has been emitted.