Hello. I'm writing a proof-of-concept code transformation tool for Java, so I need to turn a parse tree back into the Java code. The result code shouldn't be character-precise compared to the input, as I understand, this is called "pretty printing".
I've tried to find any tools which are able to do this, but found only several Antlr3-era posts which tell that there's no such tool.
Maybe anyone have made such tool since this time? As I understand, it's a huge task and would require me to write several thousands lines of code.
Thanks, Artyom.