世界上最好玩的6种表情符号编程语言
誰能想到我們最喜歡的表情符號可以用來設計新的編程語言?聰明有才華的人已經想象并開發(fā)出了成熟的編程語言,我們可以用它來編寫表情符號和表情符號。
這些基于表情符號的語言大多是深奧的編程語言( esoteric programming language),稱為esolang。然而,這些語言相對來說比其他語言更容易理解。
esolang的定義是:
Esolang 不是為普通的軟件開發(fā)目的而設計的。他們只是是作為一個概念的證明或者就是一個笑話。
如果你想了解世界上最難的語言,你可以看看我的另一篇文章。讓我們看看這五種可以使用表情符號和表情符號來編程的語言。
Emoji
Emoji使用一個預定義的表情符號列表來生成語言命令,這些表情符號可以作為標志,Emoji是一個基于棧的語言。除了表情符號之外,其他所有字符都被視為字符。下面是在 Emoji 打印Hello World! 的代碼片段。
💬Hello, World!💬?輸出結果如下:
這是這個語言的文檔:
💬: Read until the next 💬 and puts that string onto the stack ?: Reads until the next 🚘 and puts that string onto the stack (can be nested, meant for storing functions) ?: Prints a value from the stack 🚲: Puts True onto the stack 🚳: Puts False onto the stack 🚴: Inverts a boolean value from the stack 👫: Adds two numbers from the stack 👪: Multiplies two numbers from the stack 🌊: Subtracts two numbers from the stack 🍴: Divides two numbers from the stack 💸: Divides two numbers from the stack, returns the remainder 💿: Rounds a number to the nearest integer 📥: Rounds down a number from the stack 📤: Rounds up a number from the stack 🐂: Converts a number to a hex string 🔢: Converts a string to a number 👬: Checks if two numbers are equal 🐣: Checks if a number is less than another 🐔: Checks if a number is greater than another 🔚: Takes a boolean from the stack. If false, skips to the next 🐧. 🔙: If the last 🔚 did not skip past stuff, skip to the next 🐧. 🔃: Takes two strings from the stack. Runs the first, takes a boolean. If true, runs the second and repeats. 👥: Duplicates a stack entry 🔣: Converts a character to its character code 🔍: Converts a character code to its character 📲: Takes two objects, saves the first to a variable identified by the second 📱: Takes an object, returns the value from the variable by that name 📃: Returns the length of a string or array from the stack ?: Takes a string and two numbers. Returns the substring from the string from the first number (inclusive) to the second number (exclusive). 🏃: Evaluates a string 📚: Creates an empty array. 📌: Takes an array and an object. Adds the object to the end of the array. Does not return anything, you'll want to use variables with this. 🔑: Takes an array or string and an index. Returns the value at that index. 🔀: Swaps two elements on the stack. 🔊: Capitalize a string. 🔉: Change a string to lowercase.Emojicode
Emojicode是一種面向對象程序設計語言,我們可以用表情符號來編碼,在 Emojicode,使用表情符號讓編程變得有趣。它是一種強類型編程語言。該語言的作者討厭隨機空指針異常,因此,在 Emojicode,所有的實例變量都需要初始化,否則就會拋出編譯錯誤。
下面是在 Emojicode 打印Hello World! 的代碼片段。
🏁 🍇😀 🔤Hello, World!🔤?? 🍉輸出結果如下:
Emoji-gramming
Emoji-gramming是一個基于表情符號的深奧的編程語言,這種語言總共有25個變量和4個命令,它們都由特定的表情符號表示。表情符號使用心型符號作為常量,例如:
💔 = 0 💜 = 1 💕 = 2 💞 = 4 💖 = 8麥克風(🎤)符號表示輸入,揚聲器(📢)符號表示打印輸出,好像很有道理的樣子?下面是打印“ Hello,World! ”的代碼片段表情符號:
😊🕐💖 😇🕐🕐 😊🕑🕐 😇🕑🕑 😊🕒🕑 😇🕒🕒 😊?💖 😇?🕒 😊📢? 😊?💜 😇?💞 😇?🕑 😇?🕒 😊📢? 😊?💞 😇?💖 😇?🕑 😇?🕒 😊📢? 😊📢? 😊?💜 😇?💕 😇?💞 😇?💖 😇?🕑 😇?🕒 😊📢? 😊?💞 😇?💖 😇?🕑 😊📢? 😊📢🕑 😊?💜 😇?💕 😇?💞 😇?🕐 😇?🕒 😊📢? 😊📢? 😊?💕 😇?🕐 😇?🕑 😇?🕒 😊📢? 😊📢? 😊?💞 😇?🕑 😇?🕒 😊📢? 😊?💜 😇?🕑 😊📢? 😊?💖 😇?💕 😊📢?輸出結果如下:
Emojicoder
這是一個用特定的表情符號表示命令和參數的符號系統,二進制值0和1在 Emojicoder 定義了各自的表情符號。
🌚=0 🌝=1 🌚🌝🌚🌚🌝🌚🌚🌚 = 01001000 = H在 Emojicoders 中有兩個修飾符如下:
🔡: Ascii Character 0-255 🔢: Integer Number 0-255要打印參數,該語言使用手表情符號(👋)作為輸出命令。每個命令都需要是新的一行。現在,讓我們利用上述知識,在 Emojicoder 打印出Hello,World! 。
👋🔡🌚🌝🌚🌚🌝🌚🌚🌚 //Output H 👋🔡🌚🌝🌝🌚🌚🌝🌚🌝 //Output e 👋🔡🌚🌝🌝🌚🌝🌝🌚🌚 //Output l 👋🔡🌚🌝🌝🌚🌝🌝🌚🌚 //Output l 👋🔡🌚🌝🌝🌚🌝🌝🌝🌝 //Output o 👋🔡🌚🌚🌝🌚🌝🌝🌚🌚 //Output , 👋🔡🌚🌚🌝🌚🌚🌚🌚🌚 //Output space 👋🔡🌚🌝🌝🌝🌚🌝🌝🌝 //Output w 👋🔡🌚🌝🌝🌚🌝🌝🌝🌝 //Output o 👋🔡🌚🌝🌝🌝🌚🌚🌝🌚 //Output r 👋🔡🌚🌝🌝🌚🌝🌝🌚🌚 //Output l 👋🔡🌚🌝🌝🌚🌚🌝🌚🌚 //Output d 👋🔡🌚🌚🌝🌚🌚🌚🌚🌝 //Output !輸出結果如下:
Emotinomicon
Emotinomicon 是由康納 · 奧布萊恩設計和創(chuàng)造的,不再使用表情符號,而是使用表情字符來進行編碼。下面是在 Emotinomicon 打印Hello,World! 的代碼片段。
😭!dlroW ,olleH😲???下面是上面代碼片段的解釋,它可以幫助你嘗試執(zhí)行任何其他字符串,并獲得一些樂趣。
😭begin quote string !dlroW ,olleH 😲end quote string ?open loop ?pops and outputs top of stack as character ?close loop輸出結果如下:
Emotifuck
Emotifuck使用Rust編寫,它使用八個表情符號作為命令,根據語言設計者的說法,它完全是內存安全的。
下面是命令列表和它們的等價符號。
🔥 - Move Right (>) 💯 - Move Left (<) 💩 - Decrement (-)[might have been better as output command ;)] 😂 - Increment (+) 💞 - Output (.) 🙏 - Input (,) 🌚 - Jump Forward ([) 🐸 - Jump Backward (])Hello World! 的代碼如下。
😂😂😂😂😂😂😂😂🌚🔥😂😂😂😂🌚🔥😂😂🔥😂😂😂🔥😂😂😂🔥😂💯💯💯💯💩🐸🔥😂🔥😂🔥💩🔥🔥😂🌚💯🐸💯💩🐸🔥🔥💞🔥💩💩💩💞😂😂😂😂😂😂😂💞💞😂😂😂💞🔥🔥💞💯💩💞💯💞😂😂😂💞💩💩💩💩💩💩💞💩💩💩💩💩💩💩💩💞🔥🔥😂💞🔥😂😂💞最后,祝你編程愉快,周末快樂!
總結
以上是生活随笔為你收集整理的世界上最好玩的6种表情符号编程语言的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Tomcat 7 安装教程 + ecli
- 下一篇: Pascal VOC2012