I am trying to convert some short python code for parsing expressions into Rust. Python code
But I am trapped in the following error which occurs near bottom of the paste