BrainF*ck

2009/01/18 07:18 by civet | |
八条指令的图灵完全编程语言 BrainF*ck

> 指针加一
< 指针减一
+ 指针指向的字节的值加一
-  指针指向的字节的值减一
.  输出指针指向的单元内容(ASCII码)
,  输入内容到指针指向的单元(ASCII码)
[  如果指针指向的单元值为零,向后跳转到对应的]指令的次一指令处
]  如果指针指向的单元值不为零,向前跳转到对应的[指令的次一指令处

BrainF*ck 的 "Hello World!" 程序:
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.



AS3实现:
默认分类 | 评论(0) | 引用(0) | 阅读(64)
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]