Struct moore_vhdl_syntax::lexer::Lexer
[−]
[src]
pub struct Lexer<T: Grinder<Item = Option<u8>, Error = DiagBuilder2>> { /* fields omitted */ }
A VHDL lexer. Converts a stream of bytes to VHDL tokens. Emits errors backwards up the pipeline.
Methods
impl<T> Lexer<T> where
T: Grinder<Item = Option<u8>, Error = DiagBuilder2>,
[src]
T: Grinder<Item = Option<u8>, Error = DiagBuilder2>,
Trait Implementations
impl<T> Grinder for Lexer<T> where
T: Grinder<Item = Option<u8>, Error = DiagBuilder2>,
[src]
T: Grinder<Item = Option<u8>, Error = DiagBuilder2>,
type Item = Option<Spanned<Token>>
type Error = DiagBuilder2
fn next(&mut self) -> Self::Item
[src]
fn emit(&mut self, err: Self::Error)
[src]
fn vent<F, E>(self, f: F) -> Vent<Self, F, E> where
F: Fn(E) -> (),
[src]
F: Fn(E) -> (),
fn unwrap(self) -> Unwrap<Self>
[src]
fn map_err<F, E>(self, f: F) -> MapErrGrinder<Self, F, E> where
F: Fn(E) -> Self::Error,
[src]
F: Fn(E) -> Self::Error,
fn peekable(self) -> Peekable<Self>
[src]
fn lookaheadable(self) -> Lookahead<Self>
[src]
fn filter<F>(self, f: F) -> Filter<Self, F> where
F: Fn(&<Self::Item as Chisel>::Value) -> bool,
[src]
F: Fn(&<Self::Item as Chisel>::Value) -> bool,