{"id":19541844,"url":"https://github.com/wasi0013/bfc","last_synced_at":"2025-07-24T22:13:43.939Z","repository":{"id":77804525,"uuid":"247093438","full_name":"wasi0013/bfc","owner":"wasi0013","description":"Brainfuck Compiler in Elixir","archived":false,"fork":false,"pushed_at":"2020-03-28T19:43:03.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-29T23:38:41.436Z","etag":null,"topics":["brainfuck-compiler","elixir"],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/wasi0013.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":"2020-03-13T14:43:24.000Z","updated_at":"2021-09-04T14:25:13.000Z","dependencies_parsed_at":"2023-02-25T21:15:19.548Z","dependency_job_id":null,"html_url":"https://github.com/wasi0013/bfc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wasi0013/bfc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wasi0013%2Fbfc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wasi0013%2Fbfc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wasi0013%2Fbfc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wasi0013%2Fbfc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wasi0013","download_url":"https://codeload.github.com/wasi0013/bfc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wasi0013%2Fbfc/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266911081,"owners_count":24005041,"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","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"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":["brainfuck-compiler","elixir"],"created_at":"2024-11-11T03:12:09.022Z","updated_at":"2025-07-24T22:13:43.909Z","avatar_url":"https://github.com/wasi0013.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bfc\n\n![Elixir CI](https://github.com/wasi0013/bfc/workflows/Elixir%20CI/badge.svg?branch=master)\n\n[Brainfuck](https://en.wikipedia.org/wiki/Brainfuck) Compiler written in Elixir\n\n# Compile\n\n - Clone this repository.\n - Check all the tests are passing by running `mix test`\n - Generate an executable by running the command: `mix escript.build`\n - The above command should generate an executable named `bfc`\n \n# Run\n\n  `./bfc \u003cpath of brainfuck source code\u003e`\n  \n  **example:**\n  `./bfc test/fixtures/test_code.bf`\n  \n# Try it using REPL\n\n - type `iex -S mix` in the project folder\n - Execute a brainfuck code using: `Bfc.Compiler.execute(\"BF CODE\")`\n - Compile a brainfuck source code: `Bfc.Compiler.compile(\"path/to/source.bf\")`\n\n**Example:**  \n\n```\n{_,_, output} = Bfc.Compiler.execute(\"+++++++++++\u003e+\u003e\u003e\u003e\u003e++++++++++++++++++++++++++++++++++++++++++++\u003e++++++++++++++++++++++++++++++++\u003c\u003c\u003c\u003c\u003c\u003c[\u003e[\u003e\u003e\u003e\u003e\u003e\u003e+\u003e+\u003c\u003c\u003c\u003c\u003c\u003c\u003c-]\u003e\u003e\u003e\u003e\u003e\u003e\u003e[\u003c\u003c\u003c\u003c\u003c\u003c\u003c+\u003e\u003e\u003e\u003e\u003e\u003e\u003e-]\u003c[\u003e++++++++++[-\u003c-[\u003e\u003e+\u003e+\u003c\u003c\u003c-]\u003e\u003e\u003e[\u003c\u003c\u003c+\u003e\u003e\u003e-]+\u003c[\u003e[-]\u003c[-]]\u003e[\u003c\u003c[\u003e\u003e\u003e+\u003c\u003c\u003c-]\u003e\u003e[-]]\u003c\u003c]\u003e\u003e\u003e[\u003e\u003e+\u003e+\u003c\u003c\u003c-]\u003e\u003e\u003e[\u003c\u003c\u003c+\u003e\u003e\u003e-]+\u003c[\u003e[-]\u003c[-]]\u003e[\u003c\u003c+\u003e\u003e[-]]\u003c\u003c\u003c\u003c\u003c\u003c\u003c]\u003e\u003e\u003e\u003e\u003e[++++++++++++++++++++++++++++++++++++++++++++++++.[-]]++++++++++\u003c[-\u003e-\u003c]\u003e++++++++++++++++++++++++++++++++++++++++++++++++.[-]\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c\u003c[\u003e\u003e\u003e+\u003e+\u003c\u003c\u003c\u003c-]\u003e\u003e\u003e\u003e[\u003c\u003c\u003c\u003c+\u003e\u003e\u003e\u003e-]\u003c-[\u003e\u003e.\u003e.\u003c\u003c\u003c[-]]\u003c\u003c[\u003e\u003e+\u003e+\u003c\u003c\u003c-]\u003e\u003e\u003e[\u003c\u003c\u003c+\u003e\u003e\u003e-]\u003c\u003c[\u003c+\u003e-]\u003e[\u003c+\u003e-]\u003c\u003c\u003c-]\")\n```\nthe output should be the [fibonacci](https://en.wikipedia.org/wiki/Fibonacci_number) series \n```\n\"1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89\"\n```\n\n## Installation as a Package\n\nThe package can be installed from github by adding `bfc` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:bfc, git: \"https://github.com/wasi0013/bfc.git\"}\n  ]\nend\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwasi0013%2Fbfc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwasi0013%2Fbfc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwasi0013%2Fbfc/lists"}