Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Installation

Prerequisites

Ted requires:

  • Rust (stable, latest version recommended)
  • Cargo (comes with Rust)

Install Rust

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup update stable

Building from Source

Clone the repository:

git clone https://github.com/ted-lang/ted.git
cd ted

Build the compiler:

cargo build --release

The ted binary will be at target/release/ted.

Installation

Add to PATH

# Add to your shell profile (.bashrc, .zshrc, etc.)
export PATH="$PATH:/path/to/ted/target/release"

Or install via Cargo

cargo install --path crates/ted-cli

Verify Installation

ted --version
ted --help

Development Setup

For contributing to Ted:

# Install development tools
rustup component add rustfmt clippy

# Build and test
cargo build --workspace
cargo test --workspace

# Format and lint
cargo fmt --all
cargo clippy --workspace

Editor Support

Ted files use the .ted extension. Syntax highlighting is planned for:

  • VS Code
  • Vim/Neovim
  • Emacs

Next Steps

Now that Ted is installed, continue to Hello World to write your first program.