Muppp

From Esolang
Jump to navigation Jump to search

Muppp is a stack based esolang made by Hex96.

The syntax

The syntax gets a string like:

Hell hello hi there

The compiler would get the lengths of each word:

4 5 2 5

That is the code

Tokens

Token Command
3 Pops the top off the stack
4 Pushes the next value on to the stack. The next value does not run as code.
5 Gets input and pushes the ascii code onto the stack.
6 Looks at the top two values on the stack, if they are the same, push a 1. Else, push a 0
7 if the top value on the stack is greater than 0, go back x amount of spaces. x being the next value. The next value is not interpreted
8 adds the top value on the stack by the next value, next value not interpreted.
9 same thing as 8 but instead of adding it is subtracting
10 same thing, but multiplying.
11 same thing, but dividing
12 same thing, but modulas.
13 same thing as 7, but going forward.
14 prints ascii character of the top value on the stack.
15 duplicate the top value on the stack.
16 ends the program

Example Programs

1 character cat

Hello multiplication

truth-machine

This accident
This accident
chattiness
Hello
dreamiest
impersonating this
illegitimately
environmentalism
impersonations
swamped a

Hello, World!

aaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa aaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa aaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa aaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa aaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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