Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dragonwasrobot/brainfuck
A brainfuck interpreter written in Elm
https://github.com/dragonwasrobot/brainfuck
brainfuck elm elm-lang interpreter
Last synced: 30 days ago
JSON representation
A brainfuck interpreter written in Elm
- Host: GitHub
- URL: https://github.com/dragonwasrobot/brainfuck
- Owner: dragonwasrobot
- License: mit
- Created: 2013-09-23T11:30:01.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2024-08-12T07:13:51.000Z (4 months ago)
- Last Synced: 2024-08-12T08:35:28.623Z (4 months ago)
- Topics: brainfuck, elm, elm-lang, interpreter
- Language: Elm
- Homepage:
- Size: 696 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Brainfuck
This is an implementation of a basic brainfuck interpreter written in Elm.
![Screenshot](/docs/screenshot.png)
## Commands
The brainfuck language consists of the following eight commands:
- `>` increments the data pointer
- `<` decrements the data pointer
- `+` increments the byte at the data pointer
- `-` decrements the byte at the data pointer
- `.` outputs the byte at the data pointer
- `,` prompts the user for a one byte input
- `[` jumps to the next `]` if the byte at the data pointer is zero
- `]` jumps to the previous `[` if the byte at the data pointer is nonzero## Installation
**An online demo can be found here:** https://www.dragonwasrobot.com/brainfuck/
Ensure you have Elm 0.19.1 installed. I personally recommend using asdf,
https://github.com/asdf-vm/asdf, to handle version management of compilers.With Elm installed, perform the following steps:
- Run the command `./build.sh` to compile the source, then
- open `docs/index.html` in your favorite browser.