Kite 0.2.0 发布,编程语言

Kite 是一个编程语言,用于快速的开发低CPU占用和低内存消耗的应用程序。目前该语言还只是开始,静观其变吧。

下面是一个 Kite 语言编写的程序例子:

class Test [
property value,

construct() [
this.value = "";
],

operator lshift(value) [
this.value = this.value + value;
],

method print() [
this.value|print;
]
];

tester = make Test();
tester << "foo";
tester << "bar";
tester|print;

# Output:
# foobar

Kite 0.2.0 使用相同的 Flex/Bison 解析器,显著降低编译时间,可解析 100% Kite 语法;增加 string|format 到标准库;支持 kdoc 等等多项改进。

原文地址:https://www.cnblogs.com/shihao/p/2836877.html