esolang

'UwU: A cute esolang'

An ordinary scripting language, said in UwU faces and UwU-fied English.

PhoenixHO, 2022 · Turing complete: unknown · ●○○ easy · esolangs.org

Tested with 3 known programs · Test method

Run it

Expected: Hewwo Wowwd!

The idea

PhoenixHO made UwU in 2022. Underneath it is a plain language with variables, if and else, loops and recursive functions. Every keyword is a face or a word said cutely. A variable is declared with uwu, printing is ouo, reading is iwi, if is ?w?, else is ewe, a function is fwun and true is twue. Blocks open with [: and close with :], and comments sit inside {: and :}.

Read the story

The joke is all on the surface. Read past the faces and it is a small, ordinary language.

The machine

CodeDoes
uwu x := 5Declare x, with a value or without
x := x + 1Assign
ouo a, b >>Print, with no line feed of its own
iwi -d x <<Read a number into x; -s reads a line, -c a character
?w? c [: ... :] ewe [: ... :]If and else
untiw c [: ... :]Repeat until c is true
fwun f(a, b) [: ... out v >> :]A function that returns v
~n ~tA line feed, a tab

Values are numbers, strings in ", characters in backticks, and twue and fawse. The logical operators are awnd and ow, equality is = and !=, and 0 counts as false.

Example

The truth machine reads a number and prints 1 until it reads a 0.

The truth machine reads a number and prints 1 until it reads a 0. It reads again after every 1, so it stops at the third number.

Expected: 1 1

Recursion works as it does anywhere else.

Expected: 120

The specification does not say how numbers print. This implementation stores them as doubles and prints the way C prints them with %g, so ouo 1/3 >> gives 0.333333.

Further

Also in Jokes

Write your own in Run Convert a program from 'UwU: A cute esolang'

Implementation

JavaScript interpreter, source and command line

A JavaScript interpreter, used in the browser and on the command line. Id: uwu-a-cute-esolang.

Command line

shib run uwu-a-cute-esolang -e 'ouo "Hewwo Wowwd!" >>'
shib manual uwu-a-cute-esolang

Source

Module
langs/wiki/ports.js
Interpreter
langs/wiki/uwu-a-cute-esolang.js

Docs: Kernel instructions · The .shib format · Command line · Adding a language

Source esolangs.org (CC0) · Edit on esolangs.org