https://github.com/misteo/b-k
A Turing completeness Language based on BrainF**k
https://github.com/misteo/b-k
Last synced: 9 months ago
JSON representation
A Turing completeness Language based on BrainF**k
- Host: GitHub
- URL: https://github.com/misteo/b-k
- Owner: MistEO
- License: mit
- Created: 2021-12-17T17:19:40.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-18T14:42:01.000Z (over 4 years ago)
- Last Synced: 2025-03-02T01:15:52.137Z (over 1 year ago)
- Language: C++
- Size: 3.91 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# B-K
A Turing completeness Language modeled on [Brainfuck](https://en.wikipedia.org/wiki/Brainfuck)
And when you don't enter params, it will print `Hello World`
## Sample
```bash
g++ main.cpp -o bk
./bk hello.bk
```
## Commands
The eight language commands each consist of a single character:
| Character | Meaning |
| :-: | :- |
|> | Increment the data pointer (to point to the next cell to the right). |
|< | Decrement the data pointer (to point to the next cell to the left). |
|+ | Increment (increase by one) the byte at the data pointer. |
|- | Decrement (decrease by one) the byte at the data pointer. |
|. | Output the byte at the data pointer. |
|, | Accept one byte of input, storing its value in the byte at the data pointer. |
|[ | If 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 ] command. |
|] |If 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 [ command. |