Beefydie

From Esolang
Jump to navigation Jump to search

Beefydie is an esolang made by User:Fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff which is inspired by ArnoldC. It is stack-based, but has 3 other forms of memory. They are 'x', memory, and garbage

Commands

These are the commands: They are all from the web aminated series Battle For Dream Island.

OUT OF MY WAY I NEED MY SPACE - push
OH NOIO - pop
WHICH IS - if (functionlike)
YEAH I KNOW SHE WAS SO SURPRISED - == (functionlike)
THE POWER OF TWO - 2 to the number of Os power
DON'T CALL ME NEEDY - print (functionlike)
DA - character x
WE HAD TO SELL IT BECAUSE OF BUDGET CUTS - delete top element from stack 
NO AND THAT'S IT - plus / and (functionlike)
ONE TWO THREE FOUR WHO DO WE NOT ADORE - decrement
SCREECH - reset stack
I AIN'T GIVING UP - quit()
WHEN DID I GIVE YOU PERMISSION TO SPEAK - input(x)
BULLEH - throw an error
HEY GUYS FOR A PRANK - while
AW SERIOUSLY - exit
OMIGOSH - increment
NO - number (the amount of Os represent number)
I WANT REVENGE - memory = x
NOW MY CHANCES OF WINNING WENT FROM - float()
TEN THOUSAND IS ALSO TEN TO THE FOURTH - 10000
YEAH - True
SEEMS KINDA SUS TO ME - False
COOL STORY BRO - text:
YOU PLAYED FOUR - 4
I DON'T HAVE A FAVORITE NUMBER - 8
THERE ISN'T ENOUGH ROOM UP HERE - delete element x
YEAH YEAH WE KNOW - memory
SO - else (functionlike)
IT'S BREAK AT FLAKE - int(input())
WHY DO I HAVE TO GO TO FOUR - item x of stack
I ONLY COUNT ONE - count()
FIVE IS GREATER THAN FOUR - >
I'M NOT BLUE - not()
YOUR TEENY TINY LITTLE BRAIN WOULDN'T ALLOW FOR SUCH INSANITY - <
NOT MY CHEESECAKE - 0
UH PIN WRONG FINGER - 1
BUT HIS SASSY ATTITUDE MEANS HE'S NOT GETTING A SPECK OF DUST -smol increment
VALUE IS IN THE EYE OF THE BEHOLDER - garbage value
WHO CARES IF YOU'RE ADOPTED - subtract (functionlike)
BEEP - str()

The YOYLECAKE statement

The YOYLECAKE statement is used to end function-like statements.

Programs

Hello World!

DON'T CALL ME NEEDY
COOL STORY BRO
Hello World!
YOYLECAKE

Cat Program

DON'T CALL ME NEEDY
WHEN DID I GIVE YOU PERMISSION TO SPEAK
YOYLECAKE

Quine

A Quine is imposssible to make due to the lack of \n (linefeed)

Compiler

Python

def split(text):
    l=[""]
    c = 0
    s = ""
    while c < len(text):
        if text[c] == "\n":
            l = l+[""]
            s = ""
        else:
            s = s + text[c]
            l[-1] = s
        c = c+1
    return l

