Animac icon indicating copy to clipboard operation
Animac copied to clipboard

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

Open bd4sur opened this issue 6 years ago • 1 comments

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

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

bd4sur avatar Sep 02 '19 07:09 bd4sur

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

bd4sur avatar Sep 10 '19 11:09 bd4sur