Improve docs and compare with alternatives

This commit is contained in:
Andras Schmelczer 2026-03-10 20:29:35 +00:00
commit 3d382ad741

View file

@ -12,7 +12,7 @@ use wasm_bindgen::prelude::*;
pub mod token;
/// A trait for tokenizers that take a string and return a list of tokens.
/// Type alias for tokenizer functions that split a string into tokens.
pub type Tokenizer<T> = dyn Fn(&str) -> Vec<Token<T>>;
#[cfg_attr(feature = "wasm", wasm_bindgen)]