A simplistic Brainfuck to IL compiler.
Note The .NET 7.0 SDK is required to install and run this tool.
Run the following commands in your favorite terminal:
git clone https://github.com/thinker227/BrainfuckToIL.git/
cd BrainfuckToIL
./install-tool.ps1
If you get an error attempting to run the Powershell script, you can instead manually run the commands in install-tool.ps1.
A Nuget package is currently not available.
Compile a Brainfuck file to a .NET executable:
# Compile source file
bftoil foo.bf
# Run output executable
./foo.exe
You can alternatively specify whether to output a DLL or exe, of which exe is the default:
# Output an exe
bftoil bar.bf -o exe
# Output a DLL
bftoil bar.bf -o dll
You can also explicitly specify the output file or directory:
# Output to baz.exe
bftoil baz.bf baz.exe
# Output to a subdirectory
bftoil baz.bf output/
Run a Brainfuck file without having to compile to an executable file first:
bftoil run qux.bf
See the CLI docs for a more extensive overview of commands.