Expand description
Turn text input into a sequence of tokens.
We perform two levels of lexing:
lower
: handles comments, annotations, spaces and newlines. Generates a sequence oflower::Lexeme
instances.Lexer
: pulls text from the lower-level lexer and recognizes tokens. Generates a sequence ofToken
instances.
ModulesΒ§
- lower π
- A βpartialβ lexer which determines whether weβre inside an RC-block or a comment.
StructsΒ§
- Glyph
Recognizer π - Convert a string into a sequence of
Elevated<&Glyph>
. - Glyph
Tokenizer π - Tokenize a small part of the input, unifying the Unicode and
@...@
representations. - Lexer π
- Tokenize the body of a source code file.
- Numeric
Literal π - Spanned
Iter π
EnumsΒ§
- Error
Token πKind - Represents an item in the input we didnβt recognise of which we donβt support.
- Token π
- The parser consumes these tokens.
- Token
Merge πResult
ConstantsΒ§
FunctionsΒ§
- merge_
tokens π - tokenise_
single_ πglyph
Type AliasesΒ§
- Span π