Burgeria

From Esolang
Jump to navigation Jump to search

Burgeria is an esolang written by User:Dtp09. This esolang takes code in the form of a burger. Specifically, a burger one can create in the hit 2010 flash game "Papa's Burgeria". Code is ran from the bottom of the burger to the top, similarly to how a burger is assembled.

Burgeria has a memory pointer, memory storage (5 pages each with locations 0-100)

An easily computable text variant of Burgeria has also been made in order to create an interpreter.

Burger Elements (commands)

Element Text Formats

This is a table to represent burger elements in text form. this should be used for creating an interpreter.

Element Text Form
Top Bun topb
Tomato tmto
lettuce letc
Onion onin
Pickle pikl
Cheese ches
Bottom Bun botm
Ketchup ktch
Mustard mstd
Mayo mayo
BBQ bbqu
Burger brgr

Top Bun

Top Bun will act as the end of the program. If your burger does not have exactly one top bun as the last element then it will not run.

Tomato

Lettuce

Onion

Pickle

Cheese

Bottom Bun

This will act as the start of the program. If placed in the middle of the burger, it will allow for conditionals, such as loops and if statements.

Ketchup

Initiate an "If equal" statement

Mustard

Mayo

BBQ

Burger Patty

Burger patties are probably the most complicated. They represent spaces in memory, depending on the evenness the patty was cooked at, and the length it has been cooked for.

There are 5 different pages of memory represented by the length cooked:

  • Undercooked (page 0)
  • Rare (page 1)
  • Medium (page 2)
  • Well done (page 3)
  • Burnt (page 4)

and different locations in those memory pages from 0-100, depending on what percent of the bottom side of the patty has been cooked.

For example, a medium cooked burger cooked 55% on the bottom and 45% on the top, would result in page 2 address 55.

Conditionals

Conditionals are represented with condiments which is a good way to remember

anybody who wants to add stuff to burgeria feel free because i do not feel like finishing this. Dtp09 (talk) 00:58, 22 October 2022 (UTC)