{"id":23979447,"url":"https://github.com/csb6/vdm2cpp","last_synced_at":"2026-06-13T12:34:24.989Z","repository":{"id":270272544,"uuid":"909824106","full_name":"csb6/vdm2cpp","owner":"csb6","description":"VDM-SL to C++ translator plugin","archived":false,"fork":false,"pushed_at":"2025-01-04T20:17:16.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-03T21:56:04.106Z","etag":null,"topics":["vdm","vdm-sl"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/csb6.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}},"created_at":"2024-12-29T22:00:37.000Z","updated_at":"2025-01-04T20:17:19.000Z","dependencies_parsed_at":"2024-12-29T23:27:07.757Z","dependency_job_id":null,"html_url":"https://github.com/csb6/vdm2cpp","commit_stats":null,"previous_names":["csb6/vdm2cpp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/csb6/vdm2cpp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csb6%2Fvdm2cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csb6%2Fvdm2cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csb6%2Fvdm2cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csb6%2Fvdm2cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csb6","download_url":"https://codeload.github.com/csb6/vdm2cpp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csb6%2Fvdm2cpp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34285190,"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-13T02:00:06.617Z","response_time":62,"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":["vdm","vdm-sl"],"created_at":"2025-01-07T09:54:59.940Z","updated_at":"2026-06-13T12:34:24.963Z","avatar_url":"https://github.com/csb6.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VDM2CPP\n\nA prototype translator of a subset of VDM-SL into C++, built as a plugin to [VDMJ](https://github.com/nickbattle/vdmj)\n\nIntended as a small experiment and not a complete translator, but supports translating basic VDM type definitions and\nfunction signatures into C++ equivalents.\n\n## Types\n\n|       VDM-SL             |              C++               |\n| ------------------------ | ------------------------------ |\n| `bool`                   | `bool`                         |\n| `NamedType = OtherType`  | `using NamedType = OtherType;` |\n| `TypeA \\| TypeB`         | `std::variant\u003cTypeA, TypeB\u003e`   |\n| `TypeA * TypeB`          | `std::tuple\u003cTypeA, TypeB\u003e`     |\n| `Record :: a: A b: B`    | `struct Record { A a; B b; };` |\n| `[A]`                    | `std::optional\u003cA\u003e`             |\n| `set of char`            | `std::set\u003cchar\u003e`               |\n| `seq of char`            | `std::string`                  |\n| `seq of A`               | `std::vector\u003cA\u003e`               |\n| `map char to A`          | `std::map\u003cchar, A\u003e`            |\n| `A -\u003e B`                 | `std::function\u003cB(A)\u003e`          |\n\nCurrently numeric types are not being translated properly; the idea is to translate `nat`, `int`, `rat`, etc. into\nBigInt and BigFloat C++ types, and have annotations to mark VDM integer types with bounded sizes into corresponding\nC++ primitive integer types.\n\n## Functions\n\nCurrently only function signatures (not bodies) are translated. Curried functions are not translated,\nand functions with parameters other than identifiers and ignore patterns are also not translated.\n\n# License\n\nAll files in this repository are licensed under the GPLv3 license. See LICENSE for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsb6%2Fvdm2cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsb6%2Fvdm2cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsb6%2Fvdm2cpp/lists"}