Expand description
Given source strings, MiTeX Lexer provides a sequence of tokens
The core of the lexer is Lexer<'a, S> which receives a string &'a str
and a TokenStream trait object S, then it provides public methods to
peek and bump the token stream.
It has two main lexer implementations:
Lexer<()>: provides plain tokens- See
TokenStreamfor implementation
- See
Lexer<MacroEngine>: provides tokens with macro expansion- See
MacroEnginefor implementation
- See
Modules§
- snapshot_
map - Upstream rustc_data_structures::snapshot_map. Last checked commit: f4bb4500ddb4 Last checked time: 2023-12-28
Structs§
- Lexer
- Small memory-efficient lexer for TeX
- Macro
Engine - MacroEngine has exact same interface as Lexer, but it expands macros.
Enums§
- Brace
Kind - Brace kinds in TeX, used by defining
Token - Command
Name - The command name used by parser
- IfCommand
Name - The command name used by parser
- Token
- The token types defined in logos
Traits§
- Macroify
Stream - Trait for querying macro state of a stream
- Token
Stream - A trait for bumping the token stream Its bumping is less frequently called than token peeking