Semantic 程序代码解析、分析和比较工具开源项目

我要开发同款
匿名用户2019年06月01日
51阅读
开发技术Haskell
所属分类代码管理分析/审查/优化、开发工具
授权协议MIT

作品详情

semantic 是一个Haskell库和命令行工具,用来解析、分析和比较程序代码。

使用方法:

ParseUsage:semanticparse([--sexpression]|[--json]|[--json-graph]|[--symbols]|[--dot]|[--show]|[--quiet])[FILES...]Generateparsetreesforpath(s)Availableoptions:--sexpressionOutputs-expressionparsetrees(default)--jsonOutputJSONparsetrees--json-graphOutputJSONadjacencylist--symbolsOutputJSONsymbollist--dotOutputDOTgraphparsetrees--showOutputusingtheShowinstance(debugonly,formatsubjecttochangewithoutnotice)--quietDon'tproduceoutput,butshowtimingstatsDiffUsage:semanticdiff([--sexpression]|[--json]|[--json-graph]|[--toc]|[--dot]|[--show])[FILE_A][FILE_B]ComputechangesbetweenpathsAvailableoptions:--sexpressionOutputs-expressiondifftree(default)--jsonOutputJSONdifftrees--json-graphOutputJSONdifftrees--tocOutputJSONtableofcontentsdiffsummary--dotOutputthediffasaDOTgraph--showOutputusingtheShowinstance(debugonly,formatsubjecttochangewithoutnotice)GraphUsage:semanticgraph([--imports]|[--calls])[--packages]([--dot]|[--json]|[--show])([--rootDIR][--exclude-dirDIR]DIR:LANGUAGE|FILE|--languageARG(FILES...|--stdin))Computeagraphforadirectoryorfromatop-levelentrypointmoduleAvailableoptions:--importsComputeanimportgraph(default)--callsComputeacallgraph--packagesIncludeavertexforthepackage,withedgesfromittoeachmodule--dotOutputinDOTgraphformat(default)--jsonOutputJSONgraph--showOutputusingtheShowinstance(debugonly,formatsubjecttochangewithoutnotice)--rootDIRRootdirectoryofproject.Optional,defaultstoentryfile/directory.--exclude-dirDIRExcludeadirectory(e.g.vendor)--languageARGThelanguagefortheanalysis.--stdinReadalistofnewline-separatedpathstoanalyzefromstdin.

支持的编程语言:

 

查看全文
声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论