Gödelang

From Esolang
Jump to navigation Jump to search

Gödelang is an esolang created by TJC games. It's based off of Gödel numbering, and it's just another Brain**** clone.

Interpretation

Each program is represented as a number, which is read by breaking it down into its prime factors and using the powers as the instructions. If it uses a number not listed in the below table, it runs its corresponding command. The powers are as follows:

Gödelang 1 value BF alternative Instruction
0 Terminate program
1 > Move pointer 1 byte to the right
2 < Move pointer 1 byte to the left
3 + Increase byte at pointer by 1
5 - Decrease byte at pointer by 1
7 ++++++++++++++++ Increase byte at pointer by 16 (10000)
9 ---------------- Decrease byte at pointer by 16 (10000)
10 . Output ASCII character stored in byte at pointer
11 , Input ASCII character and store in byte at pointer
13 [ If byte at pointer = 0, then skip to next 14
14 ] If byte at pointer != 0, then skip to previous 13
Gödelang 2 value BF alternative Instruction
0 Terminate program
1 > Move pointer 1 value to the right
2 < Move pointer 1 value to the left
3 + Increase value at pointer by 1
5 - Decrease value at pointer by 1
7 . Output ASCII character stored in value at pointer
9 Output value stored in value at pointer
10 , Input ASCII character and store in value at pointer
11 Input value typed in (return to enter, any letters sets to 0)
13 [ If byte at pointer = 0, then skip to next 14
14 ] If byte at pointer != 0, then skip to previous 13
15 If byte at pointer = 0, then skip to next 17
17 No function, except for use with 15
19 [-] Set value at pointer to 0

Examples