Skip to main content

Crate lekhani_parser

Crate lekhani_parser 

Source
Expand description

§Lekhani Parser

Ultra-fast, zero-allocation pure Rust Bengali phonetic grammar parser and transliterator. High-performance replacement for rupantor with Longest-Prefix L1 Trie matching, branchless byte-level condition evaluations, and canonical diacritic sequencing.

Re-exports§

pub use compiler::CompiledLayout;
pub use engine::LekhaniParser;
pub use rule::ConditionScope;
pub use rule::MatchType;
pub use rule::Pattern;
pub use rule::PatternRule;
pub use rule::RuleCondition;

Modules§

compiler
Layout JSON Compiler for Phonetic Parser
engine
Zero-Allocation High-Speed Phonetic Parsing Engine
rule
Phonetic Rule and Condition Data Structures
tables
ASCII Character Classification and Normalization Tables
trie
Compact L1 Prefix Trie for Fast Phonetic Pattern Matching

Functions§

default_avro_parser
Create a new LekhaniParser with the default Avro Phonetic layout.
get_default_avro_layout
Retrieve or initialize the shared singleton of the compiled default Avro layout.