PANOPTES's Dumb Burger Thing
Here is the story of how PANOPTES's Dumb Burger Thing, or DumbBurger for short, was created.
Right around now, I was procrastinating.
I still am.
And while I was procrastinating, this code for generating the first 10 elements of the Fibonacci Sequence came into my head.
Hello, I'd like two Number 1s and a Large Number 10. //Pushes 1 twice and a Coke onto the stack. Pushes a 10 onto the large stack.
Here are the operators I came up with so far:
I have a friend who would like a Coke to go, and a Large Fries. //Loop declaration.
//The coke evaluates to the sum of the top two elements of the stack. As the coke is to go, its value is outputted.
//The fries evaluate to the top element of the stack minus 1.
//Eventually, the top element of the large stack should equal zero, meaning the loop is exited and the program halts.
A Number N evaluates to N.
Coke evaluates to the sum of the top two elements of the stack.
Diet Coke evaluates to the top element of the stack plus 1
Onion Rings evaluate to the topmost element of the stack minus the second topmost.
Fries evaluate to the top element of the stack minus 1.
A Chicken Sandwich evaluates to the topmost element of the non-Large stack.
Most of the boring syntractic stuff can be figured out from the above example, but here's some more:
Every line after the first is prefaced with "I'd also like" unless it's part of a loop.
This is how you declare a multilne loop, as well as nested loops.
I'm also ordering for a friend.
They'd like...
They'd also like...
They're also ordering for a friend.
Their friend'd like...
Their friend'd like...
Okay, moving on.
Okay, moving on.
Y'all are welcome to add more ideas.