A library for creating a lexer for a token type.
The motivating case for this crate is a token enum that has the
Lexer trait implemented on
lexer method of this trait will return a token iterator when given a
Lexer trait would normally be derived through the luther-derive crate.
The input to the
lexer method is a fallible iterator (i.e. an iterator with a Result item
type) over a
char. The output is a fallible iterator over a
Span of the token
Defines iterators and other utilities for working with
An abstract location within a stream of tokens or characters.
Wraps a value with start and end
The error type for the lexers produced by Lexer implementations.
An interface for creating a lexer for a
A specialized Result type for lexer operations.