Brainfuck++

From Esolang
(Redirected from Brainfuck plus plus)
Jump to navigation Jump to search
This article is not detailed enough and needs to be expanded. Please help us by adding some more information.

Brainfuck++ is a Brainfuck extension by Jacob I. Torrey. It's brainfuck with new instructions that enable file I/O and networking, to make it more useful for everyday applications.

Not to be confused with BrainFuck+.

Commands

Brainfuck++ is backwards compatible with brainfuck: all brainfuck programs work just the same in brainfuck++. The command set is the same as brainfuck's, with addition of the following:

Command Description
# Opens a file for reading and writing, second call closes the file.
; Writes the ASCII character at the current cell to the file, overwriting existing text.
: Reads a character from the file, puts the value of the ASCII character in the cell and advances the file pointer.
% Opens a socket for reading and writing, second call closes the socket.
^ Sends the ASCII character at the current cell.
! Reads a character from the socket and places its ASCII value in the current cell.

External resources