Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有人可以告诉我如何使用 java ANTLR v2.x 遍历 AST(即不使用 commontree)
谢谢..
你的问题很模糊。用 ANTLR 处理树的标准方法是编写一个树语法来对应解析器构建的树。大量示例位于http://www.antlr2.org/doc/index.html。