Everything is h

From Esolang
Jump to navigation Jump to search
Not to be Confused With h (the Esolang)

H is an esolang by AclausckintheMidLife, which is more limited than h, with the only symbols being used is "h", and "\n"

Every H Script, only uses the letter "h", and empty lines are used to add spaces

Syntax Table
Number of H's Required Op-Name Description
0 Space Self-Explanatory
1 a Self-Explanatory
2 b Self-Explanatory
3 c Self-Explanatory
4 d Self-Explanatory
5 e Self-Explanatory
6 f Self-Explanatory
7 g Self-Explanatory
8 h Self-Explanatory
9 i Self-Explanatory
10 j Self-Explanatory
11 k Self-Explanatory
12 l Self-Explanatory
13 m Self-Explanatory
14 n Self-Explanatory
15 o Self-Explanatory
16 p Self-Explanatory
17 q Self-Explanatory
18 r Self-Explanatory
19 s Self-Explanatory
20 t Self-Explanatory
21 u Self-Explanatory
22 v Self-Explanatory
23 w Self-Explanatory
24 x Self-Explanatory
25 y Self-Explanatory
26 z Self-Explanatory
27 ( Contain Start
28 " String Start/End
29 ) Contain End
30 and if this true and that true then yes, or else no
31 if If Condition
32 else if that not true, do this instead
33 or if this true or that true, then yes, or else no
34 end stop this
35 while do this while that true
36 for do this while counter is less than bound
37 1 Self-Explanatory
38 2 Self-Explanatory
39 3 Self-Explanatory
40 4 Self-Explanatory
41 5 Self-Explanatory
42 6 Self-Explanatory
43 7 Self-Explanatory
44 8 Self-Explanatory
45 9 Self-Explanatory
46 0 Self-Explanatory
47 print say blah blah blah
48 do run this
49 break im tired i need slep
50 continue may b i no need slep
51 return flying paper playne
52 source this, returns this, returns...
53 true yes
54 false blue cheese
55 newline space++

Sample Programs

idk look down below this text

helo wold

hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
hhhhhhhhhhhhhhhhhhhhhhhhhhh
hhhhhhhhhhhhhhhhhhhhhhhhhhhh
hhhhhhhh
hhhhh
hhhhhhhhhhhh
hhhhhhhhhhhhhhh

hhhhhhhhhhhhhhhhhhhhhhh
hhhhhhhhhhhhhhh
hhhhhhhhhhhh
hhhh
hhhhhhhhhhhhhhhhhhhhhhhhhhhh
hhhhhhhhhhhhhhhhhhhhhhhhhhhhh

infinite loop

hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
hhhhhhhhhhhhhhhhhhhhhhhhhhh
hhhhhhhhhhhhhhhhhhhhhhhhhhhh
hhhhhhhhhhhhhhhhhhhhhhhhhhhh
hhhhhhhhhhhhhhhhhhhhhhhhhhhhh
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

quine

hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
hhhhhhhhhhhhhhhhhhhhhhhhhhh
hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh
hhhhhhhhhhhhhhhhhhhhhhhhhhhhh
Note: this program prints itself

Philosophy

in h, every script is valid.

even if it's just one letter.

even if it's literally nothing.

Everything is Valid.

even if it’s just one letter.

even if it’s not an h.

even if it’s just m.

because h doesn’t judge. h understands.

heres a quote:

"everything is correct h script, including nothing"

— anonymous genius

Comparison to the Other h

while the original H language only outputs confusing numbers and cannot even do hello world,

H proudly prints "helo wold" using nothing but 'h'.

because it believes in something greater than numeric despair.

Return to H Code

you can Return a piece of code back to h code by using this js script:

let nhs = []
let nnn = ["(","\"",")","and","if","else","or","end","while","for"]
let outCode = []
let currentLineCode = ""
for (let i = 0; i <= 26; i++) {
    nhs[i]=((String.fromCharCode(i+96)!=String.fromCharCode(96))?String.fromCharCode(i+96):" ")
}
nnn.map((e,i)=>{nhs[27+i]=e})
for (let i = 0; i < 10; i++) {
    nhs[i+37]=((i+1)%10).toString()
}
nnn=["print","do","break","continue","return","source","true","false"]
nnn.map((e,i)=>{nhs[47+i]=e});
(["print","(","\"","h","e","l","o"," ","w","o","l","d","\"",")"]).map((e)=>{return nhs.indexOf(e)}).forEach((e)=>{
    for(let i = 0; i < e; i++) {
        currentLineCode += "h"
    }
    outCode[outCode.length] = currentLineCode
    currentLineCode = ""
})
console.log(outCode.join("\n"))
Warning: Do not return to H code too fast. sudden exposure to high h-density may cause minor confusion and spiritual awakening.
Note: h-density exceeding 77 h/s may void warranty on your brain. use this with care