-
Notifications
You must be signed in to change notification settings - Fork 401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(examples): Brainfuck Interpreter #4062
Conversation
🛠 PR Checks SummaryAll Automated Checks passed. ✅ Manual Checks (for Reviewers):
Read More🤖 This bot helps streamline PR reviews by verifying automated checks and providing guidance for contributors and reviewers. ✅ Automated Checks (for Contributors):🟢 Maintainers must be able to edit this pull request (more info) ☑️ Contributor Actions:
☑️ Reviewer Actions:
📚 Resources:Debug
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI, p/demo/bf exists
But this looks good to be added in your namespace :)
@thehowl yeah! I saw that it existed. The big difference is, this implementation supports processing input as well, not just code. |
I did this for the fun of it.
This is a minimalist implementation of Brainfuck that supports processing inputs. This is a simple, but complete, implementation of the language, and it properly handles overflow.
Features:
pointer
,cursor
andi
as non-negative indexes