semgrep / ocaml-tree-sitter-semgrep

Generate parsers from tree-sitter grammars extended to support Semgrep patterns
GNU General Public License v3.0
4 stars 10 forks source link

Create subcommands for 'ocaml-tree-sitter-gen-c' and ''ocaml-tree-sitter-gen-ocaml' #182

Open mjambon opened 3 years ago

mjambon commented 3 years ago

As suggested here, let's make ocaml-tree-sitter the main command for everything, including:

Tasks include:

Compatibility with the previous ocaml-tree-sitter command line is not important, since as far as I know, the only user is semgrep and all that code exists in the ocaml-tree-sitter repo (the semgrep build does not call ocaml-tree-sitter).

mjambon commented 3 years ago

Some of this work was done (#202) already: simplify is now a subcommand of ocaml-tree-sitter. What's left I think is to add subcommands for gen-c and gen-ocaml, which would call the commands ocaml-tree-sitter-gen-c and ocaml-tree-sitter-gen-ocaml respectively.