Maybe it can work as a quick glimpse into how parser and lexer can work in Rust https://github.com/jmaczan/0x6b73746b
I wrote it long time ago and it’s not fully implemented tho