Steps

From Esolang
Jump to navigation Jump to search

Steps is an esoteric programming language invented by User:A. Its source is in .mp4 or .wav format.

Syntax

As the user try to use this language, the first thing to know is that the user must be strong enough to throw a ball onto steps. (The ball will fall down as being affected by gravity, jumping down more steps as the falling proceeds.)

Then, the commands are scanned by the variable(i.e. the force(which is divided by the mass of the ball).)

The resulting program will be both boring and violent... the user will be damaged badly after a long program.

Commands demonstrations

The user should find a step with 13 steps. This demonstration is in textual form, which implies what the user should do while entering the program.

Step 13. #Throw the ball onto the 13th step; it will fall down 1+2+4=7 steps, and 13-7=6. Then, the number will be divided by the mass of the ball(we assume that it is 1g). So, the command 6 will be entered.

List of commands

The instruction set is not interesting; it is just a trivial minimalization of Volatile.

6: Push a random number in any range of numbers. The range is determined by what the implementors like.
5: Pop 2 values and push the sum of the 2 values
4: Like +, but subtracts
3: Multiply
2: Divide. 0-division will result in an error.
1: Duplicate the top of the stack
0: Output the top of the stack without popping it