golisp:Lisp口译员

时间:2021-04-23 09:39:46
【文件属性】:
文件名称:golisp:Lisp口译员
文件大小:54KB
文件格式:ZIP
更新时间:2021-04-23 09:39:46
golang lisp lisp-interpreter Go 戈利斯普 Lisp口译员 用法 $ golisp < foo.lisp 安装 $ go get github.com/mattn/golisp/cmd/golisp 特征 调用Go功能。 打印随机整数。 ( setq time (go:import 'time)) ( setq rand (go:import 'math/rand)) (.Seed rand (.UnixNano (.Now time))) (print (.Int rand)) 使用goroutine /频道 ( setq time (go:import time)) ( let ((ch (go:make-chan string 1 ))) (go (.Sleep time 1e9 ) (go:chan-send ch " 3 " ) (.Sleep time 1e9 ) (g

网友评论