ππππ °ππ ΄.π Ήπ
Jump to navigation
Jump to search
ππππ °ππ ΄.π Ήπ is a joke language created by user:PatoFlamejanteTV based on JavaScript. It is essentially just JavaScript but all of the alphabetical characters are replaced with their Unicode square equivalents, such as π ° being A. A downside to this is that since there isn't any lowercase letters, everything is treated as lowercase, limiting function naming such as "helloWorld", and restricting use of functions such as "toString".
Examples
Hello, World!
π ²π Ύπ ½ππ Ύπ »π ΄.π »π Ύπ Ά("π ·π ΄π »π »π Ύ, ππ Ύππ »π ³")
The same thing but with the "alert()" function instead.
π °π »π ΄ππ.π »π Ύπ Ά("π ·π ΄π »π »π Ύ, ππ Ύππ »π ³")
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."); } }