3 releases
0.2.4 | Jun 17, 2024 |
---|---|
0.2.2-rc2 | Apr 19, 2024 |
#1096 in WebAssembly
Used in 3 crates
(via mitex-parser)
89KB
2K
SLoC
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
TokenStream
for implementation
- See
Lexer<MacroEngine>
: provides tokens with macro expansion- See
MacroEngine
for implementation
- See
Dependencies
~4.5MB
~61K SLoC