Built with C++17

Programming,
without the noise.

Tekst is a lightweight programming language with clean, readable syntax designed for learning, experimentation, and building useful things.

Currently available for Windows. macOS and Linux builds are not available yet.
hello.tekst
fn greet(name):
  print("Hello, " + name)

greet("World")

A language made
to stay out of your way.

Tekst takes inspiration from languages like Python while keeping its own identity. The goal is simple: make code easy to read, easy to write, and fun to experiment with.

The interpreter is written in C++17 and processes Tekst source code through a lexer, parser, and interpreter.

Everything you need.
Nothing you don't.

A compact language doesn't have to be a limited one.

01

Simple syntax

Readable syntax inspired by modern scripting languages.

02

Dynamic values

Work naturally with integers, doubles, strings, lists, and dictionaries.

03

Functions

Create reusable functions with parameters and default arguments.

04

Objects

Use classes, constructors, methods, and inheritance.

05

Control flow

Use conditions, while loops, and for-in iteration naturally.

06

Error handling

Handle runtime problems using try and catch blocks.

Looks familiar.
Feels different.

Tekst keeps common programming concepts recognizable while giving them a compact syntax.

example.tekst
x = 42
name = "Tekst"
active = True

numbers = [1, 2, 3, 4, 5]
fn add(a, b):
  print(a + b)

add(5, 3)
class Counter:
  def __init__(self, start):
    self.value = start

  def increment():
    self.value = self.value + 1
x = 10

if x > 15:
  print("Large")
elif x > 5:
  print("Medium")
else:
  print("Small")

Small programs.
Real ideas.

Start small. Build something interesting. Then make it unnecessarily complicated. It's tradition.

01 Hello World
print("Hello, World!")
02 Lists
numbers = [1, 2, 3, 4, 5]

for num in numbers:
  print(num * 2)
03 Functions
fn multiply(a, b):
  print(a * b)

multiply(3, 7)

Source code in.
Execution out.

Tekst uses a straightforward interpreter pipeline.

01 Lexer

Turns source text into tokens.

02 Parser

Builds an abstract syntax tree.

03 Interpreter

Evaluates the AST at runtime.

Get Tekst.

Download the latest Tekst build and start writing.

Windows · x64

Download

Learn the language.
Then break it.

Read the documentation and start writing Tekst.

Read the docs