Skip to main content

Fennel

Fennel is a programming language that brings together the speed, simplicity, and reach of Lua with the flexibility of a lisp syntax and macro system.

Fennel code is compiled to Lua, which then runs in the browser using Fengari. See documentation for Lua language support in LiveCodes here.

Usage​

JavaScript interoperability and DOM access is achieved using "js" module.

This example demonstrates usage, JavaScript interoperability and DOM access:

show code
import { createPlayground } from 'livecodes';

const options = {
"template": "fennel"
};
createPlayground('#container', options);

Language Info​

Name​

fennel

Extension​

.fnl

Editor​

script

Compiler​

Fennel

Version​

Fennel v1.3.0

Code Formatting​

Using Parinfer.

Starter Template​

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