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.
I'm looking for a tool available on Windows, Linux and Mac so as to build Python codes building abstract syntax trees. Is there such a kind of tool ?
ANTLR 有一个可用于 Python 的运行时;它生成生成 AST 的代码。我使用了 C++ 版本的 ANTLR,效果很好。
http://www.antlr.org/wiki/display/ANTLR3/Python+runtime