{"id":16763892,"url":"https://github.com/cmdada/brainfuckinterpreterpy","last_synced_at":"2025-03-16T11:11:30.067Z","repository":{"id":172121532,"uuid":"605252089","full_name":"cmdada/BrainFuckInterpreterPy","owner":"cmdada","description":"This is a simple Brainfuck interpreter written in Python. Brainfuck is a minimalist programming language known for its extreme minimalism and difficulty to read and write. It consists of only eight commands, each represented by a single character.  This interpreter can load Brainfuck programs from files and interpret them. ","archived":false,"fork":false,"pushed_at":"2023-10-25T03:09:36.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T23:11:35.834Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cmdada.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}},"created_at":"2023-02-22T19:14:49.000Z","updated_at":"2023-10-25T03:10:42.000Z","dependencies_parsed_at":"2023-07-22T13:45:49.508Z","dependency_job_id":null,"html_url":"https://github.com/cmdada/BrainFuckInterpreterPy","commit_stats":null,"previous_names":["uwuimapewson/brainfuckinterpreterpy","cmdada/brainfuckinterpreterpy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmdada%2FBrainFuckInterpreterPy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmdada%2FBrainFuckInterpreterPy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmdada%2FBrainFuckInterpreterPy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmdada%2FBrainFuckInterpreterPy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cmdada","download_url":"https://codeload.github.com/cmdada/BrainFuckInterpreterPy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243858058,"owners_count":20359269,"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":[],"created_at":"2024-10-13T05:23:50.814Z","updated_at":"2025-03-16T11:11:30.041Z","avatar_url":"https://github.com/cmdada.png","language":"Python","readme":"docs written by an llm with everything tested\n\n# Brainfuck Interpreter\n\nThis is a simple Brainfuck interpreter written in Python. It is capable of loading Brainfuck programs from files and interpreting them.\n\n## Usage\n\nTo use the interpreter, run the following command in your terminal:\n\npython3 bf.py program.bf\n\n\n\n\nReplace `program.bf` with the path to the Brainfuck program you want to run.\n\nThe interpreter will load the program from the file and execute it. Any output generated by the program will be printed to the console.\n\nThe interpreter supports input from the user using the `,` command. When the program encounters a `,` command, it will wait for the user to input a single character, which will be read and stored in the current cell of the program's data array.\n\n## Features\n\nThe Brainfuck interpreter supports the following commands:\n\n| Command | Description |\n|---------|-------------|\n| \u003e       | Move the data pointer to the right |\n| \u003c       | Move the data pointer to the left |\n| +       | Increment the value at the current cell |\n| -       | Decrement the value at the current cell |\n| .       | Output the value at the current cell as a character |\n| ,       | Read a single character of input from the user and store it in the current cell |\n| [       | If the current cell is zero, jump to the corresponding ] command. Otherwise, push the current code pointer onto a loop stack |\n| ]       | If the current cell is non-zero, jump to the corresponding [ command. Otherwise, pop the last code pointer from the loop stack |\n\nThe interpreter also ignores any characters in the input file that are not one of the above commands.\n\n## Examples\n\nHere are some example Brainfuck programs you can run with the interpreter:\n\n### Hello World\n\nThis program prints the string \"Hello World!\" to the console:\n\n++++++++[\u003e++++[\u003e++\u003e+++\u003e+++\u003e+\u003c\u003c\u003c\u003c-]\u003e+\u003e+\u003e-\u003e\u003e+[\u003c]\u003c-]\u003e\u003e.\u003e---.+++++++..+++.\u003e\u003e.\u003c-.\u003c.+++.------.--------.\u003e\u003e+.\u003e++.\n\n\nSave this program to a file named `hello.bf` and run the following command:\n\npython3 bf.py hello.bf\n\n\nThe program should output the following message to the console:\n\nHello World!\n\n### Echo\n\nThis program reads a character of input from the user and then echoes it back to the console:\n\n,.\n\nSave this program to a file named `echo.bf` and run the following command:\n\npython3 bf.py echo.bf\n\nThe program should prompt you to enter a character. After you enter a character and press Enter, the program will output the character you entered to the console.\n\n## Contributing\n\nIf you find a bug or have an idea for a new feature, feel free to open an issue or submit a pull request. I welcome contributions from anyone!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmdada%2Fbrainfuckinterpreterpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcmdada%2Fbrainfuckinterpreterpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmdada%2Fbrainfuckinterpreterpy/lists"}