SBFM

From Esolang
Jump to navigation Jump to search

SBFM (Strange brainfuck minimalizations) are brainfuck minimalizations created by User:ChuckEsoteric08

Notes

Note that in all of them loops are only run if they are not empty

SBFM-1

> - move pointer right
{ - flip bit and start while not zero loop
} - end while not zero loop and move pointer left

1-bit brainfuck to SBFM-1:

BF   SMBFM-1
--   -------
>    >
*    {}>
<    {}>{}
[    {}>{
]    }{}>{}

Examples

Flip Bit

This simple example stores the bit value one (1) in the first cell and terminates:

{}

SBFM-2

{ - flip bit, move pointer left and start while not zero loop
> - move pointer right
] - end while not zero loop

1-bit brainfuck to SBFM-2:

BF   SMBFM-2
--   -------
>    >
*    {]>
<    {]>{]
[    >{]>{
]    ]

Examples

Infinite Loop

This program demonstrates a perpetually repeating loop:

>{]>>{>{]]

Interpreter

  • Common Lisp implementation of the SBFM programming language family.