$

From Esolang
Jump to: navigation, search

$

Explanation

There is only 1 command, $. A place only has numbers. If anything is assigned to cell number 0, print its ASCII value out. Like:

2313132

A number has "+" before it. Like:

+1321

Instructions

commands if the thing being assigned is a place if the thing being assigned is a value
$ assign place with value(dec)/place value. See next table
if the place value assigned recently equals to the first decimal number Else
jump backward the number of the second decimal number commands continue running

Turing-Completeness

It is Turing-complete, as Brainfuck's commands can be individually implemented in it.

+

1$+0
1$+1

-

1$+1
1$+0

<

2$+0
1$+0

>

1$+0
2$+0

[]

1$+1
+$`+1
+1$+1

This is an infinite loop. Also:

1$+1
+2$+2
1$+2
+2$+1

which assigns 1 to +2.

,

0$1

It prints anything assigned to 0.

Examples

Print "Hello,world".

1$+72
2$+101
3$+108
4$+108
5$+44
6$+70
7$+119
8$+111
9$+114
10$+108
11$+100
0$1
0$2
0$3
0$4
0$5
0$6
0$7
0$8
0$9
0$10
0$11

This is a simpler version.

0$+72
0$+101
0$+108
0$+108
0$+44
0$+70
0$+119
0$+111
0$+114
0$+108
0$+100