{"id":15810002,"url":"https://github.com/eddymens/brainkfuck-php-methodchain","last_synced_at":"2025-04-01T00:40:40.325Z","repository":{"id":163220234,"uuid":"91211020","full_name":"EDDYMENS/brainkFuck-PHP-methodChain","owner":"EDDYMENS","description":"Implementation of BrainFuck using a PHP method chain","archived":false,"fork":false,"pushed_at":"2017-05-14T06:32:54.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-06T03:42:07.462Z","etag":null,"topics":["brainfuck","brainfuck-interpreter","method-chaining","php"],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/EDDYMENS.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":"2017-05-14T00:47:42.000Z","updated_at":"2017-05-14T06:30:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"9f2f39f4-f4ff-4fe4-888b-c387904c27fc","html_url":"https://github.com/EDDYMENS/brainkFuck-PHP-methodChain","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EDDYMENS%2FbrainkFuck-PHP-methodChain","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EDDYMENS%2FbrainkFuck-PHP-methodChain/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EDDYMENS%2FbrainkFuck-PHP-methodChain/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EDDYMENS%2FbrainkFuck-PHP-methodChain/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EDDYMENS","download_url":"https://codeload.github.com/EDDYMENS/brainkFuck-PHP-methodChain/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246563370,"owners_count":20797444,"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","brainfuck-interpreter","method-chaining","php"],"created_at":"2024-10-05T03:42:05.112Z","updated_at":"2025-04-01T00:40:40.308Z","avatar_url":"https://github.com/EDDYMENS.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# brainkFuck-PHP-methodChain\nImplementation of BrainFUck using a PHP method chain\nFor some reason I felt like implementing the brainFUck language using a method chain instead of using  some lexer and parser. \nAt least this gives it the speed of executing a normal PHP file plus this is way easy to do compared to dealing with lexers and parsers.\n\n## Want to run this ?\n- First make sure you have good old PHP installed. \n- Next cd into the brainFuck-PHP-methodChain dir and start the inbuilt PHP server `php -S localhost:5050`.\n- Feel free to edit the `Hello World! ` example or just write your own.  \n\n## BrainFUck Syntax\n- `-\u003eshiftFwd()` or `-\u003eshiftFwd(n)` decreament the data pointer (by one or n respectively) to point to the next cell to the right.\n- `-\u003eshiftBck()` or `-\u003eshiftBck(n)` \tdecrement the data pointer (by one or n respectively) to point to the next cell to the left.\n- `-\u003einc()` or - `-\u003einc(n)` increment (increase by one or n respectively) the byte at the data pointer.\n- `-\u003edec()` or - `-\u003edec(n)` (decrease by one or n respectively) the byte at the data pointer.\n\n- `-\u003eoutput()` output the byte at the data pointer. Also pass in false to mute output.\n- `-\u003einput()`\taccept one byte of input, storing its value in the byte at the data pointer.\n- `-\u003elabel('sample_label')`\tif the byte at the data pointer is zero, then instead of moving the instruction pointer forward to the next command, jump it forward to the command after the matching `-\u003ejmp('sample_label')` command.\n- `-\u003ejmp('sample_label')`\tif the byte at the data pointer is nonzero, then instead of moving the instruction pointer forward to the next command, jump it back to the command after the matching `-\u003elabel()` command.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feddymens%2Fbrainkfuck-php-methodchain","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feddymens%2Fbrainkfuck-php-methodchain","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feddymens%2Fbrainkfuck-php-methodchain/lists"}