Baba

From Esolang
Jump to navigation Jump to search

by User:Akalysi


baba is an esolang i made after the 2019 puzzle game "Baba Is You"

its syntax is to use [NOUN] [VERB] [QUALITY]


nouns: PROGRAM, MEMORY, POINTER

verbs: IS, ISNOT

qualities: START, END, INTEGER, STRING, INCREMENT, DECREMENT, PLUS10, PLUS100, COMPACT, OUT


table for IS outcomes
PROGRAM MEMORY POINTER X
starts parsing program X puts pointer at start of memory START
exits program X puts pointer at end of memory END
X allocates an int to memory X INTEGER
X allocates a string to memory X STRING
starts another parse and continues increments current cell increments pointer INCREMENT
ends this parse decrements current cell decrements pointer DECREMENT
starts 10 new parses and ends this one adds 10 to current cell adds 10 to pointer PLUS10
starts 100 new parses and ends this one adds 100 to current cell adds 100 to pointer PLUS100
X sets current cell to concatenated string X COMPACT
prints "PROGRAM" prints current cell prints pointer value OUT
table for ISNOT outcomes
PROGRAM MEMORY POINTER X
exits program X puts pointer at end of memory START
starts parsing program X puts pointer at start of memory END
X removes the pointerth int from memory X INTEGER
X removes the pointerth string from memory X STRING
X decrements current cell decrements pointer INCREMENT
X increments current cell increments pointer DECREMENT
X removes 10 from current cell removes 10 from the pointer PLUS10
X removes 100 from current cell removes 100 from the pointer PLUS100
X X prints pointer value OUT