ππππ °ππ ΄.π Ήπ
Jump to navigation
Jump to search
ππππ °ππ ΄.π Ήπ is a joke language.
Commands
Every single one of JavaScript.
Examples
Hello, World!
π ²π Ύπ ½ππ Ύπ »π ΄.π »π Ύπ Ά("π ·π ΄π »π »π Ύ, ππ Ύππ »π ³")
Hello, World! (alert())
π °π »π ΄ππ.π »π Ύπ Ά("π ·π ΄π »π »π Ύ, ππ Ύππ »π ³")
Fibonacci
π π °π π Έ; π π °π π ΅π Έπ ± = [0, 1]; // π Έπ ½π Έππ Έπ °π »π Έππ ΄ π °πππ °π! π ΅π Ύπ (π Έ = 2; π Έ <= 10; π Έ++) { // π ½π ΄ππ π ΅π Έπ ±π Ύπ ½π °π ²π ²π Έ π ½ππ Όπ ±π ΄π = π Ώππ ΄π π Έπ Ύππ + π Ύπ ½π ΄ π ±π ΄π ΅π Ύππ ΄ π Ώππ ΄π π Έπ Ύππ // πππ °π ½ππ »π °ππ ΄π ³ ππ Ύ π Ήπ °π π °ππ ²ππ Έπ Ώπ: π ΅π Έπ ±[π Έ] = π ΅π Έπ ±[π Έ - 2] + π ΅π Έπ ±[π Έ - 1]; π ²π Ύπ ½ππ Ύπ »π ΄.π »π Ύπ Ά(π ΅π Έπ ±[π Έ]); }
Interpreter
https://codepen.io/PatoFlamejanteTV/pen/PwYYZpV
<h2>Input (πππ ΄...)</h2> <textarea id="inputField" rows="4" cols="50"></textarea> <button onclick="mapAndExecute()">Map & Execute</button> <h2>Output (js code)</h2> <textarea id="outputField" rows="4" cols="50" readonly></textarea>
function mapAndExecute() { // Reversed Mapping object: special characters to standard keyboard characters const charMap = { 'π': 'q', 'π': 'w', 'π ΄': 'e', 'π': 'r', 'π': 't', 'π': 'y', 'π': 'u', 'π Έ': 'i', 'π Ύ': 'o', 'π Ώ': 'p', 'π °': 'a', 'π': 's', 'π ³': 'd', 'π ΅': 'f', 'π Ά': 'g', 'π ·': 'h', 'π Ή': 'j', 'π Ί': 'k', 'π »': 'l', 'π': 'z', 'π': 'x', 'π ²': 'c', 'π ': 'v', 'π ±': 'b', 'π ½': 'n', 'π Ό': 'm' }; // Get the input field value const inputField = document.getElementById("inputField"); const inputValue = inputField.value; // Map special characters back to standard characters let jsCode = ''; for (let char of inputValue) { jsCode += charMap[char] || char; // If char is not in map, use original char } // Display the JS code document.getElementById("outputField").value = jsCode; // **WARNING: USING EVAL() WITH UNSAFE INPUT CAN BE DANGEROUS** // Execute the JS code (for demonstration purposes only) try { eval(jsCode); } catch (e) { console.error("Error executing JS code:", e); alert("Error executing JS code. Check console for details."); } }