Crate dyn_quantity_lexer

Crate dyn_quantity_lexer 

Source
Expand description

This crate contains the lexer for the “dyn_quantity” crate. It is separated from “dyn_quantity” because the lexer is created using the logos macros. These expand into a lot of code, making it hard for language servers such as rust-analyzer to keep up. The separation makes it possible to use language servers together with “dyn_quantity”. See the README.md of “dyn_quantity” for further details.

Structs§

Exponents
Lexer
Lexer is the main struct of the crate that allows you to read through a Source and produce tokens for enums implementing the Logos trait.

Enums§

LexingError
Token

Traits§

Logos
Trait implemented for an enum representing all tokens. You should never have to implement it manually, use the #[derive(Logos)] attribute on your enum.

Type Aliases§

Span
Byte range in the source.

Derive Macros§

Logos