综合资讯   

Kite 0.2.0 发布,编程语言

时间:2012-12-27 16:40:43

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 等等多项改进。

 

来源:开源中国社区 [http://www.oschina.net]

上一篇:10 个特殊用途的 Linux 发行版 2012-12-27

下一篇:认真过好你的二十几岁 2012-12-27

Notice: Constant RUNTIME already defined in /srv/html/srccn/news/config.php on line 15 Notice: Constant ROOTDIR already defined in /srv/html/srccn/news/config.php on line 16 Notice: Constant SITEDIR already defined in /srv/html/srccn/news/config.php on line 17 Notice: Constant DATAURL already defined in /srv/html/srccn/news/config.php on line 20 Notice: Constant VERSION already defined in /srv/html/srccn/news/system/kernel.php on line 17 Notice: Constant COREDIR already defined in /srv/html/srccn/news/system/kernel.php on line 18 Fatal error: require(): Cannot redeclare class mysql in /srv/html/srccn/news/system/kernel.php on line 22