Tea
DocsPlaygroundExamplesReferenceCommunity
GitHub

Tea Language

A strongly typed scripting language for native tools.

© 2026 Tea Language.

ContributingCommunityRepository

Get Started

InstallationGetting StartedCLI

Language

SyntaxTypesFunctionsStructsGenericsPattern MatchingError HandlingModulesTesting

Project

Code StyleContributing

Docs

Documentation

Language and workflow guides based on the current compiler, examples, and CLI implementation.

Get Started

Installation

Install a prebuilt Tea release and verify the CLI.

Getting Started

Run your first script and compile a binary.

CLI

Run, build, format, and test Tea programs.

Language

Syntax

Bindings, blocks, strings, and core syntax.

Types

Primitive values, lists, dicts, optionals, and inference.

Functions

Named functions, lambdas, locals, and return values.

Structs

Custom data types with named fields.

Generics

Type parameters for functions and structs.

Pattern Matching

Use `case` to branch on variants and values.

Error Handling

Typed errors, `throw`, and `catch` blocks.

Modules

Split code across files and import stdlib modules.

Testing

Write `test` blocks and use `std.assert`.

Project

Code Style

Formatting and style conventions for Tea and Rust.

Contributing

Build, test, and contribute to the compiler and docs.