Learn Tekst.
A practical guide to Tekst, from your first program to functions, classes, modules, native compilation, and low-level memory.
Try Tekst
Write and run Tekst programs in the browser without installing the compiler.
Getting Started
Install Tekst, write your first program, compile it, and understand the project layout.
Basics
Variables, values, operators, strings, input, and indentation.
Control Flow
Conditions, while loops, for loops, range, and comprehensions.
Error Handling
Handle runtime errors with try and catch blocks.
Functions
Define functions, return values, default arguments, and build reusable code.
Classes & Objects
Constructors, methods, fields, inheritance, and self.
Collections
Lists, tuples, dictionaries, indexing, mutation, and common operations.
Modules & Packages
Use modules, import selected names, and organise package directories.
Advanced
Pointers, manual memory, LLVM output, and compiler architecture.
Quick example
name = "Tekst"
print("Hello from {name}!")