Skip to content

wtlgo/brainfuck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Total alerts Language grade: C/C++ Lines of Code

Brainfuck interpreter

Yet Another Brainfuck Interpreter

Requirements

  • CMake >= 3.12
  • C++14 compatible compiler
  • git

How to build

$ git clone https://github.com/wtlgo/brainfuck.git
$ mkdir brainfuck/build && cd brainfuck/build
$ cmake ..
$ cmake --build .
$ cmake --install .

How to use

$ ./bf --help

Brainfuck interpreter by wtlgo
https://github.com/wtlgo/brainfuck.git

Flags:
    -s [filename]       Specify source file.
    -c [code]           Specify source via command line.

    -i [filename]       Input file. If not specified, stdin is used.
    -o [filename]       Output file. If not specified stdout is used.

    --infinite-tape     Make tape infinite. By default limited to 3000 cells.
    --wrapped-tape      Make tape wrapped. Not wrapped by default.

    --signed-cells      Make cells signed. Unsigned by default.
    --unwrapped-cells   Make cells unwrapped. Wrapped by default.

    --comments          Enable C-style comments. Disabled by default.

    --help              This page.