;;;

From Esolang
Jump to navigation Jump to search

;;; is an esolang made by User:Yayimhere.

memory

memory is stored in a infinite tape holding 8 bit numbers.

syntax

these are the commands:

Instructions
symbol command
; if current cell is 0 go left on tape. else decrement it
: increment current cell and go right. however if this increments 256 go left and goto the line equal to the current cell
/ decrement current cell. if this decrements 0 however jump back to the start of the program
\ go left unless current cell is a prime number

Examples

Conditional Cell Pointer Translation

The following code generates the first two prime numbers two (2) and three (3) in the first two memory cells, translates the cell pointer one step to the left, preventing a second translation via the prime number check, and increments the second cell value from three (3) to four (4):

:;::;:;:;\:

Infinite Sequence of Ones

This example generates an infinite sequence of one-valued cells by adminiculum of the program restart mechanism:

:/

Counter

The program perpetually increments the leftmost cell from inclusive zero (0) to inclusive 255 and subsequently prepends a further counter with a zero-valued interstitial cells betwixt the new and the previous counting cell, doing so while employing the conditional goto facility:

\ :;:;:;:;:;:;:;:;:;:;:;:;:;:;:;: /

Interpreter

  • Common Lisp implementation of the ;;; programming language.

See also