S.B.M.F.B

From Esolang
Jump to navigation Jump to search

S.B.M.F.B(made by User: Yayimhere) stands for stack based memory for brainfuck. in S.B.M.F.B you have a stack to store brainfuck code inside. there are some simple commands in this program to add it to the stack

€(): add the brainfuck code inside the brackets to the top of the stack
run^: run the top of the stack
runV:run the bottom of the stack
shiftV: shift the bottom of the stack one up
shift^: shift the top of the stack one down
run: run the top of the stack as brainfuck code

Examples

Hello, World!

This program prints the message “Hello, World!”:

€(+[-->-[>>+>-----<<]<--<---]>-.>>>+.>>..+++[.>]<<<<.+++.------.<<-.>>>>+.)run

Cat program

Prints your input and terminates:

€(,)
run
shift^
€([.,])
run

Interpreter

  • Common Lisp implementation of the S.B.M.F.B programming language. Please note that the concrete character set deployed constitutes a dependency on the Common Lisp implementation; in corollary, Unicode support may or may not be a feature incorporated in the personal environment. The interpreter at hand has been developed and tested with Steel Bank Common Lisp (SBCL) version 1.1.4 as part of the Lisp Cabinet 0.3.5 bundle.