Docs
Language and workflow guides based on the current compiler, examples, and CLI implementation.
New to Tea? Build a CLI with Tea walks you through a complete task-list program, one working feature at a time.
Writing Tea with a coding agent? Start with the agent documentation index or the Markdown quick reference. For documentation matching your installed version, run tea docs.
Tutorial
Start here: build a persistent task-list CLI in nine short chapters.
Run a Tea file and turn a binding into useful output.
Use a list and a loop to number your tasks.
Model tasks with structs and format them with a function.
Read arguments, filter tasks, and explain how to use the tool.
Load a text file and handle failures with typed errors.
Validate a title and save a new task between runs.
Find a task by number and update its status safely.
Extract a module and test the logic behind your CLI.
Check, format, and compile the finished tool.
Language
Bindings, blocks, strings, and core syntax.
Primitive values, lists, dicts, optionals, and inference.
Named functions, lambdas, locals, and return values.
Custom data types with named fields.
Type parameters for functions and structs.
Use `case` to branch on variants and values.
Typed errors, `throw`, and `catch` blocks.
Split code across files and import stdlib modules.
Write `test` blocks and use `std.assert`.