Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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#
- Host: GitHub
- URL: https://github.com/dexmoh/brainfuck
- Owner: dexmoh
- License: mit
- Created: 2022-01-03T21:30:37.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-01-07T20:41:26.000Z (about 3 years ago)
- Last Synced: 2024-01-15T20:27:41.165Z (about 1 year ago)
- Language: C#
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).