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 StartedLanguage Guide
Deep dive into Tea's syntax, type system, and language features with comprehensive examples.
Learn the LanguageAPI Reference
Complete reference for Tea's standard library, including collections, I/O, and more.
Browse APIInstallation
Get Tea installed on your system in just a few steps.
Clone the Repository
git clone https://github.com/special-tea/tea.git
cd teaBuild and Install
make setup
make installVerify Installation
tea --version
tea --helpKey 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]
endCompiles 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
./appRich 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"])