🍺 BREW Explorer

← all formulae

brainfuck

brew install brainfuck v2.7.3 Apache-2.0

Interpreter for the brainfuck language

14
30-day installs · #7786
48
90-day · #7430
247
365-day · #6831
620
★ GitHub stars · updated 4y ago

Build dependencies

GitHub topics

brainfuck c interpreter optimizing

Links

Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [
    "cmake"
  ],
  "categories": [],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Interpreter for the brainfuck language",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:35:58+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "brainfuck",
  "github_default_branch": "master",
  "github_last_commit_at": "2022-02-05T23:23:21Z",
  "github_readme_excerpt": "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,",
  "github_repo": "fabianishere/brainfuck",
  "github_stars": 620,
  "github_topics": [
    "brainfuck",
    "c",
    "interpreter",
    "optimizing"
  ],
  "homepage": "https://github.com/fabianishere/brainfuck",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 14,
  "installs_365d": 247,
  "installs_90d": 48,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "Apache-2.0",
  "llm_generated_at": null,
  "llm_model": null,
  "name": "brainfuck",
  "oldnames": [],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 7786,
  "rank_365d": 6831,
  "rank_90d": 7430,
  "raw_hash": "db4eb7ad1a15dd7d",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/b/brainfuck.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [
    "libedit"
  ],
  "version_head": "HEAD",
  "version_stable": "2.7.3",
  "versioned_formulae": [],
  "why_use_this": null
}