世界上很好玩的6种表情符号编程语言

开发 后端
谁能想到我们最喜欢的表情符号可以用来设计新的编程语言?聪明有才华的人已经想象并开发出了成熟的编程语言,我们可以用它来编写表情符号和表情符号。

 谁能想到我们最喜欢的表情符号可以用来设计新的编程语言?聪明有才华的人已经想象并开发出了成熟的编程语言,我们可以用它来编写表情符号和表情符号。

这些基于表情符号的语言大多是深奥的编程语言( esoteric programming language),称为esolang。然而,这些语言相对来说比其他语言更容易理解。

esolang的定义是:

Esolang 不是为普通的软件开发目的而设计的。他们只是是作为一个概念的证明或者就是一个笑话。

如果你想了解世界上最难的语言,你可以看看我的另一篇文章。让我们看看这五种可以使用表情符号和表情符号来编程的语言。

Emoji

Emoji使用一个预定义的表情符号列表来生成语言命令,这些表情符号可以作为标志,Emoji是一个基于栈的语言。除了表情符号之外,其他所有字符都被视为字符。下面是在 Emoji 打印Hello World! 的代码片段。

 

  1. 💬Hello, World!💬➡ 

输出结果如下:

 

 

 

 

这是这个语言的文档:

 

  1. 💬: Read until the next 💬 and puts that string onto the stack 
  2. ⛽: Reads until the next 🚘 and puts that string onto the stack (can be nested, meant for storing functions) 
  3. ➡: Prints a value from the stack 
  4. 🚲: Puts True onto the stack 
  5. 🚳: Puts False onto the stack 
  6. 🚴: Inverts a boolean value from the stack 
  7. 👫: Adds two numbers from the stack 
  8. 👪: Multiplies two numbers from the stack 
  9. 🌊: Subtracts two numbers from the stack 
  10. 🍴: Divides two numbers from the stack 
  11. 💸: Divides two numbers from the stack, returns the remainder 
  12. 💿: Rounds a number to the nearest integer 
  13. 📥: Rounds down a number from the stack 
  14. 📤: Rounds up a number from the stack 
  15. 🐂: Converts a number to a hex string 
  16. 🔢: Converts a string to a number 
  17. 👬: Checks if two numbers are equal 
  18. 🐣: Checks if a number is less than another 
  19. 🐔: Checks if a number is greater than another 
  20. 🔚: Takes a boolean from the stack.  If false, skips to the next 🐧. 
  21. 🔙: If the last 🔚 did not skip past stuff, skip to the next 🐧. 
  22. 🔃: Takes two strings from the stack.  Runs the first, takes a boolean.  If true, runs the second and repeats. 
  23. 👥: Duplicates a stack entry 
  24. 🔣: Converts a character to its character code 
  25. 🔍: Converts a character code to its character 
  26. 📲: Takes two objects, saves the first to a variable identified by the second 
  27. 📱: Takes an object, returns the value from the variable by that name 
  28. 📃: Returns the length of a string or array from the stack 
  29. ✂: Takes a string and two numbers.  Returns the substring from the string from the first number (inclusive) to the second number (exclusive). 
  30. 🏃: Evaluates a string 
  31. 📚: Creates an empty array. 
  32. 📌: 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. 
  33. 🔑: Takes an array or string and an index.  Returns the value at that index
  34. 🔀: Swaps two elements on the stack. 
  35. 🔊: Capitalize a string. 
  36. 🔉: Change a string to lowercase. 

Emojicode

Emojicode是一种面向对象程序设计语言,我们可以用表情符号来编码,在 Emojicode,使用表情符号让编程变得有趣。它是一种强类型编程语言。该语言的作者讨厌随机空指针异常,因此,在 Emojicode,所有的实例变量都需要初始化,否则就会抛出编译错误。

下面是在 Emojicode 打印Hello World! 的代码片段。

 

  1. 🏁 🍇 
  2.   😀 🔤Hello, World!🔤❗️ 
  3. 🍉  

输出结果如下:

 

 

 

 

Emoji-gramming

Emoji-gramming是一个基于表情符号的深奥的编程语言,这种语言总共有25个变量和4个命令,它们都由特定的表情符号表示。表情符号使用心型符号作为常量,例如:

 

  1. 💔 = 0 
  2. 💜 = 1 
  3. 💕 = 2 
  4. 💞 = 4 
  5. 💖 = 8 

麦克风(🎤)符号表示输入,扬声器(📢)符号表示打印输出,好像很有道理的样子?下面是打印“ Hello,World! ”的代码片段表情符号:

 

  1. 😊🕐💖 
  2. 😇🕐🕐 
  3. 😊🕑🕐 
  4. 😇🕑🕑 
  5. 😊🕒🕑 
  6. 😇🕒🕒 
  7. 😊♈💖 
  8. 😇♈🕒 
  9. 😊📢♈ 
  10. 😊♈💜 
  11. 😇♈💞 
  12. 😇♈🕑 
  13. 😇♈🕒 
  14. 😊📢♈ 
  15. 😊♉💞 
  16. 😇♉💖 
  17. 😇♉🕑 
  18. 😇♉🕒 
  19. 😊📢♉ 
  20. 😊📢♉ 
  21. 😊♊💜 
  22. 😇♊💕 
  23. 😇♊💞 
  24. 😇♊💖 
  25. 😇♊🕑 
  26. 😇♊🕒 
  27. 😊📢♊ 
  28. 😊♈💞 
  29. 😇♈💖 
  30. 😇♈🕑 
  31. 😊📢♈ 
  32. 😊📢🕑 
  33. 😊♈💜 
  34. 😇♈💕 
  35. 😇♈💞 
  36. 😇♈🕐 
  37. 😇♈🕒 
  38. 😊📢♈ 
  39. 😊📢♊ 
  40. 😊♈💕 
  41. 😇♈🕐 
  42. 😇♈🕑 
  43. 😇♈🕒 
  44. 😊📢♈ 
  45. 😊📢♉ 
  46. 😊♈💞 
  47. 😇♈🕑 
  48. 😇♈🕒 
  49. 😊📢♈ 
  50. 😊♈💜 
  51. 😇♈🕑 
  52. 😊📢♈ 
  53. 😊♈💖 
  54. 😇♈💕 
  55. 😊📢♈ 

