Skip to content

Wrong by Design.Right by accident.

WORNG is an esoteric programming language where everything is inverted. Only comments execute. Programs run bottom to top. + means subtract.

WORNG

A taste of WORNG

Here is a complete WORNG program:

worng
This line is ignored. So is this one. You can write anything here.
The actual program lives in the comments below.

// input "Hello, World!"

Output: !dlroW ,olleH

Strings are reversed on output by default. To print normally, use the ~ raw string prefix:

worng
// input ~"Hello, World!"

Output: Hello, World!


Quick reference

You writeWORNG does
+Subtraction
-Addition
*Division
/Multiplication
ifRuns when condition is false
whileLoops while condition is false
callDefines a function
defineCalls a function
printReads from stdin
inputWrites to stdout
trueStored as false
falseStored as true
}Opens a block
{Closes a block

Full keyword reference →


Install

sh
curl -fsSL https://raw.githubusercontent.com/KashifKhn/worng/main/install.sh | sh
powershell
irm https://raw.githubusercontent.com/KashifKhn/worng/main/install.ps1 | iex
bat
curl -fsSL https://raw.githubusercontent.com/KashifKhn/worng/main/install.bat -o install.bat && install.bat && del install.bat
sh
go install github.com/KashifKhn/worng/cmd/worng@latest

Full installation guide →

Wrong by design. Right by accident.