def compute(code):
    garbage = 0
    l = split(code)
    c = 0
    s = ""
    stack = []
    flags = []
    memory = 0
    current = 0
    INDEX = 0
    david = False
    isText = False
    antiIf = 0
    flagim = 0
    whilePos = 0
    while INDEX < len(l):
        if l[INDEX] == "OUT OF MY WAY I NEED MY SPACE":
            stack.append(current)
        elif l[INDEX] == "OH NOIO":
            stack.pop(current)
        elif l[INDEX] ==  "WHICH IS":
            flags.append("if")
            flagim = current
        elif l[INDEX] == "YEAH I KNOW SHE WAS SO SURPRISED":
            flags.append("equals")
            flagim = current
        elif l[INDEX][0:15] == "THE POWER OF TWO":
            current = 2 ** (len(l[INDEX]) - 15)
        elif l[INDEX] == "DON'T CALL ME NEEDY":
            flags.append("print")
            flagim = current
        elif l[INDEX][0:1] == "DA":
            if str(type(current)) == "<class 'str'>":
                current = current + l[INDEX][2]
            else:
                current = l[INDEX][2]
        elif l[INDEX] == "WE HAD TO SELL IT BECAUSE OF BUDGET CUTS":
            garbage = stack.pop()
        elif l[INDEX] == "NO AND THATS IT":
            flags.append("and")
            flagim = current
        elif l[INDEX] == "ONE TWO THREE FOUR WHO DO WE NOT ADORE":
            current = current - 1
        elif l[INDEX] == "SCREECH":
            stack.clear()
        elif l[INDEX] == "I AIN'T GIVING UP":
            flags.append("end")
            flagim = current
        elif l[INDEX] == "WHEN DID I GIVE YOU PERMISSION TO SPEAK":
            current = input(current)
        elif l[INDEX] == "BULLEH":
            raise KeyboardInterrupt
        elif l[INDEX] == "HEY GUYS FOR A PRANK":
            flags.append("while")
            flagim = current
        elif l[INDEX] == "AW SERIOUSLY":
            david = True
        elif l[INDEX] == "OMIGOSH":
            current = current + 1
        elif l[INDEX][0:1] == "NO":
            current = len(l[INDEX]) - 1
        elif l[INDEX] == "I WANT REVENGE":
            memory = current
        elif l[INDEX] == "NOW MY CHANCES OF WINNING WENT FROM":
            try:
                current = float(current)
            except ValueError:
                current = 0.0
        elif l[INDEX] == "TEN THOUSAND IS ALSO TEN TO THE FOURTH":
            current = 10000
        elif l[INDEX] == "YEAH":
            current = True
        elif l[INDEX] == "SEEMS KINDA SUS TO ME":
            current = False
        elif l[INDEX] == "COOL STORY BRO":
            isText = True
        elif l[INDEX] == "YOU PLAYED FOUR":
            current = 4
        elif l[INDEX] == "I DON'T HAVE A FAVORITE NUMBER":
            current = 8
        elif l[INDEX] == "THERE ISN'T ENOUGH ROOM UP HERE":
            del[current]
        elif l[INDEX] == "YEAH YEAH WE KNOW":
           current = memory
        elif l[INDEX] == "SO":
            flags.append("else")
            flagim = current
        elif l[INDEX] == "IT'S BRAKE AT FLAKE":
            try:
                current = int(input(current))
            except ValueError:
                current = 0
        elif l[INDEX] == "WHY DO I HAVE TO GO TO FOUR":
            current = stack[current]
        elif l[INDEX] == "I ONLY COUNT ONE":
            try:
                current = len(current)
            except TypeError:
                pass
        elif l[INDEX] == "FIVE IS GREATER THAN FOUR":
            flags.append(">")
            flagim = current
        elif l[INDEX] == "I'M NOT BLUE":
            current = not(current)
        elif l[INDEX] == "YOUR TEENY TINY LITTLE BRAIN WOULDN'T ALLOW FOR SUCH INSANITY":
            flags.append("<")
            flagim = current
        elif l[INDEX] == "NOT MY CHEESECAKE":
            current = 0
        elif l[INDEX] == "UH PIN WRONG FINGER":
            current = 1
        elif l[INDEX] == "BUT HIS SASSY ATTITUDE MEANS HE'S NOT GETTING A SPECK OF DUST":
            if str(type(l[INDEX])) == "<class 'float'>":
                current = current + 0.03125
            elif str(type(l[INDEX])) == "<class 'int'>":
                current = current + 1
        elif l[INDEX] == "VALUE IS IN THE EYE OF THE BEHOLDER":
            current = garbage
        elif l[INDEX] == "WHO CARES IF YOU'RE ADOPTED":
            flags.append("minus")
        #ALMOST DONE
        if l[INDEX] == "YOYLECAKE":
            if flags[-1] == "and":
                current = current + flagim
            elif flags[-1] == "equals":
                current = current == flagim
            elif flags[-1] == "print":
                print(current)
            elif flags[-1] == "end":
                INDEX = len(l) + 50
            elif flags[-1] == "if":
                if current == False:
                    INDEX = l.index("YOYLECAKE",INDEX+1)
                else:
                    flags.append("ifclause")
            elif flags[-1] == "ifclause":
                pass
            elif flags[-1] == "while":
                whilePos = INDEX
                flags.append("whilelooper")
            elif flags[-1] == "whilelooper":
                if current == True:
                    INDEX = whilePos
                    flags.append("whilelooper")
            elif flags[-1] == "minus":
            	current = flagim - current
            garbage = flags.pop()
        if isText == True:
            try:
                current = l[INDEX+1]
            except IndexError:
                current = "Hello World!"
        isText = False
        INDEX = INDEX + 1


def start():
	contents = ""
	curinput = ' '
	typemode = input("Import a file?")   
	if typemode == "yes":
		path  = input("Please input the file path:\n")
		path = open(path)
		contents = path.read()
		compute(contents)
		pass
	else:
		while curinput != "":
			curinput = input()
			contents = contents + '\n' + curinput
		compute(contents)
start()
while True:
	pass

Other languages

No.