Get Started
Getting Started
Run a small Tea program, then build a standalone native binary with the same source file.
Start with one file and one visible result. Save this as hello.tea so you can run it directly and then compile the exact same source into a native binary.
const message = "Hello from Tea"
@println(message)Once the file exists, run it in script mode first. That gives you the shortest feedback loop while you are still changing the source.
tea hello.teaWhen the script behaves the way you want, build it. Tea uses the same entrypoint to produce a standalone executable under bin/.
tea build hello.tea
./bin/helloWhat to notice
constcreates an immutable binding.@println(...)writes output directly from a Tea script.Programs can be interpreted or compiled from the same entrypoint.
Next repo-backed examples
After this first run, move to the checked-in examples under
examples/. They are the most reliable way to learn what the
compiler and CLI support today.