BeeScript

From Esolang
Jump to navigation Jump to search

BeeScript is a stack-based esoteric programming language made by VilgotanL.

Instructions

AVIATE n Pushes the ascii code of the nth character in this version of the bee movie script
BEE Duplicates the top value of the stack
BLACK Pops the top value of the stack and prints it as an ascii character
BARRY Pops A and then B from the stack and pushes B - A to the stack
FLY n Pops the top of the stack, if it is non-zero this instruction jumps to the nth line
ROTATE Removes the bottom value of the stack and pushes it to the top
ROTAT Pops the top of the stack and pushes it to the bottom
YELLOW Takes one character of input and pushes it's ascii code to the stack

Any other instructions are ignored.

Examples

Cat program

The first program ever written in BeeScript.

YELLOW
BEE
BLACK
FLY 1

Hello World

AVIATE 389
BLACK
AVIATE 43
BLACK
AVIATE 14
BLACK
AVIATE 14
BLACK
AVIATE 3
BLACK
AVIATE 39
BLACK
AVIATE 9
BLACK
AVIATE 20
BLACK
AVIATE 3
BLACK
AVIATE 4
BLACK
AVIATE 14
BLACK
AVIATE 5
BLACK
AVIATE 324
BLACK
AVIATE 85
BLACK

Implementations

An interpreter in python written by the creator