kuc

所属分类:编程语言基础
开发工具:C
文件大小:0KB
下载次数:0
上传日期:2015-01-12 18:44:29
上 传 者sh-1993
说明:  向量编程语言
(vector programming language)

文件列表:
COPYING (35147, 2015-01-12)
Makefile (939, 2015-01-12)
adverb.c (28664, 2015-01-12)
adverb.h (6507, 2015-01-12)
alloc.c (42681, 2015-01-12)
alloc.h (2786, 2015-01-12)
apply.c (16972, 2015-01-12)
apply.h (1348, 2015-01-12)
arith.c (22628, 2015-01-12)
arith.h (1564, 2015-01-12)
code.c (49085, 2015-01-12)
code.h (1545, 2015-01-12)
error.c (3588, 2015-01-12)
error.h (1187, 2015-01-12)
func.c (37251, 2015-01-12)
func.h (919, 2015-01-12)
main.c (4790, 2015-01-12)
parse.c (25350, 2015-01-12)
parse.h (951, 2015-01-12)
string.c (26752, 2015-01-12)
string.h (899, 2015-01-12)
sys.c (8273, 2015-01-12)
sys.h (1009, 2015-01-12)
test/ (0, 2015-01-12)
test/adverb.kuc (1278, 2015-01-12)
test/arith.kuc (909, 2015-01-12)
test/code.kuc (308, 2015-01-12)
test/idiom.kuc (114, 2015-01-12)
test/parse.kuc (673, 2015-01-12)
test/sort.kuc (380, 2015-01-12)
test/unique.kuc (382, 2015-01-12)
test/verb.kuc (8806, 2015-01-12)
tree.h (7074, 2015-01-12)
value.c (34478, 2015-01-12)
value.h (10164, 2015-01-12)
verb.c (41380, 2015-01-12)
verb.h (2966, 2015-01-12)

**kuc** is a vector programming language with closures. ##### Compiling Run `make` to build. Edit the Makefile to configure. ##### Examples Lexical closures and garbage collection: kuc> {a:!x;.{a+1}} 5 # closures kuc> {b:a:!x;.{a+:1;b::|b};(a;b)} 5 # closures! kuc> o:.{a:0;`add`show!{a+:x},{show a}} # objects kuc> (o`add) 5; (o`add) 7; .o`show Simple JIT: kuc> ackermann:{$[x;self[x-1;$[y;self[x;y-1];1]];y+1]} kuc> time {ackermann[3;9]} kuc> disasm ackermann # tail-call-to-self optimization kuc> time {-1+|/(#{@[x;!*|x;|:]}\)'1+!-7} # fannkuch More new language features: kuc> {[x]{[y]y-x}}[3;5] # curried functions kuc> _17%5 # compound operators (cf (_:)17%5) kuc> ~^108810b # null bool kuc> write[`:/dev/stdout]"Hello, world!\n"; Also see the [test programs](https://github.com/zholos/kuc/blob/master/test).

近期下载者

相关文件


收藏者