关于
从 Common Lisp 自举的 Lisp 到 JavaScript 编译器
编程语言与运行时实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- +1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文JSCL
JSCL is a Common Lisp to JavaScript compiler, which is bootstrapped from Common Lisp and executed from the browser.
Getting Started
You can try a demo online here, or you can install the JSCL npm package:
npm install -g jscl
to run jscl in NodeJS.
Build
If you want to hack JSCL, you will have to download the repository
git clone https://github.com/jscl-project/jscl.git
Run npm install under the jscl directory, then run the build
script:
./make.sh
It will generate jscl.js and the rest of the distribution files in
the jscl/dist directory. Now you can open dist/index.html in your
browser and use it. To use in Node, node dist/jscl-node.js; to use
in Deno, deno --allow-env --allow-read dist/jscl-deno.js.
Status
JSCL is and will be a subset of Common Lisp. Of course it is far from complete, but it supports partially most common special operators, functions and macros. In particular:
Multiple values
Static and dynamic non local exit catch, throw; block, return-from.
Lexical and special variables. However, declare expressions are missing, but you can proclaim special variables.
Optional and keyword arguments
SETF places
Packages
The
LOOPmacroCLOS
The
formatfunctionOthers
The compiler is very verbose, some simple optimizations or minification could help to deal with it.
Feel free to hack it yourself
探索相关项目
加载中…