Darragh.BrainfuckInterpreter 2025.6.6.2102

dotnet add package Darragh.BrainfuckInterpreter --version 2025.6.6.2102
                    
NuGet\Install-Package Darragh.BrainfuckInterpreter -Version 2025.6.6.2102
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Darragh.BrainfuckInterpreter" Version="2025.6.6.2102" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Darragh.BrainfuckInterpreter" Version="2025.6.6.2102" />
                    
Directory.Packages.props
<PackageReference Include="Darragh.BrainfuckInterpreter" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Darragh.BrainfuckInterpreter --version 2025.6.6.2102
                    
#r "nuget: Darragh.BrainfuckInterpreter, 2025.6.6.2102"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Darragh.BrainfuckInterpreter@2025.6.6.2102
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Darragh.BrainfuckInterpreter&version=2025.6.6.2102
                    
Install as a Cake Addin
#tool nuget:?package=Darragh.BrainfuckInterpreter&version=2025.6.6.2102
                    
Install as a Cake Tool

Darragh.BrainfuckInterpreter

Brainfuck is a minimalistic esoteric programming language created by Urban Müller in 1993.

This is a brainfuck parser and interpreter written in C#.

Components:

  • parser
  • interpreter

Modules:

  • Interpreter (Darragh.BrainfuckInterpreter)
  • Example (Darragh.BrainfuckInterpreter.Example)
  • UI (Darragh.BrainfuckInterpreter.UI)
    • Written using WinForms

Installation

This project is currently not on Nuget. You will need to clone it in order to use it.

This project is now available on Nuget as Darragh.BrainfuckInterpreter.

dotnet add package Darragh.BrainfuckInterpreter

Usage

using Darragh.BrainfuckInterpreter;
using Darragh.BrainfuckInterpreter.Tokens;

// Parse a program
Parser parser = new Parser(
    ".",
    ParserOptions.Default
);
Token[] tokens = parser.Parse();

// Interpret a program
Interpreter interpreter = new Interpreter(tokens, InterpreterOptions.Default);
interpreter.OnOutput += data => Console.Write((char)data);
interpreter.OnInput += () => (byte)Console.ReadKey(true).KeyChar;
interpreter.Run();

View example here.

Notes

Jump Pointers

The parser stores jump pointers within tokens. This is assigned depending on the token generated, rather than being identifed at interpretation time.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2025.6.6.2102 159 6/6/2025
2025.6.6.1442 154 6/6/2025
2025.6.6.1440 152 6/6/2025
2025.6.6.1437 153 6/6/2025
1.0.0 157 6/6/2025