lisp-clone:用JS编写的Lisp编程语言的某种变体

时间:2021-04-04 01:34:42
【文件属性】:
文件名称:lisp-clone:用JS编写的Lisp编程语言的某种变体
文件大小:7KB
文件格式:ZIP
更新时间:2021-04-04 01:34:42
TypeScript 脂克隆 一种用Typescript编写的类似Lisp的编程语言。 用法 import LispRuntime from "./mod.ts" ; let runtime = new LispRuntime ( ) ; runtime . scope . define ( "jsFunction" , ( scope : any , args : any [ ] ) => { let values = args . map ( a => runtime . execute ( a , scope ) ) ; return values [ 0 ] + 1 } ) ; runtime . scope . define ( "value" , 0 ) ; runtime . run ( `(do (define lispFunction (lambda input (+ (head i
【文件预览】:
lisp-clone-main
----mod.ts(4KB)
----test.ts(1KB)
----untitled.sublime-project(45B)
----README.md(535B)
----denon.json(417B)
----untitled.sublime-workspace(20KB)

网友评论