Skip to content

Brainfart is a toy language made by Lukeres. It was inspired by Brainf*ck,however Brainfart is somewhat simplified.

Notifications You must be signed in to change notification settings

RKirlew/Brainfart-Interpreter-In-C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

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 Brainfck programming language. It was created as a fun and personal project, inspired by the complexity and challenge of Brainfck. 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

*******++.>*^+.>*^*--.>*^*--.>*^*+.>.>*^:---.>*^*+.>*^*++++.>*^*--.>*^.>***+++. // Prints "Hello World!"
  

About

Brainfart is a toy language made by Lukeres. It was inspired by Brainf*ck,however Brainfart is somewhat simplified.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages