{"id":13439457,"url":"https://github.com/fabianishere/brainfuck","last_synced_at":"2025-10-21T04:53:26.271Z","repository":{"id":1775019,"uuid":"2697521","full_name":"fabianishere/brainfuck","owner":"fabianishere","description":"Brainfuck interpreter written in C","archived":false,"fork":false,"pushed_at":"2022-02-05T23:23:21.000Z","size":861,"stargazers_count":511,"open_issues_count":6,"forks_count":72,"subscribers_count":16,"default_branch":"master","last_synced_at":"2024-04-14T05:08:05.049Z","etag":null,"topics":["brainfuck","c","interpreter","optimizing"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fabianishere.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-11-02T19:44:53.000Z","updated_at":"2024-04-12T12:31:43.000Z","dependencies_parsed_at":"2022-08-06T11:01:25.186Z","dependency_job_id":null,"html_url":"https://github.com/fabianishere/brainfuck","commit_stats":null,"previous_names":["fabianm/brainfuck"],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabianishere%2Fbrainfuck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabianishere%2Fbrainfuck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabianishere%2Fbrainfuck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabianishere%2Fbrainfuck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabianishere","download_url":"https://codeload.github.com/fabianishere/brainfuck/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221739721,"owners_count":16872775,"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","interpreter","optimizing"],"created_at":"2024-07-31T03:01:14.059Z","updated_at":"2025-10-21T04:53:21.236Z","avatar_url":"https://github.com/fabianishere.png","language":"C","funding_links":[],"categories":["C","C (61)"],"sub_categories":[],"readme":"brainfuck\n[![Build Status](https://github.com/fabianishere/brainfuck/workflows/Build/badge.svg)](https://github.com/fabianishere/brainfuck/actions?query=workflow%3ABuild)\n===========\nBrainfuck interpreter written in C.\n\n## Usage\n    brainfuck [-veh] file...\n\t-e --eval\trun code directly\n\t-v --version\tshow version information\n\t-h --help\tshow a help message.\n\nThe interactive console can be accessed by passing no arguments.    \n\nWe also provide a C api:\n\n``` c\n#include \u003cstdio.h\u003e\n#include \u003cstdlib.h\u003e\n#include \u003cbrainfuck.h\u003e\n    \nint main() {\n\tBrainfuckState *state = brainfuck_state();\n\tBrainfuckExecutionContext *context = brainfuck_context(BRAINFUCK_TAPE_SIZE);\n\tBrainfuckInstruction *instruction = brainfuck_parse_string(\",+++++.\");\n \tbrainfuck_add(state, instruction);\n \tbrainfuck_execute(state-\u003eroot, context);\n\tbrainfuck_destroy_context(context);\n \tbrainfuck_destroy_state(state);\n\treturn EXIT_SUCCESS;\n}\n```\n\n## Examples\nThe [examples/](/examples) directory contains a large amount of \nbrainfuck example programs. We have tried to attribute the original\nauthors of these programs where possible.\n\n## Getting the source\nDownload the source code by running the following code in your command prompt:\n```sh\n$ git clone https://github.com/fabianishere/brainfuck.git\n```\nor simply [grab](https://github.com/fabianishere/brainfuck/archive/master.zip) a copy of the source code as a Zip file.\n\n## Building\nCreate the build directory.\n```sh\n$ mkdir build\n$ cd build\n```\nBrainfuck requires CMake and a C compiler (e.g. Clang or GCC) in order to run. It also depends on [libedit](http://thrysoee.dk/editline/), which is available in the main repositories of most Linux distributions (e.g. as [libedit-dev](https://packages.debian.org/stretch/libedit-dev) on Debian/Ubuntu) and comes with the macOS XCode command line tools. \nThen, simply create the Makefiles:\n```sh\n$ cmake ..\n```\nand finally, build it using the building system you chose (e.g. Make):\n```sh\n$ make\n```\n\nAfter the build has been finished, you may install the binaries to your local system (see [CMAKE\\_INSTALL\\_PREFIX](https://cmake.org/cmake/help/v3.0/variable/CMAKE_INSTALL_PREFIX.html) for information about the install prefix):\n```sh\n$ make install\n```\nAlternatively, you may run the interpreter directly without installation, for instance:\n```sh\n$ ./brainfuck ../examples/hello.bf\n```\n\n## License\nThe code is released under the Apache License version 2.0. See [LICENSE.txt](/LICENSE.txt).\n\n## Contributors\n\tFabian Mastenbroek https://github.com/fabianishere\n\taliclubb https://github.com/aliclubb\n\tdiekmann https://github.com/diekmann\n\tSevenBits https://github.com/SevenBits\n\tAlex Burka https://github.com/durka\n\toutis https://github.com/outis\n\trien333 https://github.com/rien333\n\tboweiliu https://github.com/boweiliu\n\tRotartsi https://github.com/ROTARTSI82\n\tSaket Upadhyay https://github.com/Saket-Upadhyay\n\toutis https://github.com/outis\n\tJalmari91 https://github.com/Jalmari91\n\tAlok Singh https://github.com/alok\n\tLasse Damsgaard Skaalum https://github.com/humleflue\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabianishere%2Fbrainfuck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabianishere%2Fbrainfuck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabianishere%2Fbrainfuck/lists"}