Skip to main content

Teal

Teal is a typed dialect of Lua.

Teal 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": "teal"
};
createPlayground('#container', options);

Language Info

Name

teal

Extension

.tl

Editor

script

Compiler

Teal

Version

Teal v0.15.2

Code Formatting

Using lua-fmt.

Starter Template

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