package ast_generic

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

Install

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.

Published: 20 Feb 2023

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

Used by

None

Conflicts

None