QWERTY Keyboard Dot Language
Every character is a row of dots. Count along the keyboard until you reach its key.
Turing complete: no · ●○○ easy · esolangs.org
Tested with 2 known programs · Test method
Run it
The idea
A character is written as the number of keys you pass on a QWERTY keyboard to reach it, the key itself included, in dots. One dot is the backquote, two dots are 1 and 32 dots are h. A shifted character uses commas instead, so two commas are !. The specification first spells only hello, since all of Hello, World! would take too long, and its examples then give Hello, World! after all.
Read the story
The specification also says the computer will try to do whatever the dots spell, even make a cup of tea. The program prints what it spells.
The machine
| Dots | Keys |
|---|---|
| 1 to 14 | the backquote, then 1 2 3 4 5 6 7 8 9 0 - = \ |
| 15 to 26 | q w e r t y u i o p [ ] |
| 27 to 38 | a s d f g h j k l ; ' and Enter |
| 39 to 48 | z x c v b n m , . / |
| 49 | the space bar |
Groups are split by spaces or line breaks. The specification names no keyboard. Its examples put e at 17, the comma at 46 and the space at 49, one more each than a US keyboard counted row by row. So this implementation counts a keyboard with the backslash at the end of the number row and a large Enter key after the quote. Then 14 dots are \ and 38 dots are a line break.
Example
Hello over two lines.
Hello over two lines.
Its Hello World. The 32 commas are a shifted h, the 46 dots a comma and the 49 dots a space.
Ideas it shows
See also
Also in Jokes
Write your own in Run Convert a program from QWERTY Keyboard Dot Language
Implementation
JavaScript interpreter, source and command line
A JavaScript interpreter, used in the browser and on the command line. Id: qwerty-keyboard-dot-language.
Command line
shib run qwerty-keyboard-dot-language -e '................................ ................. ...................................
................................... .......................'shib manual qwerty-keyboard-dot-languageSource
- Module
langs/wiki/ports.js- Interpreter
langs/wiki/qwerty-keyboard-dot-language.js
Docs: Kernel instructions · The .shib format · Command line · Adding a language
Source esolangs.org (CC0) · Edit on esolangs.org