网站大量收购独家精品文档,联系QQ:2885784924

piet语言简介(Introduction to Piet language).doc

piet语言简介(Introduction to Piet language).doc

  1. 1、本文档共5页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
piet语言简介(Introduction to Piet language)

piet语言简介(Introduction to Piet language) CC can point to the left or right. The DP and CC pointers often change the flow of the program. The interpreter passes the color filter as follows: 1. the interpreter selects the farthest edge of the current graph in the direction of the DP pointer (for example, the square DP pointer to the right, that is, the right column codel in the right direction) 2. according to the direction specified by the DP pointer of the CC pointer offset, select the farthest codel in this direction to this side. (inheriting the above example, if the CC pointer is to the left, select the top codel of the rightmost column codel. Because the left is up 3. now select a codel, the codel of the DP pointer, the first codel in the direction should be another color block. Now that you transfer the program to this new color box, this will prompt the execution of the command. (in short, you can imagine yourself standing on the program, first pressing the DP pointer to the farthest row / column codel on the current color grid). Then press the CC pointer to turn and move on to a specific codel. Then turn the DP pointer forward and take a step forward The process is repeated until the program is finished. Grammatical component number The total number of codel for each non black or white block represents a number. Note that non positive integers cannot be represented directly in such a way, although they can be constructed by commands. When the interpreter encounters some numbers, it doesnt do anything directly, especially if it doesnt automatically press the numbers into the stack. The push in operation is a distinct command. Black color blocks and edges The edge of the picture is considered a black color block. Black color limited program operation. When a program attempts to enter a black color swatch in accordance with a set of DP/CC pointers. The action will stop and will replace the CC pointer (left or right - left - right) and try again. If the two CC po

文档评论(0)

f8r9t5c + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8000054077000003

1亿VIP精品文档

相关文档