This Parser is (at least initially) meant to be used to implement a prettier java plugin.
So the question is: Do we really require an AST (created by the CST visitor) to re-write the syntax tree?
Maybe we can implement the prettier formatter as a CST Visitor without the intermediate step of creating an AST?
Removing the CST to AST visitor will reduce 50% of the code base of this project...
The rewriting of the grammar may be slightly more complex though as we won't have
a preprocessed, easier to use structure.
This Parser is (at least initially) meant to be used to implement a prettier java plugin. So the question is: Do we really require an AST (created by the CST visitor) to re-write the syntax tree?
Maybe we can implement the prettier formatter as a CST Visitor without the intermediate step of creating an AST?