Cipher

From Esolang
Jump to navigation Jump to search
This article is not detailed enough and needs to be expanded. Please help us by adding some more information.

Cipher is an programing language by User:ChuckEsoteric08.

Description

The Code is any number. 5 substracted from it and result is divided by 17. Then it is reads every 2-digit number, multiply it by 3 and execute it:

Result Operation
33 Push 1 to the stack
42 Pop a and b. Push a+b
51 Pop a and b. Push b-a
66 Pop a and b. Push a*b
87 Pop a and b. Push b/a
90 Duplicate element on top of the stack.
96 Start loop while top is not 0
99 End loop
3 Output top of the stack

Examples

Addition

This program pushes the number one (1) twice onto the stack, pops and adds these items, pushes the sum, and prints the same.

188893822

Countdown

The following program prints the numbers from four (4) down to inclusive one (1) by employing a loop in conjunction with subtraction:

1888939893989434418899466

Interpreter

  • Common Lisp implementation of the Cipher programming language.