Stackack

From Esolang
Jump to navigation Jump to search

Stackack (STACK stACK) is a programming language that uses stacks and stacks and stacks and stacks

Stack

~a stack is defined as new stack
stack1 = new stack
~to add an item, do stack.place
stack1.place("stacks are awsome")
~to remove an item, do stack.take
stack1.take()
~can also return
stack2 = new stack
stack2.place("popping")
stack3 = new stack
stack3.place(stack2.take())
~stack3 has "popping" in it
~inline stacks are made by []
~use stackp[a] to add a to stack
~use stackt to remove an item from stack
stackinstack = []p[[]]
~stackinstack contains a stack