package ast_generic

No build information
  1. Overview
  2. No Docs
Abstract Syntax Tree (AST) supporting 31 programming languages

Install

dune-project
 Dependency

Authors

Maintainers

Sources

semgrep-full-1.12.0.tar.gz
md5=d72b17df65c5cea30701cdf25f186bca
sha512=b135affadcdeb892352ec269a8761e41d2b34383ee839b83855f9604983eae324732b76f1b2b8b305dfc06f1f8863dd32afe83528bf605daa910a3fc107474c5

Description

This is a library defining a generic AST to factorize similar analysis on different programming languages (e.g., naming, semantic code highlighting, semgrep matching).

Right now this generic AST is mostly the factorized union of the ASTs of:

  • Python, Ruby, Lua, Julia, Elixir
  • Javascript, Typescript, Vue
  • PHP, Hack
  • Java, CSharp, Kotlin
  • C, C++
  • Go
  • Swift
  • OCaml, Scala, Rust
  • Clojure, Lisp, Scheme
  • R
  • Solidity
  • Bash, Docker
  • JSON, YAML, HCL, Jsonnet

This is a core library used by Semgrep but which can be of use in other projects. This AST is also specified using ATD and so can be leveraged from other programming languages such as Typescript, Java, Scala, and the other programming languages supported by atdgen.

Added to opam-repository:

Dependencies (7)

  1. visitors = "20210608"
  2. atdgen >= "2.8.0"
  3. profiling >= "1.5.5"
  4. lib_parsing >= "1.12.0"
  5. commons >= "1.8.0"
  6. dune >= "3.2.0"
  7. ocaml >= "4.12.0"

Dev Dependencies

None

Optional Dependencies

None

Used by

None

Conflicts

None

Build status

check.ci.ocaml.org has no results for any version of ast_generic in its run of against opam-repository 8d8d144. check.ci only builds the packages that opam can install on its Linux image (Debian, x86_64). It leaves out packages for other systems, packages whose system library is missing from that image, and the packages that depend on them.