Skip to content

The Brainfuck Interpreter is a graphical application for executing Brainfuck programs. It features an intuitive interface that allows users to write code, run it, and visualize memory states and outputs in real-time.

Notifications You must be signed in to change notification settings

LynnDelpy/BrainfuckInterpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brainfuck Interpreter

Welcome to the Brainfuck Interpreter! This project is a graphical user interface (GUI) application that allows you to write and execute Brainfuck code easily. The interpreter supports basic Brainfuck operations and visualizes the state of memory during execution.

Table of Contents

Features

  • Simple GUI: An intuitive interface for writing and executing Brainfuck code.
  • Memory Visualization: Displays the state of memory cells being used.
  • Input Handling: Supports user input for Brainfuck programs.
  • Output Display: Shows the output generated by the Brainfuck program.

Getting Started

Prerequisites

Make sure you have Java Development Kit (JDK) installed on your machine.

Clone the Repository

git clone https://github.com/LynnDelpy/brainfuck-interpreter.git
cd brainfuck-interpreter

Compile and Run

javac *.java
java Main

Usage

  1. Open the application.
  2. Write your Brainfuck code in the editor.
  3. Input any required data in the input field.
  4. Click the "Run" button to execute the code.
  5. View the output and memory state in the designated areas.

Example Code

++++++++[>++++++>+++>+++>+<<<<-]>+++++.>+++++.>+++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>++++++++++.

Code Structure

The project is organized into several classes:

  • BrainfuckInterpreter: Core logic for interpreting Brainfuck code.
  • Memory: Manages the memory cells and their states.
  • InputHandler: Handles input for the Brainfuck program.
  • BrainfuckInterpreterGUI: Interface for the GUI components.
  • SwingBrainfuckInterpreterGUI: Concrete Swing implementation of the GUI.
  • Main: Entry point for the application.

About

The Brainfuck Interpreter is a graphical application for executing Brainfuck programs. It features an intuitive interface that allows users to write code, run it, and visualize memory states and outputs in real-time.

Topics

Resources

Stars

Watchers

Forks

Languages