https://github.com/RKirlew/Brainfart-Interpreter-In-C
Brainfart is a toy language made by me. It was inspired by Brainf*ck,however Brainfart is somewhat simplified.
https://github.com/RKirlew/Brainfart-Interpreter-In-C
brainfuck-interpreter c interpreter toy-language
Last synced: about 1 month ago
JSON representation
Brainfart is a toy language made by me. It was inspired by Brainf*ck,however Brainfart is somewhat simplified.
- Host: GitHub
- URL: https://github.com/RKirlew/Brainfart-Interpreter-In-C
- Owner: RKirlew
- Created: 2019-02-15T21:28:22.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-01-09T01:00:47.000Z (5 months ago)
- Last Synced: 2025-04-25T05:03:32.991Z (about 2 months ago)
- Topics: brainfuck-interpreter, c, interpreter, toy-language
- Language: C
- Homepage:
- Size: 3.91 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- AwesomeInterpreter - Brainfart-Interpreter-In-C
README
# Brainfart-Interpreter-In-C
Brainfart is a toy language made by me. It was inspired by Brainf*ck,however Brainfart is somewhat simplified. This was made by a very
tired individual who also cries in the shower,forgive me.# Brainfart Programming Language
## Introduction
**Brainfart** is a simplified version of the Brainf*ck programming language. It was created as a fun and personal project, inspired by the complexity and challenge of Brainf*ck. **Brainfart** aims to be an easier and less intimidating implementation, while still providing a unique experience for low-level programming.
This implementation of **Brainfart** supports basic operations such as memory manipulation (`>`, `<`, `+`, `-`), I/O operations (`.`, `,`), and some additional commands (`*`, `:`, `^`).
---
## Features
- **Memory Manipulation**:
- `>`: Increment the memory pointer.
- `<`: Decrement the memory pointer.
- `+`: Increment the value at the current memory pointer.
- `-`: Decrement the value at the current memory pointer.- **Input/Output**:
- `.`: Output the ASCII value of the current memory pointer.
- `,`: Accept input and store it in the current memory pointer.- **Special Commands**:
- `*`: Increment the value by 10.
- `:`: Decrement the value by 10.
- `^`: Square the value at the current memory pointer.- **Looping**:
- `[` and `]`: Loop until the memory at the current pointer is 0.---
## Code Example
```c
*******++.>*^+.>*^*--.>*^*--.>*^*+.>.>*^:---.>*^*+.>*^*++++.>*^*--.>*^.>***+++. // Prints "Hello World!"