Skip to content

steviegt6/bfcil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BF2CIL

BF2CIL is a Brainfuck compiler written in C#, which can compile Brainfuck to .NET CIL.

Building

git clone https://github.com/steviegt6/bfcil.git
cd ./bfcil/src/
dotnet build -c "Release"

Compiler Usage

BF2CIL has an exposed public API as well as a private CLI infrastructure which can be accessed through dotnet BF2CIL.dll or by running the produced executable directly.

An example of the public API lies within the Program.cs file.

Command parameters and options are documented through the --help flag, a brief rundown is as follows:

Parameters

Index Name Description
0 input Input file path

Options

Name C Description
--output -o Output file path
--name -n Assembly name
--version -v Assembly version
--cell-count -c Cell count
--overwrite -w Overwrite output files
--generate-runtime-config -r Generate runtime config
--intercept-input -i Intercept input (don't display user input when prompted)

Decompiler Usage

BF2CIL also has a rudimentary decompiler. It is also exposed through both a public API as well as a private CLI infrastructure accessed through dotnet BF2CIL.dll decompiler.

An example of the public API lies within the Program.cs file.

Command parameters and options are documented through the --help flag, a brief rundown is as follows:

Parameters

Index Name Description
0 input Input file path

Options

Name C Description
--output -o Output file path
--overwrite -w Overwrite output files