Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dexmoh/brainfuck

A simple brainfuck interpreter written in C#
https://github.com/dexmoh/brainfuck

Last synced: 8 days ago
JSON representation

A simple brainfuck interpreter written in C#

Awesome Lists containing this project

README

        

# Brainfuck
[![Build Status](https://github.com/Ewwmewgewd/Brainfuck/workflows/.NET/badge.svg)](https://github.com/fabianishere/brainfuck/actions?query=workflow%3ABuild)
![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)

A simple brainfuck interpreter written in C#

## Usage
Just add Brainfuck.cs into your project folder.
```cs
using BrainfuckInterpreter;
```
```cs
public static void Main()
{
// Brainfuck code we want to interperet.
// This little program prints "Hello World!".
string code =
">+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.>>>++++++++[<++++>-]" +
"<.>>>++++++++++[<+++++++++>-]<---.<<<<.+++.------.--------.>>+.>++++++++++.";

// Run the code.
var bf = new Brainfuck(code);

// Get the results.
string output = bf.GetOuput();
}
```

## License
The code is released under the MIT License. See [LICENSE](/LICENSE).