Notes on Parsing in Rust - Part 1
May 3, 2020•1 min read
#rust
Note: I am learning Rust
I am writing few parsers in Rust. And here are few notes about that atm.
- nom is good to make lexers, but it is quite verbose than logos
- good tutorials on pratt or shunting yard algorithms
Zero allocations
I'd like to try interning strings to have zero-allocation lexer and expressions used in the app. Each token just a slice to interned string in the global cache.