Tea LogoTea
Getting Started
  • Introduction
  • Installation
  • Quick Start
  • Project Structure
Language Guide
  • Syntax Basics
  • Type System
  • Functions
  • Classes & Objects
  • Generics
  • Pattern Matching
  • Error Handling
Advanced Topics
  • Modules & Imports
  • Concurrency
  • Memory Management
  • Metaprogramming
Standard Library
  • Overview
  • Collections
  • File System
  • JSON & YAML
  • Process Management
Contributing
  • Contributing Guide
  • Code Style
  • Testing
ExamplesReferencePlaygroundGitHub

Welcome to Tea Documentation

Learn how to build fast, type-safe applications with Tea. This guide covers everything from basic syntax to advanced features like generics and native compilation.

Quick Start

Get up and running with Tea in minutes. Install the compiler and write your first program.

Get Started

Language Guide

Deep dive into Tea's syntax, type system, and language features with comprehensive examples.

Learn the Language

API Reference

Complete reference for Tea's standard library, including collections, I/O, and more.

Browse API

Installation

Get Tea installed on your system in just a few steps.

Clone the Repository

git clone https://github.com/special-tea/tea.git
cd tea

Build and Install

make setup
make install

Verify Installation

tea --version
tea --help
Full Installation Guide

Key Features

What makes Tea special

Static Typing with Inference

Tea combines the safety of static typing with the convenience of type inference. Write concise code while catching errors at compile time.

var numbers = [1, 2, 3]
// Type inferred as Array<Int>

Powerful Generics

Write reusable, type-safe code with Tea's generic system. Generics are specialized at compile time for optimal performance.

def first<T>(arr: Array<T>)
  arr[0]
end

Compiles to Native Binaries

Compile your Tea code to fast native executables. Deploy standalone tools with no runtime dependencies—perfect for command-line utilities and system tools.

# Compile to native binary
tea compile app.tea -o app

# Run the compiled binary
./app

Rich Standard Library

Comprehensive standard library with filesystem operations, JSON/YAML parsing, process management, and more.

import JSON

var data = JSON.parse(file)
print(data["name"])

Next Steps

Continue your Tea journey

Getting Started Guide

Write your first Tea program in 5 minutes

Type System Deep Dive

Learn about Tea's powerful type system

Browse Examples

See Tea in action with real-world examples

© 2025 Tea Language. Open source under MIT License.

ContributeGitHubCommunity