semgrep / pfff

pfff is mainly an OCaml API to write static analysis, dynamic analysis, code visualizations, code navigations, or style-preserving source-to-source transformations such as refactorings on source code.
https://semgrep.dev
Other
186 stars 29 forks source link

Add max_depth option to the pretty-printer. #478

Closed mjambon closed 3 years ago

mjambon commented 3 years ago

I'm using this to print subtrees during matching in semgrep:

----- m_stmt -----
stmt pattern 2:
ExprStmt(Call(..., ...), ())
~~~~~
stmt target 4:
If((), Call(..., ...), ExprStmt(..., ...), None)

Security