You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generally, the OCaml parser seems to inherit any flaws in the original grammar, so for the most part any errors in the grammar that trigger with t-s-h's npx tree-sitter parse would reappear with o-t-s's make stat. make stat functions very similarly to bin/fetch-examples; bin/test-examples in that it relies on cloning a list of public repos to generate statistics against. The process is here: https://github.com/returntocorp/ocaml-tree-sitter-core/blob/main/scripts/lang-stat (this can publish to https://dashboard.semgrep.dev/metric/semgrep.core.hack.parse.pct). Also it can handle internal private repos, which is helpful for a language like Hack that doesn't have a lot of large open source repos.
Is it https://github.com/returntocorp/ocaml-tree-sitter-languages or https://github.com/returntocorp/ocaml-tree-sitter-semgrep that tests different Hack repos against their parser?
Wonder if we can leverage some of their work and run their tests as part of this repos CI tests (first we need to add CI tests 😅).
The text was updated successfully, but these errors were encountered: