Struct moore_vhdl_syntax::parser::basic::BasicParser [−][src]
pub struct BasicParser<T> where
T: Grinder<Item = Option<u8>, Error = DiagBuilder2>, { /* fields omitted */ }
Implementations
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>,
impl<T> TokenStream<Token> for BasicParser<T> where
T: Grinder<Item = Option<u8>, Error = DiagBuilder2>,
Get the number of tokens consumed. Excludes tokens skipped with skip
.
Emit a diagnostic.
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).