ocaml-tree-sitter-semgrep
ocaml-tree-sitter-semgrep copied to clipboard
Generate parsers from tree-sitter grammars extended to support Semgrep patterns
Uses the latest tree-sitter-dockerfile from the official repo, main branch. test plan: ``` cd lang ./test-lang dockerfile ``` I pushed the generated code successfully to https://github.com/semgrep/semgrep-dockerfile with `./release dockerfile`. ###...
This PR augments the C grammar with Semgrep constructs, so that we can move to deprecate the `pfff` parser for C. I went through all the `sgrep-ext`s in `Parser_cpp.mly` to...
This PR refactors Brandon's PR, so the CST to Generic AST process becomes a bit easier. The rest of the description is copied and pasted from https://github.com/semgrep/ocaml-tree-sitter-semgrep/pull/476 ## What: This...
Please support to check if functions are called from the other. Let me show an example. Let me show an example. This is the code I need to check. I...
This is preventing us from merging and using https://github.com/returntocorp/ocaml-tree-sitter-core/pull/48. What we know: * Processing the tree-sitter-hack grammar after rewriting by ocaml-tree-sitter has always consumed a lot of memory. It now...
I did make setup, and make build, but then make test fails with: ``` ... eq: Generating initial 'grammar.json' from 'grammar.js'. seq: Simplifying 'grammar.json' for ocaml-tree-sitter. ocaml-tree-sitter: too many arguments,...
This is a follow-up to #210. We now extract fewer rules for `token()` constructs, but it looks like the generated files `Boilerplate.ml` and `CST.ml` still contain code for those as...
Goal: make it simple to use the ocaml-tree-sitter runtime library as a git submodule without pulling the big tree-sitter-* submodules that contain generated files for real-world languages. Proposed split: *...
As suggested [here](https://github.com/returntocorp/ocaml-tree-sitter/issues/181#issuecomment-817408657), let's make `ocaml-tree-sitter` the main command for everything, including: * what `ocaml-tree-sitter` currently does: generate ocaml code from `grammar.json` * `simplify-grammar` * `gen-ocaml`, a bash script *...
For context I tried to upgrade to tree-sitter 0.19.3, which means I modified package.json, but then it didn't work so I reverted and just did make setup ./script/rebuild-everything but then...