NumberPankackes
Jump to navigation
Jump to search
NumberPankackes
NumberPankackes is a stack-based esoteric programing language.
Commands
1X: pushes X to the stack (you must have a colon at the end of the command) 2 coppys the top of the stack and pushes it 3 flips the stack 4 pushes user input to the stack 5 pops the top value of the stack and adds it to the value below it 6 pops the top value of the stack and prints it [ sets the start of a loop (you cant have loops in each other) ] returns to the start of the loop
Example programs
cat program
46
this program takes user input then prints it
top poper
[1-1:5]5
this program pops the top value of the stack by subtracting 1 from it until it's zero, pops it and adds it to the value below it
stack printer
310:3[6]
this prints and empties the stack by fliping it, pushing a zero, fliping it again and finaly poping and printing the top value until it's 0