JSFiddle - React, Tailwind, and code Playground
by puckipedia
HTML
procedure dot() {<br/>
paintWhite<br/>
stopPainting<br/>
forward(1)<br/>
}<br/>
procedure line() {<br/>
paintWhite<br/>
forward(1)<br/>
stopPainting<br/>
forward(1)<br/>
}<br/>
procedure space() {<br/>
forward(1)<br/>
}<br/>
procedure enter() {<br/>
right<br/>
forward(1)<br/>
right<br/>
repeatWhile(frontIsClear) {<br/>
forward(1)<br/>
}<br/>
right<br/>
right<br/>
}<br/>
JavaScript
document.write("procedure dot() {<br/> paintWhite<br/> stopPainting<br/> forward(1)<br/>}<br/>procedure line() {<br/> paintWhite<br/> forward(1)<br/> stopPainting<br/> forward(1)<br/>}<br/>procedure space() {<br/> forward(1)<br/>}<br/>procedure enter() {<br/> right<br/> forward(1)<br/> right<br/> repeatWhile(frontIsClear) {<br/> forward(1)<br/> }<br/> right<br/> right<br/>}<br/>");
var charCodes=new Array(36);
charCodes["a"]=". _";
charCodes["b"]="_ . . .";
charCodes["c"]="_ . _ .";
charCodes["d"]="_ . .";
charCodes["e"]=".";
charCodes["f"]=". . _ .";
charCodes["g"]="_ _ .";
charCodes["h"]=". . . .";
charCodes["i"]=". .";
charCodes["j"]=". _ _ _";
charCodes["k"]="_ . _";
charCodes["l"]=". _ . .";
charCodes["m"]="_ _";
charCodes["n"]="_ .";
charCodes["o"]="_ _ _";
charCodes["p"]=". _ _ .";
charCodes["q"]="_ _ . _";
charCodes["r"]=". _ .";
charCodes["s"]=". . .";
charCodes["t"]="_";
charCodes["u"]=". . _";
charCodes["v"]=". . . _";
charCodes["w"]=". _ _";
charCodes["x"]="_ . . _";
charCodes["y"]="_ . _ _";
charCodes["z"]="_ _ . .";
charCodes["1"]=". _ _ _ _";
charCodes["2"]=". . _ _ _";
charCodes["3"]=". . . _ _";
charCodes["4"]=". . . . _";
charCodes["5"]=". . . . .";
charCodes["6"]="_ . . . .";
charCodes["7"]="_ _ . . .";
charCodes["8"]="_ _ _ . .";
charCodes["9"]="_ _ _ _ .";
charCodes["0"]="_ _ _ _ _";
charCodes["?"]=". . _ _ . .";
charCodes["."]=". _ . _ . _";
charCodes["!"]="_ . _ . _ _";
for(var i in charCodes) {
var n = i;
switch(i) {
case "0":
n = "nul";
break;
case "9":
n = "negen";
break;
case "8":
n = "acht";
break;
case "7":
n = "zeven";
break;
case "6":
n = "zes";
break;
case "5":
n = "vijf";
break;
case "4":
n = "vier";
break;
case "3":
n = "drie";
...