代码分析工具:pfff

xg48 10年前

pfff 是一套代码分析、代码可视化、代码导航工具,它很好地支持 Java、C、JavaScript、PHP。它也初步支持 C++、Rust、C#、HTML、CSS、Erlang、Lisp、Haskell、Python、OPA 和 SQL。

pfff is also made of few tools:

  • pfff, which allows to test the different parsers on a single file
  • scheck, a bug finder
  • stags, an Emacs tag generator
  • sgrep, a syntactical grep
  • spatch, a syntactical patch
  • codemap, which is a gtk and cairo based source code visualizer/navigator/searcher leveraging the information computed previously by pfff_db and codegraph.
  • codegraph, a source code indexer and package/module/class dependency visualizer
  • codequery, an interactive tool a la SQL to query information about the structure of a codebase using Prolog as the query engine
  • pfff_db, which does some global analysis on a set of source files and store the data in a marshalled form in a file somewhere (e.g. /tmp/db.json)

项目主页:http://www.open-open.com/lib/view/home/1428834049424