Bitcoin

From Esolang
Jump to navigation Jump to search

Bitcoin is a brainfuck-derivative joke language, where you can only increment or decrement the pointer by the current price of bitcoin.

Commands

sell  : increment the pointer by the cost of bitcoin.
buy   : decrement the pointer by the cost of bitcoin.
next  : move the pointer to the right once.
prev  : move the pointer to the left once.
start : begin a loop.
end   : end a loop.
brag  : brags (outputs) the current amount of money you have in bitcoin as an ASCII char.
beg   : begs for any amount of money in bitcoin.

Examples

"Hello World!" (Assumes the price of bitcoin is currently $1.00 USD):

sell
     start
     sell
     start
          prev prev
          start
               sell
                    start
                         buy buy buy
                    end
                    buy
                    start
                         prev prev prev
                    end
               end
          end
          next next next
          sell
     end
next
buy
brag
buy buy buy
brag
next
brag brag
next
brag
prev prev prev prev
buy
brag
prev
sell
brag
next next next next next
brag
next
brag
prev prev
brag
prev
buy
brag

Cat program (Assumes the price of bitcoin is currently $1.00 USD):

sell
start
	beg
	brag
end

Compiler

compiler in slashes (by User:Yes) (compiles to bf)