3 releases

0.2.4 Jun 17, 2024
0.2.2-rc2 Apr 19, 2024

#915 in WebAssembly

35 downloads per month
Used in 3 crates (via mitex-parser)

Apache-2.0

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:

Dependencies

~4.5MB
~63K SLoC