Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【特性】非递归的循环结构“while” #5

Open
bd4sur opened this issue Sep 2, 2019 · 1 comment
Open

【特性】非递归的循环结构“while” #5

bd4sur opened this issue Sep 2, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@bd4sur
Copy link
Owner

bd4sur commented Sep 2, 2019

特性描述:增加非递归的、直接的循环结构(while condition body)。这个特性应当优先实现,因为该结构无法通过宏构造出来。

实现思路:①将while设置为关键字;②编译器将其作为特殊结构,使用现有的AIL指令集直接编译为AIL代码。

@bd4sur bd4sur added the enhancement New feature or request label Sep 2, 2019
@bd4sur
Copy link
Owner Author

bd4sur commented Sep 10, 2019

考虑将尾递归编译为简单循环。这是最基本的编译优化好吧。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant