$

From Esolang
Jump to navigation Jump to search

$ is a "sister"-language to `, which works the same way, except how it has no negative numbers.

Differences from `

In $ cells can't have a negative value anymore. For example:

1$-1

Is invalid. Also, now instead of ` symbol $ is used. Because there is no negative numbers, positives are used to jump backward, and jumping forward is impossible.

1$+1
+1$+1

in $ is equivalent to

1`+1
+1`-1

in `.

Examples

Hello, World!

This program prints “Hello, World!”:

0$+72
0$+101
0$+108
0$+108
0$+111
0$+44
0$+32
0$+87
0$+111
0$+114
0$+108
0$+100
0$+33

Cat

This infinitely repeating cat program, translated from `, expects the user input's commorancy in the cell at the address one (1):

This program relies upon the cell at the address one to contain the user input.
0$1
2$+0
+0$+2

Interpreter

  • Common Lisp implementation of the $ programming language.