esolang
Languages · Families46 languages

String-rewriting paradigm

46 languages in the esolangs.org category String-rewriting paradigm, by group.

Turing tarpits

Functional and concatenative

Rewriting

Thue

A program is a bag of find-and-replace rules and a starting string. Rules fire in any order, at any place, until none can.

2000●○○runnable

Muriel

There are no loops. To do something again, a program writes out a new copy of itself and runs that instead.

2001●●●runnable

///

Find-and-replace as a whole language. Each substitution rewrites the rest of the program, so the program edits itself as it runs.

2006●●○runnable

Thutu

Thue with regular expressions and indented blocks. The whole state is one string.

2007●●●runnable

Itflabtijtslwi

A relative of /// that can also read its input, so its rewriting programs can work on what the user types.

2006runnable

Sortle

A sorted list of named expressions. Each one renames itself, and the last name left is the output.

2005●●●runnable

Egaharjb

Find and replace with regexes, in loops that run until nothing matches.

2020●●○runnable

Encapsulation

Find a literal string of bits, replace it, repeat. The run ends when the first bit turns to 1.

2019●●○runnable

Expansion

One line of memory. Every bracketed word in it is rewritten at once, turn after turn, until no bracketed word is left.

2024●○○runnable

Leszek

No jumps, no loops, no variables and no stack. Each turn the program is replaced by what it says.

2006●●●runnable

Object oriented Thue

Thue, where the string can hold objects, and every object carries a string and rules of its own.

2012●●●runnable

REGXY

Two kinds of line, a test and a change, both made of a Perl regular expression.

●●○runnable

Tetanus

One regular expression, applied over and over until it no longer matches.

2022●●●runnable

Parentheses only

Nothing but parentheses. The first group takes in the second and rewrites itself, until no rule fits.

2020●●●runnable

RIfP

Replace If Possible. Every change to a string is also the test that decides where to jump.

2023●○○runnable

Sultan's daughter

A princess answers a string of digits with another string of digits. Find one she answers with itself.

1997●●○runnable

ToFunction

One string, a list of rules, and a run that goes round the list until the string stops changing.

2026●○○runnable

Myth

Thue written as one JSON object, run by 137 bytes of JavaScript.

2013●●○runnable

Strvar

Variables that hold strings, and a string that names a variable turns into its value.

2020●○○runnable

Tandem

One rewrite rule, applied once. The choices and the loops are inside the rule, and the rules form a Kleene algebra.

2020●●○runnable

1cnis

A list where every element is replaced at once, and each element carries one counter.

2007●●○runnable

A=B

One line of text, and a list of replacements tried from the top until none fits.

2022●○○runnable

Aarkinitio

Every cell holds a piece of text, and the only way to change it is to name what it says now.

2024●●○runnable

ABCstr

One string that starts as abc. Each line looks for a piece of it, and a piece that is missing is a jump.

●●○runnable

Beautiful day

A grammar that runs. Every rule that fits opens a branch, and the answer is whether the input can be built.

2020●●○runnable

DOESNT

Rules that say what they will not take, eating a ring of symbols from the head.

2026●●○runnable

FThue

Thue, but the string holds function calls, and the rules are their definitions.

2022●●○runnable

Gecko

One global string, and every statement is a regex that rewrites it.

2019●●○runnable

Gummy Bear

A string of bits with one dot in it, and rules that rewrite what touches the dot on either side.

2020●●○runnable

Liberation

Bits lie still. Only the dots between them can act, and every dot acts at the same time.

2020●●○runnable

Macrosia

Text with calls in brackets, where each step replaces the innermost calls by what they return.

2022●●○runnable

Preparation

A program is one number. It turns into the next one until a number comes back.

2023●○○runnable

Procedural Footnote Language

A plain text with footnotes, where a footnote can count, compare, read input and cite itself.

●●○runnable

Random

The program is its only memory, and every plain character it runs makes it one character longer.

2006●●○runnable

rEsKrIb!lo

String rewriting for a medieval computer, built from a loop of punched tape and 48 relays.

2014●●○runnable

Semper dissolubilis

Functions are written down; types are never declared. Whatever no rule can rewrite is an object.

2020●●●runnable

Shinjusō

Mother-of-pearl. Rules rewrite a row of coloured beads, and an ironed bead never changes again.

2026●●○runnable

Tetra

Nothing but parentheses. A group that starts with an empty group splits in two, and the output is how many groups are left.

2022●●○runnable

Twoee

Thue with the chance taken out. The first rule that fits always wins, and the string is printed at the end.

2018●○○runnable

Собачка

A row of digits folds in on itself, pair by pair, until one digit is left.

2022●○○runnable

Lines

/// with input. A \| is not a bar but the next character you type.

2015●●○runnable

T-Regs

Regular expressions and one text. Add labels and a goto, and that is the whole language.

2012●●○runnable

Spatial (2D and up)

Hostile