输出结果如下:

 

 

 

 

Emojicoder

这是一个用特定的表情符号表示命令和参数的符号系统,二进制值0和1在 Emojicoder 定义了各自的表情符号。

 

  1. 🌚=0 
  2. 🌝=1 
  3. 🌚🌝🌚🌚🌝🌚🌚🌚 = 01001000 = H 

在 Emojicoders 中有两个修饰符如下:

 

  1. 🔡: Ascii Character 0-255 
  2. 🔢: Integer Number 0-255 

要打印参数,该语言使用手表情符号(👋)作为输出命令。每个命令都需要是新的一行。现在,让我们利用上述知识,在 Emojicoder 打印出Hello,World! 。

 

  1. 👋🔡🌚🌝🌚🌚🌝🌚🌚🌚 //Output H 
  2. 👋🔡🌚🌝🌝🌚🌚🌝🌚🌝 //Output e 
  3. 👋🔡🌚🌝🌝🌚🌝🌝🌚🌚 //Output l 
  4. 👋🔡🌚🌝🌝🌚🌝🌝🌚🌚 //Output l 
  5. 👋🔡🌚🌝🌝🌚🌝🌝🌝🌝 //Output o 
  6. 👋🔡🌚🌚🌝🌚🌝🌝🌚🌚 //Output , 
  7. 👋🔡🌚🌚🌝🌚🌚🌚🌚🌚 //Output space 
  8. 👋🔡🌚🌝🌝🌝🌚🌝🌝🌝 //Output w 
  9. 👋🔡🌚🌝🌝🌚🌝🌝🌝🌝 //Output o 
  10. 👋🔡🌚🌝🌝🌝🌚🌚🌝🌚 //Output r 
  11. 👋🔡🌚🌝🌝🌚🌝🌝🌚🌚 //Output l 
  12. 👋🔡🌚🌝🌝🌚🌚🌝🌚🌚 //Output d 
  13. 👋🔡🌚🌚🌝🌚🌚🌚🌚🌝 //Output ! 

输出结果如下:

 

 

 

 

Emotinomicon

Emotinomicon 是由康纳 · 奥布莱恩设计和创造的,不再使用表情符号,而是使用表情字符来进行编码。下面是在 Emotinomicon 打印Hello,World! 的代码片段。

 

  1. 😭!dlroW ,olleH😲⏪⏬⏩ 

下面是上面代码片段的解释,它可以帮助你尝试执行任何其他字符串,并获得一些乐趣。

 

  1. 😭begin quote string 
  2. !dlroW ,olleH 
  3. 😲end quote string 
  4. open loop 
  5. ⏬pops and outputs top of stack as character 
  6. close loop 

输出结果如下:

 

 

 

 

Emotifuck

Emotifuck使用Rust编写,它使用八个表情符号作为命令,根据语言设计者的说法,它完全是内存安全的。

下面是命令列表和它们的等价符号。

 

  1. 🔥 - Move Right (>) 
  2. 💯 - Move Left (<) 
  3. 💩 - Decrement (-)[might have been better as output command ;)] 
  4. 😂 - Increment (+) 
  5. 💞 - Output (.) 
  6. 🙏 - Input (,) 
  7. 🌚 - Jump Forward ([) 
  8. 🐸 - Jump Backward (]) 

Hello World! 的代码如下。

 

  1. 😂😂😂😂😂😂😂😂🌚🔥😂😂😂😂🌚🔥😂😂🔥😂😂😂🔥😂😂😂🔥😂💯💯💯💯💩🐸🔥😂🔥😂🔥💩🔥🔥😂🌚💯🐸💯💩🐸🔥🔥💞🔥💩💩💩💞😂😂😂😂😂😂😂💞💞😂😂😂💞🔥🔥💞💯💩💞💯💞😂😂😂💞💩💩💩💩💩💩💞💩💩💩💩💩💩💩💩💞🔥🔥😂💞🔥😂😂💞 

最后,祝你编程愉快,周末快乐!

责任编辑:华轩 来源: 艾小仙
相关推荐

2018-07-19 19:07:33

语言编程语言程序

2018-12-04 15:46:53

编程语言Python

2019-11-18 15:07:54

编程语言C#

2013-09-12 15:39:30

编程语言BANCStar

2022-09-19 21:34:04

PHPFacebook语言

2022-09-20 23:52:50

表情符号开发面部识别

2013-09-16 11:12:51

编程环境开发

2021-03-03 11:20:59

微信表情符号腾讯

2010-07-15 16:21:22

编程语言

2021-07-19 10:51:29

谷歌AndroidChrome OS

2023-02-28 08:59:47

PythonJavaJavaScript

2022-02-15 10:50:57

Opera浏览器表情符号

2018-11-06 12:22:18

排序算法代码

2020-06-08 10:21:56

操作系统C语言Unix

2022-01-18 06:29:45

Windows 11操作系统微软

2023-10-08 09:38:06

2013-05-08 09:38:28

InteropNetSDN网络设备供应商

2014-06-24 15:36:47

程序语言AppSwift

2021-11-26 21:30:09

Windows 11Windows微软

2023-07-31 08:59:46

软件FossilSQLite
点赞
收藏

51CTO技术栈公众号