Skip to main content

TauScript

Professional Mode

TauScript v1.0.0 Released

A complete programming language ecosystem — compiler, CLI, taupm, LSP, formatter, debugger, testing, and 15 stdlib modules.

npm run tau -- runnpm run taupm -- install

Language Features

Variables & Constants

let x = 42; const name = "Tau";

Functions

fn name(a, b) { return a + b; }

Generics

fn identity<T>(x) { return x; }

Structs

struct Point { x: 0, y: 0 }

Enums

enum Status { Active, Inactive }

Traits & Interfaces

trait Printable { fn print(self); }

Pattern Matching

match expr { pattern => body }

Result Types

ok(value) / err(message)

Async Foundations

async fn fetch() { await task; }

Modules & Imports

import { name } from "std.math"

Conditionals & Loops

if/while/for

Collections

arrays, maps

Developer Tooling

  • Compiler pipeline (lex → parse → semantic → IR)
  • Tau CLI (tau run, build, test, fmt, lint, doc)
  • taupm package manager
  • Language Server (LSP) with Monaco IntelliSense
  • Formatter (tau fmt)
  • Debugger (breakpoints, step, watch)
  • Testing framework (tau test)
  • Documentation generator (tau doc)
  • AI code review (tau lint --ai)

CLI & taupm

tau new <name>

Create new project

tau init

Initialize taupm.toml

tau run [file]

Run TauScript

tau build

Compile to IR

tau compile

Compile to JavaScript

tau test

Run test suite

tau fmt

Format source

tau lint

Lint and analyze

tau doc

Generate documentation

tau doctor

Check environment

tau pm install

Install dependencies (taupm)

tau pm search

Search package registry

Standard Library (15 modules)

std.math

add, subtract, multiply, divide

std.string

length, upper, lower, trim

std.io

println, print

std.collections

push, pop, map, filter

std.json

parse, stringify, pretty

std.time

now, iso, format, sleep

std.crypto

hash, random_bytes

std.env

get, platform

std.http

get, post, status_ok

std.fs

read, write, exists, delete

std.encoding

base64_encode, base64_decode, url_encode, url_decode

std.random

float, int, choice

std.logging

info, warn, error, debug

std.config

load, get

std.compression

gzip, ungzip

Live REPL

// output

Examples

Spec: src/lib/tau-ide/tauscript-v1-spec.md · Terminal REPL · Tau IDE