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.支持的编程语言:
评论