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

https://github.com/sanelli/brainfuck

Collection of brainfuck interpreters for various languages (Go, C#, Python, C++, Pascal, Ada, C, D, Rust)
https://github.com/sanelli/brainfuck

ada brainfuck brainfuck-interpreter c cpp csharp dlang go pascal python rust rust-lang

Last synced: 2 months ago
JSON representation

Collection of brainfuck interpreters for various languages (Go, C#, Python, C++, Pascal, Ada, C, D, Rust)

Awesome Lists containing this project

README

          

# brainfuck
Collection of brainfuck interpreters written in various languages.

## Prerequisities
Prerequisites can be validated by running the `Check.ps1` script, possibly with a list of languages to validate. If the parameter `-Languages` is not provided then all supported languages are cheked. In case of failures will provide a set of links to follow to help with the installation.

Examples:
```powershell
./Scripts/Check.ps1
./Scripts/Check.ps1 -Languages:$("csharp", "python", "cpp")
```

### [C#](https://github.com/sanelli/brainfuck/tree/main/csharp)
- [dotnet](https://dotnet.microsoft.com) 8

### [Python](https://github.com/sanelli/brainfuck/tree/main/python)
- [python](https://www.python.org) 3.11.5

### [C++](https://github.com/sanelli/brainfuck/tree/main/cpp)
- [CMake](https://cmake.org) 3.27
- C++20 compiler (the `Check.ps1` does not validate this)

### [Go](https://github.com/sanelli/brainfuck/tree/main/go)
- [Go](https://go.dev) 1.21.3

### [Pascal](https://github.com/sanelli/brainfuck/tree/main/pascal)
- [Free pascal](https://www.freepascal.org) 3.2

### [Ada](https://github.com/sanelli/brainfuck/tree/main/ada)
- [Alire](https://alire.ada.dev) 2.0

### [C](https://github.com/sanelli/brainfuck/tree/main/c)
- [CMake](https://cmake.org) 3.27
- C17 compiler (the `Check.ps1` does not validate this)

### [D](https://github.com/sanelli/brainfuck/tree/main/d)
- [Dub](https://dub.pm) 1.37.0
- [dmd](https://dlang.org) 2.108.1

### [Rust](https://github.com/sanelli/brainfuck/tree/main/rust)
- [cargo](https://www.rust-lang.org) 1.78.0
- [rustc](https://www.rust-lang.org) 1.78.0

### [Erlang](https://github.com/sanelli/brainfuck/tree/main/erlang)
- [erl](https://www.erlang.org) 16.1.2

## Compile and test
```powershell
./Scripts/Build.ps1
./Scripts/RunHello.ps1
./Scripts/Test.ps1
```

Each script accepts a `-Language` parameter with a list of languages:
```powershell
./Scripts/Build.ps1 -Languages:$("csharp", "python", "cpp")
./Scripts/RunHello.ps1 -Languages:$("csharp", "cpp")
./Scripts/Test.ps1 -Languages:$("cpp")
```

## Screenshots

image