livecode-static/docs/languages/commonlisp.html.md
2025-06-11 22:23:49 +08:00

1.7 KiB

Common Lisp

Common Lisp is a dialect of the Lisp programming language.

In LiveCodes, Common Lisp code runs in the browser using JSCL, a Common Lisp to JavaScript compiler.

:::info Note

Lisp language family supported in LiveCodes includes Common Lisp, Scheme, ClojureScript and Fennel.

:::

Usage

LiveCodes runs Common Lisp code in the browser. JSCL implements a subset of Common Lisp, but covers enough functionality to write practical code.

import LiveCodes from '../../src/components/LiveCodes.tsx';

This example demonstrates basic Common Lisp syntax and functionality:

JS Interoperability

Please see JSCL docs

Language Info

Name

commonlisp

Aliases/Extensions

common-lisp, lisp

Editor

script

Compiler

JSCL - Common Lisp to JavaScript compiler

Code Formatting

Using Parinfer.

Limitations

Since JSCL is a subset of Common Lisp, it doesn't implement all Common Lisp features. See the JSCL documentation for more information.

Starter Template

https://livecodes.io/?template=commonlisp