{"id":25371207,"url":"https://github.com/ugnmura/bf-transpiler","last_synced_at":"2025-04-09T08:24:47.426Z","repository":{"id":118502899,"uuid":"467241276","full_name":"ugnmura/bf-transpiler","owner":"ugnmura","description":"Simple brainf**k transpiler written in C.","archived":false,"fork":false,"pushed_at":"2022-04-10T12:33:44.000Z","size":36,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-15T02:35:35.574Z","etag":null,"topics":["brainfuck","c","cmake","compiler","transpiler"],"latest_commit_sha":null,"homepage":"","language":"C","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/ugnmura.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":"2022-03-07T20:00:26.000Z","updated_at":"2023-02-15T10:24:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"a0d47462-1263-4389-93ec-02a715868f4a","html_url":"https://github.com/ugnmura/bf-transpiler","commit_stats":null,"previous_names":["ugnmura/bf-transpiler"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ugnmura%2Fbf-transpiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ugnmura%2Fbf-transpiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ugnmura%2Fbf-transpiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ugnmura%2Fbf-transpiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ugnmura","download_url":"https://codeload.github.com/ugnmura/bf-transpiler/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248001398,"owners_count":21031402,"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":["brainfuck","c","cmake","compiler","transpiler"],"created_at":"2025-02-15T02:32:50.416Z","updated_at":"2025-04-09T08:24:47.402Z","avatar_url":"https://github.com/ugnmura.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Brainf**k Transpiler\n\nSimple brainf**k transpiler written in C.\n\n## Getting Started\nClone the repo\n```bash\ngit clone https://github.com/SushiWaUmai/bf-transpiler.git\n```\n\nGenerate the project using CMake\n```bash\nmkdir build \u0026\u0026 cd build\ncmake ..\n```\n\n## Usage\nHere is a simple example how to print the string \"Hello, World!\"\n\n```C\n#include \"bf.h\"\n\nint main(void)\n{\n    // Create the output stream\n    FILE *bf_output = fopen(\"output.bf\", \"w\");\n    \n    // Initialize the brainf**k transpiler\n    bf_t *bf = bf_init(bf_output);\n\n    // Open a scope in the stack memory\n    bf_open_scope(bf);\n    {\n        // allocate a buffer for the string and populate the buffer with \"Hello, World!\\n\"\n        bf_ptr_t hello_world_ptr = bf_create_buffer(bf, \"Hello, World!\\n\", 14);\n        bf_print_ascii_buffer_l(bf, hello_world_ptr, 14);\n    }\n    // Close the scope in the stack memory and free the memory\n    bf_close_scope(bf);\n\n    // Close the output stream\n    fclose(bf_output);\n    \n    // Free the brainf**k transpiler\n    bf_terminate(bf);\n}\n```\n\nThis code will generate a file named `output.bf` that will print the string `\"Hello, World!\"` in the brainf**k language.\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fugnmura%2Fbf-transpiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fugnmura%2Fbf-transpiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fugnmura%2Fbf-transpiler/lists"}