Registry / utility / m-lexer

m-lexer

JSON →
library0.0.4rscratesunverified

A simple extensible regular expressions based lexer for tokenizing input.

# Cargo.toml [dependencies] m_lexer = "0.0.4"
INSTALL
IMPORT
SIG · M-LEXER
M
m-lexer
utilityrustv0.0.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Lexer
use m_lexer::Lexer;

Creates a lexer, adds a token rule, and lexes a simple input.

use m_lexer::Lexer; fn main() { let mut lexer = Lexer::new(); lexer.add_token("NUMBER", r"\d+"); let tokens = lexer.lex("42").unwrap(); println!("{:?}", tokens); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.4latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
m-lexer — cargo add m-lexer · libregistry