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

我要开发同款
匿名用户2019年06月01日
172阅读

技术信息

开源地址
https://github.com/github/semantic
授权协议
MIT

作品详情

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

使用方法:

ParseUsage:sematicparse([--sexpressio]|[--jso]|[--jso-graph]|[--symbols]|[--dot]|[--show]|[--quiet])[FILES...]Geerateparsetreesforpath(s)Availableoptios:--sexpressioOutputs-expressioparsetrees(default)--jsoOutputJSONparsetrees--jso-graphOutputJSONadjacecylist--symbolsOutputJSONsymbollist--dotOutputDOTgraphparsetrees--showOutputusigtheShowistace(debugoly,formatsubjecttochagewithoutotice)--quietDo'tproduceoutput,butshowtimigstatsDiffUsage:sematicdiff([--sexpressio]|[--jso]|[--jso-graph]|[--toc]|[--dot]|[--show])[FILE_A][FILE_B]ComputechagesbetweepathsAvailableoptios:--sexpressioOutputs-expressiodifftree(default)--jsoOutputJSONdifftrees--jso-graphOutputJSONdifftrees--tocOutputJSONtableofcotetsdiffsummary--dotOutputthediffasaDOTgraph--showOutputusigtheShowistace(debugoly,formatsubjecttochagewithoutotice)GraphUsage:sematicgraph([--imports]|[--calls])[--packages]([--dot]|[--jso]|[--show])([--rootDIR][--exclude-dirDIR]DIR:LANGUAGE|FILE|--laguageARG(FILES...|--stdi))Computeagraphforadirectoryorfromatop-leveletrypoitmoduleAvailableoptios:--importsComputeaimportgraph(default)--callsComputeacallgraph--packagesIcludeavertexforthepackage,withedgesfromittoeachmodule--dotOutputiDOTgraphformat(default)--jsoOutputJSONgraph--showOutputusigtheShowistace(debugoly,formatsubjecttochagewithoutotice)--rootDIRRootdirectoryofproject.Optioal,defaultstoetryfile/directory.--exclude-dirDIRExcludeadirectory(e.g.vedor)--laguageARGThelaguagefortheaalysis.--stdiReadalistofewlie-separatedpathstoaalyzefromstdi.

支持的编程语言:

 

功能介绍

semantic 是一个 Haskell 库和命令行工具,用来解析、分析和比较程序代码。 使用方法: Parse
Usage: semantic parse ([--sexpression]...

示例图片

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

评论