Stackception

From Esolang
Jump to navigation Jump to search

Stackception is by User:Hammy

Goals

  • To be Turing Complete
  • To have stacks in stacks
  • To be simple

Commands

Same as Underload with these additions:

$ takes the top (top val's first ascii value if string, number otherwise.) values of the main stack and makes a new stack and pushes it and those values are on it

? takes input from the user and pushes it to the current stack.

^v moves the stack pointer in those directions.

io goes in a layer and out a layer, and become that stack.

All commands now act on the current stack.

Examples

Stack Testing

(1)$ the stack is: ((1)). its a stack containing 1 in the main stack
^ go into the nested stack
(Hello, world!) do the hello world program with no output

The stack looks like this after:

(
 (Hello, world!)
 (1)
)

where (item) is an item.