gpt4 book ai didi

javascript - 编译成可读 js 的轻量级 lisp 方言是什么?

转载 作者:可可西里 更新时间:2023-11-01 02:33:19 25 4
gpt4 key购买 nike

什么是使用 JS 自己的类型编译成简短、可读和可修改的 JS 的 lisp 方言?

最佳答案

这是一个广泛的 list编译为 JavaScript 的编程语言的编译器,包括几种 Lisp/Scheme 方言。关于“简短、可读和可修改”部分,这有点主观……您可以测试列出的几个编译器,然后决定哪个最适合您。

来自 the "Lisp, Scheme" section列表的[对子部分标题进行了微小的格式更改]:

Lisp, Scheme

Clojure-like

  • ClojureScript Clojure to JS, the official version. Supports the majority of Clojure including persistent datastructures.
  • ClojureJS Subset of Clojure to JS.
  • Chlorinejs A fork of ClojureJS with a port of clojure.core library.
  • wisp A homoiconic JavaScript dialect with Clojure syntax, S-expressions and macros. Aims to be rich subset of Clojure(Script) that seamlessly interops with both Clojure(Script) and JavaScript.
  • Scriptjure Library for generating JavaScript from Clojure forms.
  • ki Clojure-like syntax, mori's immutable data structures in a few sweet.js macros. Can be intermixed with JavaScript.

Scheme-like

  • BiwaScheme Scheme(R6RS) in JavaScript
  • Fargo Scheme in JavaScript
  • Moby Scheme A Scheme running in JS.
  • nconc Scheme interpreter in JavaScript with stack-friendly tail calls and full call/cc
  • scheme2js Scheme to JavaScript.
  • Spock A Scheme to JavaScript compiler that uses Henry Baker's Cheney-on-the-MTA compilation strategy
  • Whalesong Racket to JS compiler

Other

  • eslisp An S-expression syntax for ECMAScript/JavaScript, with Lisp-like hygienic macros that are just JS functions. Aims to be very close to JS, and highly experimental.
  • EdgeLisp A Lisp in the tradition of Common Lisp
  • Parenscript Subset of Common Lisp to JS.
  • Ralph Lisp-1 dialect that compiles to JavaScript, inspired by Dylan
  • Oppo A JavaScripter’s lisp. Inspired by JavaScript, Clojure and CoffeeScript. Compiler built using Jison.
  • LispyScript A JavaScript with Lispy syntax and Macros.
  • Outlet A simple Lisp that supports CPS and in-browser stepping debugging, and other things. In development.
  • Hot Cocoa Lisp A Lisp-like language that compiles to JavaScript.
  • Sibilant JavaScript with a lisp.
  • jisp A JS-native and axiomatic Lisp that focuses on the core ideas of code-as-data, S-expressions, and macros, introducing as few new concepts as possible.

关于javascript - 编译成可读 js 的轻量级 lisp 方言是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13104186/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com