2025-06-11 22:23:49 +08:00

1.3 KiB

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.

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

This example demonstrates usage, JavaScript interoperability and DOM access:

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