1. Semantic程序代碼解析、分析和比較工具

        聯(lián)合創(chuàng)作 · 2023-10-02 02:49

        semantic 是一個(gè) 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.

        支持的編程語言:

         

        瀏覽 8
        點(diǎn)贊
        評(píng)論
        收藏
        分享

        手機(jī)掃一掃分享

        編輯 分享
        舉報(bào)
        評(píng)論
        圖片
        表情
        推薦
        點(diǎn)贊
        評(píng)論
        收藏
        分享

        手機(jī)掃一掃分享

        編輯 分享
        舉報(bào)
          
          

            1. 欧美日韩网站 | 爱爱呻吟声 | 俺也去在线视频 | 麻豆人妻偷人精品无码视频 | 波霸巨大乳一区二区三区 |