Hash

From Esolang
Jump to navigation Jump to search

Hash is an esolang that executes programs based on the hashed string from the program.

Language overview

At the start, it takes the program from the user input and hashes it with SHA-256. From there, each character is mapped to brainf*** code with the following rules:

Character Command
"0" <
"1" >
"2" +
"3" -
"4" .
"5" ,
"6" [
"7" ]
Any other character .

After the characters are mapped, the resulted Brainf*** code is executed.

Examples

XKCD Random Number

//an program that somehow creates an hash that starts with 2222631222071263122220714 and does not contain numbers 0-7 after that

Interpeters/Compilers

WIP