{"id":13730062,"url":"https://github.com/progbits/spacebar","last_synced_at":"2025-05-08T02:31:03.167Z","repository":{"id":134311426,"uuid":"351936581","full_name":"progbits/spacebar","owner":"progbits","description":"A C to Whitespace transpiler.","archived":false,"fork":false,"pushed_at":"2022-06-25T11:44:44.000Z","size":75,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-14T20:39:07.975Z","etag":null,"topics":["c","esolang","menhi","ocaml","transpiler","whitespace"],"latest_commit_sha":null,"homepage":"","language":"OCaml","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/progbits.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-03-26T23:26:24.000Z","updated_at":"2023-07-06T14:06:01.000Z","dependencies_parsed_at":"2023-07-25T15:16:09.657Z","dependency_job_id":null,"html_url":"https://github.com/progbits/spacebar","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/progbits%2Fspacebar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/progbits%2Fspacebar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/progbits%2Fspacebar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/progbits%2Fspacebar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/progbits","download_url":"https://codeload.github.com/progbits/spacebar/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252986675,"owners_count":21836204,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["c","esolang","menhi","ocaml","transpiler","whitespace"],"created_at":"2024-08-03T02:01:09.340Z","updated_at":"2025-05-08T02:31:03.160Z","avatar_url":"https://github.com/progbits.png","language":"OCaml","funding_links":[],"categories":["High level imperative languages"],"sub_categories":["Esoteric Subset C compilers"],"readme":"# Spacebar\n\nA [C](https://en.wikipedia.org/wiki/The_C_Programming_Language) to\n[Whitespace](https://en.wikipedia.org/wiki/Whitespace_(programming_language))\ntranspiler.\n\n## Getting Started\n\nSpacebar is written in [OCaml](https://ocaml.org/), instructions on how to install\nOCaml for your operating system can be found in the [offical\ndocumentation](https://ocaml.org/docs/install.html).\n\nSpacebar uses the [Dune](https://github.com/ocaml/dune) build\nsystem. Instructions on installing Dune can be found in the [project\ndocumentation](https://github.com/ocaml/dune#installation).\n\nOnce you have installed OCaml and Dune, the project can be built by running\n\n```shell\ndune build\n```\n\nOnce built, the `spacebar.exe` build artifact can be found in the\n`_build/default` directory.\n\n## Usage\n\nSpacebar reads C code from stdin and outputs transpiled Whitespace code to\nstdout. For example, to transpile one of the examples in the functional test\nsuite to a file called `out.ws`:\n\n```shell\ncat test/basic_main.c | ./_build/default/spacebar.exe \u003e out.ws\n```\n\n## Testing\n\nA [Bats](https://github.com/bats-core/bats-core) based functional test suite is\nprovided in the [`test`](https://github.com/progbits/spacebar/tree/main/test)\ndirectory. By default the test suite expects an existing Whitespace interpreter\non the path with the name `wspace`. The Spacebar binary used for testing is\nsourced from the default build directory (`_build/default/`).\n\nTo run the test suite:\n\n```shell\n./test/functional.sh\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogbits%2Fspacebar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprogbits%2Fspacebar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogbits%2Fspacebar/lists"}