Systematic way to generate ANTLR tree grammar?
问题 I have a little bit large ANTLR parser grammar file and want to make a tree grammar for it. But, as far as I know this work of tree grammar generation can't be done automatically, i.e., I should generate it manually by copying parser grammar, removing some unnecessary code, etc. I want to know if there is a systematic way to generate a tree grammar file from a parser grammar file. P.S. I read an article that insists that 'Manual Tree Walking Is Better Than Tree Grammars'. Is this reliable