With TypeScript, there are tools built into its library for parsing and emitting TypeScript code. There are similar libraries built into Python (ast / 2to3), C++ (libclang), and others.
In Rust, I want to read Rust code in, modify the code, then output the newly modified code.
How do I do this?