coded by colboy 020
Welcome to WTF++
A tiny esoteric language built to confuse, amuse, and abuse.
WTF++ Commands:
+ Increment the `into` register by 1
- Decrement the `into` register by 1
# Start counting `!`s to increase `into` (e.g., #!!! adds 3)
% Push the current `into` value onto the stack (`listy`)
^ Duplicate the last value on the stack
$ Print the current value of `into`
@ Load the first value from the stack into `into`
! Used after `#` to increment `into` multiple times
(any other character is ignored)
Registers:
- into — the active number register
- listy — a stack (list) to store numbers
Example WTF++ Code:
#! %#!! %^@$%@$
Explanation:
- #! → into = 1
- % → push 1 to stack
- #!! → into = 3
- % → push 3
- ^ → duplicate 3
- @ → into = first value in stack (1)
- $ → print 1
- % → push 1
- @ → into = first value again
- $ → print 1
Output:
1
1
Enjoy the chaos. WTF++ is yours to bend, break, and build.