有趣生活

当前位置:首页>科技>编程观赏性的图案世界上最好玩的6种表情符号编程语言

编程观赏性的图案世界上最好玩的6种表情符号编程语言

发布时间:2026-07-25阅读(0)

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

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

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

esolang的定义是:

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

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

Emoji

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

Hello,World!➡

输出结果如下:

这是这个语言的文档:

:Readuntilthenextandputsthatstringontothestack⛽:Readsuntilthenextandputsthatstringontothestack(canbenested,meantforstoringfunctions)➡:Printsavaluefromthestack:PutsTrueontothestack:PutsFalseontothestack:Invertsabooleanvaluefromthestack:Addstwonumbersfromthestack:Multipliestwonumbersfromthestack:Subtractstwonumbersfromthestack:Dividestwonumbersfromthestack:Dividestwonumbersfromthestack,returnstheremainder:Roundsanumbertothenearestinteger:Roundsdownanumberfromthestack:Roundsupanumberfromthestack:Convertsanumbertoahexstring:Convertsastringtoanumber:Checksiftwonumbersareequal:Checksifanumberislessthananother:Checksifanumberisgreaterthananother:Takesabooleanfromthestack.Iffalse,skipstothenext.:Ifthelastdidnotskippaststuff,skiptothenext.:Takestwostringsfromthestack.Runsthefirst,takesaboolean.Iftrue,runsthesecondandrepeats.:Duplicatesastackentry:Convertsacharactertoitscharactercode:Convertsacharactercodetoitscharacter:Takestwoobjects,savesthefirsttoavariableidentifiedbythesecond:Takesanobject,returnsthevaluefromthevariablebythatname:Returnsthelengthofastringorarrayfromthestack✂:Takesastringandtwonumbers.Returnsthesubstringfromthestringfromthefirstnumber(inclusive)tothesecondnumber(exclusive).:Evaluatesastring:Createsanemptyarray.:Takesanarrayandanobject.Addstheobjecttotheendofthearray.Doesnotreturnanything,youllwanttousevariableswiththis.:Takesanarrayorstringandanindex.Returnsthevalueatthatindex.:Swapstwoelementsonthestack.:Capitalizeastring.:Changeastringtolowercase.

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 中有两个修饰符如下:

:AsciiCharacter0-255:IntegerNumber0-255

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

//OutputH//Outpute//Outputl//Outputl//Outputo//Output,//Outputspace//Outputw//Outputo//Outputr//Outputl//Outputd//Output!

输出结果如下:

Emotinomicon

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

!dlroW,olleH⏪⏬⏩

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

beginquotestring!dlroW,olleHendquotestring⏪openloop⏬popsandoutputstopofstackascharacter⏩closeloop

输出结果如下:

Emotifuck

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

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

-MoveRight(>)-MoveLeft(<)-Decrement(-)[mighthavebeenbetterasoutputcommand;)]-Increment( )-Output(.)-Input(,)-JumpForward([)-JumpBackward(])

Hello World! 的代码如下。

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

- END -

Copyright © 2024 有趣生活 All Rights Reserve吉ICP备19000289号-5 TXT地图HTML地图XML地图