世界上最好玩的6种表情符号编程语言
谁能想到我们最喜欢的表情符号可以用来设计新的编程语言?聪明有才华的人已经想象并开发出了成熟的编程语言,我们可以用它来编写表情符号和表情符号。
这些基于表情符号的语言大多是深奥的编程语言( esoteric programming language),称为esolang。然而,这些语言相对来说比其他语言更容易理解。
esolang的定义是:
Esolang 不是为普通的软件开发目的而设计的。他们只是是作为一个概念的证明或者就是一个笑话。
如果你想了解世界上最难的语言,你可以看看我的另一篇文章。让我们看看这五种可以使用表情符号和表情符号来编程的语言。 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 是由康纳 · 奥布莱恩设计和创造的,不再使用表情符号,而是使用表情字符来进行编码。下面是在 Emotinomicon 打印Hello,World! 的代码片段。 !dlroW ,olleH⏪⏬⏩
下面是上面代码片段的解释,它可以帮助你尝试执行任何其他字符串,并获得一些乐趣。 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! 的代码如下。
最后,祝你编程愉快,周末快乐!
- END -
老公和女演员闹绯闻,她当众扇其耳光,隐忍27年为何不离婚?在女演员当中,好的剧本能够成功塑造一名好的演员,演员蒋雯丽是个老戏骨了,在影视剧当中塑造了不同类型的角色,精湛的演技给观众留下了深刻的印象。蒋雯丽是实力派演员,让人想不到的是,在此
有孩子的家长一定要注意了!英语考试遭取消,学生该何去何从?戳注意了!教育部发布最新通知英语将在期末考试中删除。就目前来看,我国有三大主科便是语数英三科,这三科哪怕在高考中也是必考科目。而最近教育部却忽然发布通知,说要在期末考试中取消英语科目
皎月未满,流星漫天。将你的愿望撒向人间近日,北半球三大流星雨之一的仙英座流星雨将会被大众注意。今年的仙英座流星雨是流星流量最大的一次,在13日凌晨最多可达一百多颗每小时。众所周知,北半球三大流星雨分别是每年十二月十五日
大快人心!日本这块金牌难保,多国联合上诉本次在东京举行的奥运会可谓是一波三折,尤其是作为主办方的日本,作为东道主却使尽了阴招,使得本次的奥运会在一片唏嘘声中堪堪坚持。这次奥运会留给大家的印象我想只有一个字脏!两个字就是很
因参与奔跑吧兄弟而迅速走红,不幸去世后被警方发现赤身裸体如今,综艺节目中,很多人为了能够爆红,进入综艺节目,为自己收获粉丝。娱乐圈里的艺人,不是每个人都是大红大紫的。任娇出演了很多影视作品,虽然参与的是一些不大不小的角色,但是背景还是很
学究的回乡日记第一张图片这只动物叫骡子,以前我家里也养过一只,以前在广大农村地区,交通一般是用此生物拉着平板车吱吱呀呀的走在崎岖不平的乡间土路上。北方农村的房屋都是用泥土和剁碎的麦秸晾干成土坯,
漫乐新城进驻鄂尔多斯目前由东方控股集团依托乌兰木伦湖南岸自建的东方大厦5A级办公楼,携手汉博商业管理公司共同打造鄂尔多斯东方大厦漫乐城项目!这是漫乐城品牌首次亮相内蒙古自治区!东方大厦漫乐城项目位于鄂
麦当劳正式进驻鄂尔多斯水岸新城近期,关于内蒙古首家麦当劳得来速入驻伊金霍洛旗水岸新城的消息不胫而走,引来了市民们的众多关注,鄂尔多斯之声鄂尔多斯新闻网鄂尔多斯日报传媒资讯及伊金霍洛旗相关媒体争相报道。这家餐厅为
与梦想同行儿时的我做着大大小小,亦长亦短的梦想当警察,除暴安良想当医生,救死扶伤想当老师,桃李满天下。但随着时间的推移我慢慢发现儿时的梦想完美但不切实际。长大后的我,梦想却很简单一个画纸上的
唯有美食不可辜负朋友从新疆学习菜肴回来,昨晚打卡光临品尝,确实不错,其中有几样菜品尝了后,感觉新疆地大物博确实是一个民风淳朴,美食遍地的好地方,下面就把最具代表性的几样美食给大家介绍一下,也对朋友
善待自己,学会清理垃圾情绪辛弃疾曾感叹叹人生,不如意事,十常八九。是啊!人的一生并不是一帆风顺的,总会遇到糟心的事,也难免会心情不愉。我们无法遏制负面情绪产生,但我们能够选择对待垃圾情绪的方式。而清理垃圾情