{"id":22701912,"url":"https://github.com/saphereye/brainfuck-interpreter","last_synced_at":"2025-03-29T19:25:58.065Z","repository":{"id":209082740,"uuid":"684014812","full_name":"Saphereye/brainfuck-interpreter","owner":"Saphereye","description":"An implementation of a brainfuck interpreter in Rust","archived":false,"fork":false,"pushed_at":"2024-07-03T16:28:15.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-04T20:17:48.864Z","etag":null,"topics":["brainfuck-interpreter","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/Saphereye.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-08-28T09:16:02.000Z","updated_at":"2024-07-03T16:28:19.000Z","dependencies_parsed_at":"2023-11-25T00:20:03.500Z","dependency_job_id":"b0949417-e79c-4f40-81ac-7951dab9847b","html_url":"https://github.com/Saphereye/brainfuck-interpreter","commit_stats":null,"previous_names":["saphereye/brainfuck-interpreter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saphereye%2Fbrainfuck-interpreter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saphereye%2Fbrainfuck-interpreter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saphereye%2Fbrainfuck-interpreter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Saphereye%2Fbrainfuck-interpreter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Saphereye","download_url":"https://codeload.github.com/Saphereye/brainfuck-interpreter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246232793,"owners_count":20744715,"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-interpreter","rust"],"created_at":"2024-12-10T07:11:03.975Z","updated_at":"2025-03-29T19:25:58.043Z","avatar_url":"https://github.com/Saphereye.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Brainf*ck interpreter in Rust ![Rust](https://img.shields.io/badge/rust-%23000000.svg?style=for-the-badge\u0026logo=rust\u0026logoColor=white) \nImplemented a [brainf*ck](https://esolangs.org/wiki/Brainfuck) interpreter in Rust.\n\nThe logic for the programming language can be summarised as follows:\n| Instruction | Description |\n|-------------|-------------|\n| `\u003c`         | head0 = head0 - 1 |\n| `\u003e`         | head0 = head0 + 1 |\n| `{`         | head1 = head1 - 1 |\n| `}`         | head1 = head1 + 1 |\n| `-`         | tape[head0] = tape[head0] - 1 |\n| `+`         | tape[head0] = tape[head0] + 1 |\n| `.`         | tape[head1] = tape[head0] |\n| `,`         | tape[head0] = tape[head1] |\n| `[`         | if (tape[head0] == 0): jump forwards to matching `]` command. |\n| `]`         | if (tape[head0] != 0): jump backwards to matching `[` command. |\n\n\u003e source: arXiv:2406.19108\n\n## Usage\nThe program has a bunch of helpful CLI commands. An example usage while using this repo:\n```cargo run --release -- --input examples/serpinkski.b```\n\n## Developing\nTo turn on the debug mode, the program must first be compiled in the `debug` profile.\nThen while running the program set the `RUST_LOG` env variable (to `DEBUG`, `TRACE`, etc.).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaphereye%2Fbrainfuck-interpreter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaphereye%2Fbrainfuck-interpreter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaphereye%2Fbrainfuck-interpreter/lists"}