日期:2014-05-20  浏览次数:21043 次

<<草泥马>>编程语言?????


从开源中国上看到的。

简介:《草泥马语》是一个基于堆和栈的编程语言,该语言的最大特点在于:所有操作全部由“草”“泥”“马”“河蟹”这4个命令完成,文件内的其他字符都作为注释而不参与程序执行。 

示例:写出来大概就是这个样子,下面是一个从1到10的循环:

草-草 草泥马 //数字1压栈 Put a 1 on the stack
马-草草 草泥草草草草泥泥马 //在这里设置一个循环开始的标识 Set a Label at this point
草-马草 //复制栈顶元素 Duplicate the top stack item
泥马-草泥 //输出当前值 Output the current value
草草 草泥草泥草马 //换行(10)压栈 Put 10 (newline) on the stack...
泥马-草草 //输出 ...and output the newline
草草 草泥马 //1压栈 Put a 1 on the stack
泥草-草草 //相加栈内两个元素 Addition. This increments our current value.
草-马草 //复制栈顶以便比较 Duplicate that value so we can test it
草-草 草泥草泥泥马 //11压栈 Push 11 onto the stack
泥草-草泥 //相减,如果我们已经循环到11了应该会得到一个0到栈顶 Subtraction. So if we've reached the end, we have a zero on the stack.
马-泥草 草泥草草草泥草泥马 //如果是0,跳到最后 If we have a zero, jump to the end
马-草马 草泥草草草草泥泥马 //跳到开始 Jump to the start
马-草草 草泥草草草泥草泥马 //设置一个标签标识循环结束 Set the end label
草-马马 //清空堆栈,打扫卫生,整理整顿 Discard our accumulator, to be tidy
河蟹 


哎、、、、、不得不感叹太.......

------解决方案--------------------
不错。。。。。。。。。
------解决方案--------------------


下次麻烦PS的时候敬业点。。字体也要一样才行。。


------解决方案--------------------
要和谐
------解决方案--------------------
perl【小羊驼】
玩过这门语言的人太多了 ps也去找点冷门的东西里P
------解决方案--------------------

------解决方案--------------------

------解决方案--------------------

------解决方案--------------------
真的假的,不要太搞笑啊.
------解决方案--------------------
楼主头像的这件衣服我有。。