{"id":50872135,"url":"https://github.com/epfl-systemf/ppx_rocq","last_synced_at":"2026-06-15T06:05:59.314Z","repository":{"id":358979165,"uuid":"1240757761","full_name":"epfl-systemf/ppx_rocq","owner":"epfl-systemf","description":"PPX syntax extensions for quoting Rocq terms in OCaml","archived":false,"fork":false,"pushed_at":"2026-06-08T11:34:05.000Z","size":117,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-08T13:23:26.874Z","etag":null,"topics":["ocaml","ppx","ppx-rewriter","rocq","rocq-prover"],"latest_commit_sha":null,"homepage":"","language":"OCaml","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/epfl-systemf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-16T14:32:18.000Z","updated_at":"2026-06-08T11:34:09.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/epfl-systemf/ppx_rocq","commit_stats":null,"previous_names":["epfl-systemf/ppx_rocq"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/epfl-systemf/ppx_rocq","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epfl-systemf%2Fppx_rocq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epfl-systemf%2Fppx_rocq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epfl-systemf%2Fppx_rocq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epfl-systemf%2Fppx_rocq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/epfl-systemf","download_url":"https://codeload.github.com/epfl-systemf/ppx_rocq/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/epfl-systemf%2Fppx_rocq/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34349969,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ocaml","ppx","ppx-rewriter","rocq","rocq-prover"],"created_at":"2026-06-15T06:05:58.372Z","updated_at":"2026-06-15T06:05:59.310Z","avatar_url":"https://github.com/epfl-systemf.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `ppx_rocq`: PPX syntax extensions for quoting Rocq terms in OCaml\n\n`ppx_rocq` is a PPX rewriter that enables plugin writers to write Rocq terms using a simple quotation system, like so:\n\n```ocaml\nlet nat_plus_assoc = [%constr \"forall x y z : nat, (x + y) + z = x + (y + z)\"] ;;\n- : EConstr.t Proofview.tactic\n```\n\n`ppx_rocq` supports all quotations from Ltac2 (`%constr`, `%preterm`), an extra quotation for concrete syntax terms (`%expr`), as well as additional quotations for identifiers (`%ident`), qualifiers (`%qualid`), etc. Moreover, `ppx_rocq` also supports anti-quotations using the `%{…}` notation:\n\n```ocaml\nlet lhs = [%expr \"(x + y) + z\"] in\nlet rhs = [%expr \"x + (y + z)\"] in\nlet nat_plus_assoc = [%constr \"forall x y z : nat, %expr:{lhs} = %expr:{rhs}\"] ;;\n- : EConstr.t Proofview.tactic\n```\n\n## Setup\n\nTo use `ppx_rocq`, run `dune install` on this repository:\n```bash\ngit clone https://github.com/epfl-systemf/ppx_rocq.git\ncd ppx_rocq\ndune build\ndune install\n```\n\nThen add `ppx_rocq` to the `preprocessing` field of your `library` or `executable` stanza:\n\n```dune\n(library\n (name my_library)\n ; …\n (preprocessing (pps ppx_rocq)))\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepfl-systemf%2Fppx_rocq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fepfl-systemf%2Fppx_rocq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepfl-systemf%2Fppx_rocq/lists"}