- 1、本文档共5页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 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
您可能关注的文档
- 在校的思想表现和学习情况自我总结(Self summary of the ideological performance and learning in school).doc
- 在长沙混你必须知道的事!(In Changsha, mix what you have to know!).doc
- 地产知识40问(40 questions of real estate knowledge).doc
- 地名谜语120个(There are 120 riddles).doc
- 地名谜语1(Place name riddles 1).doc
- 地域品牌与中国茶业品牌化的思考(Regional brand and brand of Chinese tea industry).doc
- 地大《画法几何与工程制图》在线作业一(Da Da descriptive geometry and Engineering Graphics online homework).doc
- 地毯下的蛇(Snakes under the carpet).doc
- 地板知识(Floor knowledge).doc
- 地毯的清洁保养与日常维护(Carpet cleaning, maintenance and daily maintenance).doc
文档评论(0)