What's stopping you from writing your Rust like this?
What's stopping you from writing your Rust like this?
What's stopping you from writing your Rust like this?
You're viewing a single thread.
Wow, so this is possible.
Formatting is so damn arbitrary. Somebody has to have tried storing just the parse tree on disk, right?
The closest thing I've seen is Combobulate
If you do that, you lose formatting and comments every time you load the source from disk
Losing formatting other than what you've set in your deparser would be the point. Losing comments would be bad, but that seems easily fixable just by giving each comment block a symbol that points to it's contents.
Or by including comments in the parse tree. (& Yes, it is done various places for various languages and formats.)
Do you have some examples?