BackStart

From Esolang
Jump to navigation Jump to search

BackStart is version of Minsky machine with 1 counter.

Commands

Command Operation
i x Add x to counter
d x Decrement counter x times if it is not zero, if it is zero back to start of program. If counter is lower that zero after decrementing, then it is an error.
b Back to start of program
o x output number x if it isn't 0. If x is zero, output counter

translation to UBLANG

BackStart UBLANG
i x + x times
d x - x times
b /
o 0 .
o x * x times, ; and / x times

Examples

Hello World

o 72
o 101
o 124
o 111
o 44
o 32
o 119
o 111
o 114
o 124
o 100