RISBF

From Esolang
Jump to navigation Jump to search
RISBF
Paradigm(s) imperative
Designed by Michael Gianfreda
Appeared in 2013
Memory system Category:cell-based
Dimensions one-dimensional
Computational class Turing complete
Reference implementation Haskell implementation
Influenced by Brainfuck
File extension(s)

RISBF is a brainfuck equivalent with only 4 characters. RISBF stands for Reduced Instruction Set Brain Fuck and was created by Michael Gianfreda, Aug. 14, 2013. A RISBF variant is tinyBF.

Commands

Command Description
* Switch destination (pointer <-> memory cell)
+ Increment selected destination
- Decrement selected destination
/ Start of the following two-character sequence commands:
// Output the character signified by the cell at the pointer. BF equivalent: .
/* Input a character and store it in the cell at the pointer. BF equivalent: ,
/+ Jump past the matching /- if the cell under the pointer is 0. BF equivalent: [
/- Jump back to the matching /+ if the cell under the pointer is nonzero. BF equivalent: ]

Examples

Hello World

++++++++++/+*+*+++++++*+*++++++++++*+*+++*+*+*----*-/-*+*++//*+*+//+++++
++////+++//*+*++//*--*+++++++++++++++//*+//*+++//------//--------//*+*+/
/*+//----

External resources