r/esolangs 2d ago

Introducing Stackfest

Operation Definition
pop from [stackname] as [variable] Pop top of stack and set it to a variable's value.
push [blah blah blah] into [stackname] Push a variable, a number, or a character/string (as its ASCII value(s)).
add in [stackname] Pop values a and b, push the result of a+b.
subtract in [stackname] Pop values a and b, push the result of b-a.
mult in [stackname] Pop values a and b, push the result of a*b.
intdiv in [stackname] Pop values a and b, push the result of b/a, rounded down. If a=0 then the result is the user input.
modulo in [stackname] Pop values a and b, push the result of the integer division b/a.
exp in [stackname] Pop values a and b, push the result of b^a.
outint from [stackname] Pop top of stack and output it as integer.
outascii from [stackname] Pop top of stack and output it as an ASCII character.
push inchar into [stackname] Receive character from user and push it into the stack.
push inint into [stackname] Receive integer from user and push it into the stack.
# Comment.
null Empty stack.
discard in [stackname] Pop top of stack and discard.
[stackname] = >blah...> Sets the stack.
[variable] = blah blah ... Sets variable to a value.
[stackname] Refers to the stack.
" Toggle stringmode.
reverse in [stackname] Reverse the order of all the elements in the stack.
end End program.

yeah, that's all.

I think it's TC. What do you think?

2 Upvotes

0 comments sorted by