Semantic程序代码解析、分析和比较工具
semantic
是一个 Haskell 库和命令行工具,用来解析、分析和比较程序代码。
使用方法:
Parse
Usage: semantic parse ([--sexpression] | [--json] | [--json-graph] | [--symbols]
| [--dot] | [--show] | [--quiet]) [FILES...]
Generate parse trees for path(s)
Available options:
--sexpression Output s-expression parse trees (default)
--json Output JSON parse trees
--json-graph Output JSON adjacency list
--symbols Output JSON symbol list
--dot Output DOT graph parse trees
--show Output using the Show instance (debug only, format
subject to change without notice)
--quiet Don't produce output, but show timing stats
Diff
Usage: semantic diff ([--sexpression] | [--json] | [--json-graph] | [--toc] |
[--dot] | [--show]) [FILE_A] [FILE_B]
Compute changes between paths
Available options:
--sexpression Output s-expression diff tree (default)
--json Output JSON diff trees
--json-graph Output JSON diff trees
--toc Output JSON table of contents diff summary
--dot Output the diff as a DOT graph
--show Output using the Show instance (debug only, format
subject to change without notice)
Graph
Usage: semantic graph ([--imports] | [--calls]) [--packages] ([--dot] | [--json]
| [--show]) ([--root DIR] [--exclude-dir DIR]
DIR:LANGUAGE | FILE | --language ARG (FILES... | --stdin))
Compute a graph for a directory or from a top-level entry point module
Available options:
--imports Compute an import graph (default)
--calls Compute a call graph
--packages Include a vertex for the package, with edges from it
to each module
--dot Output in DOT graph format (default)
--json Output JSON graph
--show Output using the Show instance (debug only, format
subject to change without notice)
--root DIR Root directory of project. Optional, defaults to
entry file/directory.
--exclude-dir DIR Exclude a directory (e.g. vendor)
--language ARG The language for the analysis.
--stdin Read a list of newline-separated paths to analyze
from stdin.
支持的编程语言:
评论
TACIT文本分析,收集和解析工具
TACIT是开源文本分析,收集和解析工具。这是由加利福尼亚州南部大学计算社会科学实验室(USC-CSSL)开发的开源文本分析,爬虫和解析工具。TACIT插件架构包含3个组件:爬虫插件分析插件Corpu
TACIT文本分析,收集和解析工具
0
SmartSynchronize文件和目录比较工具
SmartSynchronize是一款文件和目录的比较对比工具,可以帮助你对比两个文件或者两个文件夹的不同之处!程序采用JAVA设计,兼容性好,自带JAVA运行平台,保证任何环境都可正常运行。
SmartSynchronize文件和目录比较工具
0
SqlSync数据库比较和同步工具
SqlSync是一个比较两个数据库的内容,并同步的工具。同步结果包括一个区别记录,删除的记录和添加的记录。SqlSync可以生成SQL查询,改变第二个数据库,内容与第一个数据库同步。生成的查询会被自动
SqlSync数据库比较和同步工具
0
SmartSynchronize文件和目录比较工具
SmartSynchronize 是一款文件和目录的比较对比工具,可以帮助你对比两个文件或者两个文件
SmartSynchronize文件和目录比较工具
0