ooooh!

From Esolang
Jump to navigation Jump to search

ooooh! is a cool turing complete language by User:Hammy with 3 commands

Commands

command what it does
ooooo... flips the bit at the cell indexed by how many o's there are
h(code)hhhh...... while the cell indexed by how many h's there are minus 1 is 1, run the code inside. there is a ... at the end of the command so thats why there is 6 dots
! (code)!!!!!... same as above but only run once

Spaces aren't commands, but they can distinguish multiple of the same command with the same command with a bigger argument.

Why is this turing complete?

it is basically Just a bit. here's conversion yay.

? use a bunch of os
<> isn't even needed
[] use h
() use !

Extension

The extension of ooooh! is sometimes called "uhhhh?" and it has I/O

Commands

command what it does
uuuuuu... add bit corresponding to the number of u's to bit stream. when the bit stream reaches a length of 8, output as ascii
?????... input either 0 or 1 into the cell corresponding to the number of ?s

Examples (uhhhh? only)

Binary Cat

Takes 8 binary numbers as input and outputs its ascii equivalent

?u??u???u????u?????u??????u???????u????????u

Truth machine

help me

?hou uou uou uououoh... o! u uou u u ou!

XKCD random number

u u ou u ou ou ou u