esolang

Groups · 92 languages

Rewriting

The program is a set of rules that rewrite a string or a number until nothing applies.

Families in this group

Languages

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

Fueue

There is one queue. The program is put in it, the data goes in it, and the functions eat whatever happens to stand behind them.

2012●●●runnable

Mascarpone

The interpreter running your program is a value on the stack. Take it, change what a symbol means, and put it back.

2007●●●runnable

Thutu

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

2007●●●runnable

Sortle

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

2005●●●runnable

Itflabtijtslwi

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

2006runnable

Retina

A golfing language where every line is a regular expression. A program is a pipeline of search-and-replace stages over one string.

2015●●○runnable

Record

Four commands named by their letters, REgex, COncatenate, Read, Display.

2025●●○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

Hollow

A stack of strings, and lines that split and join them. Every line says where to go if it worked and where to go if it did not.

2012●●○runnable

Encapsulation

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

2019●●○runnable

Egaharjb

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

2020●●○runnable

REGXY

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

●●○runnable

SRL++

Every line is one call to Python's re.sub, from one named string into another.

●●○runnable

FRACTRAN

A program is a list of fractions. Multiply your number by the first one that keeps it whole. Repeat. John Conway made it list every prime.

1987●●●runnable

Ypsilax

The rules are drawn in the same grid they rewrite, so a rule can rewrite another rule.

2001●●●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

Tetanus

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

2022●●●runnable

Xigxag

A string of arrows. Each arrow copies the part of the string it points at into the next one.

2001●○○runnable

RIfP

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

2023●○○runnable

ToFunction

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

2026●○○runnable

Sultan's daughter

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

1997●●○runnable

Anemone

No lambda and no assignment. A program is a list of rules that say what a term reduces to.

2010●●○runnable

PHL 1.0

Every call is replaced by its value and every declaration by its name, until only text is left.

2012●●○runnable

Realm

Memory is a graph where every node has two arrows and nothing else. A program only redraws arrows.

2019●●●runnable

Golden sunrise

Groups of bits are replaced until no group is left, and the bits left over are the answer.

2020●●●runnable

Parentheses only

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

2020●●●runnable

Strvar

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

2020●○○runnable

REXS

Regular expressions written out as nested function calls. The program's output is the regex.

2021●○○runnable

sed

The Unix stream editor. Regular expressions, a second buffer and a goto turn out to be a whole computer.

1974●●○runnable

Platts

A 2-tag system that can talk. Cut two symbols off the front, put one production on the end, and let some productions show on the screen.

2008●●○runnable

Wittgen

Two instructions, assign and retrieve, and a variable called Doing Now that holds the rest of the program.

2012●●○runnable

Myth

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

2013●●○runnable

Elevated Parser

The program is a grammar and the input is a text. The answer is whether the text parses.

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

Inject

Labels cut the program into blocks of lines. The blocks are all the memory there is, and a regex can rewrite them while they run.

2021●●○runnable

Piece of cake

FRACTRAN without the primes. The registers get names, and the rules read from left to right.

2026●●○runnable

Brook

A queue language with a third output. What goes there is not shown; it is run.

2011●●●runnable

Implieses

No instructions at all. The state rewrites itself, two bits into one, until it starts with 0.

2017●○○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

NLRNIS

No loops, recursion neither if statements. Only string variables, and a jump back to the start.

2021●○○runnable

A=B

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

2022●○○runnable

Собачка

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

2022●○○runnable

Preparation

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

2023●○○runnable

Firstreplace

Slashes by accident. Each pattern replaces its first match once, and then the program is done.

●○○runnable

Random

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

2006●●○runnable

1cnis

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

2007●●○runnable

rEsKrIb!lo

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

2014●●○runnable

MSR

Match, switch, reverse. Rules flip bits in an endless grid until none of them can.

2018●●○runnable

Gecko

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

2019●●○runnable

Rotpai

A row of two-character tiles that turn round or slide past each other until none of them can turn.

2019●●○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

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

FThue

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

2022●●○runnable

Macrosia

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

2022●●○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

Aarkinitio

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

2024●●○runnable

Enwokenment

The program is a list of sums. Add the first one that keeps every count at 0 or above, and start over.

2024●●○runnable

Cable

A row of blocks, run from the left. A block can delete, copy or add the blocks in front of it, and that is the only way to loop.

2026●●○runnable

DOESNT

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

2026●●○runnable

Shinjusō

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

2026●●○runnable

Streamlang

One operator, the arrow. Everything else is a queue with a name.

2026●●○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

Procedural Footnote Language

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

●●○runnable

Transceternal

The program, its instruction pointer and its input all live in one graph, and running it rewrites that graph.

2019●●●runnable

Detrovert

Objects without methods. Threads find shapes in the graph of objects and rewire them.

2020●●●runnable

Entrance

Write down what a function gives, and the prover runs it backwards to find what it was given.

2020●●●runnable

Fading Rainbow

Every match rewrites at once, and everything that did not match fades away.

2020●●●runnable

Integer

The program is one number, the input is one number, and running it rewrites one number.

2020●●●runnable

Semper dissolubilis

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

2020●●●runnable

Relations

One relation of triples, rules that only ever add to it, and output that appears when the right triple turns up.

2026●●●runnable

Simp

No declarations and no definitions, only rewriting rules, with the input as the argument of main.

2026●●●runnable

rrreplace

Everything is a string, and every expression is a substitution in braces. To call a function you sometimes have to build the call as text first.

●●●runnable

DerpScrp

Three strings and five commands. One of the strings is the console, and one is the program.

2019●○○runnable

Left-or-right

Every arrow is a value and an operator at once. The middle one of three says which neighbour wins.

2020●○○runnable

T-Regs

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

2012●●○runnable

Lines

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

2015●●○runnable

Post Dominos

A program is a box of dominos, and a string is accepted if some row of them spells it twice.

2019●●○runnable

-string

Every word is a variable unless a dash makes it text, and brackets make a line be read twice.

2025●●○runnable

Alchemist

A program is a list of reactions. Whatever atoms are present react, until nothing can.

●●○runnable

Dogless

One string with a marker in it. Each step rewrites the string, and what is left at the end is the output.

●●○runnable

FEU

The whole input is one string. Every line of the program rewrites it with a regex, and what is left at the end is the output.

●●○runnable

ReRegex

A list of regex replacements, run again and again on one string until nothing changes.

●●○runnable

ResPlicate

A list of numbers that reads two from its front and copies a piece of itself to its back.

●●○runnable

Full Stack

The program is a queue of its own bytes, and a small stack language rewrites what is left of it.

2019●●●runnable

Cyclic tag system

Productions applied in turn to a string of bits. Each step deletes the first bit and appends the production if it was 1.

runnable

Markov algorithm

Ordered rewriting rules. Each step replaces the first match of the first rule that matches, until none does.

runnable

Tag system

A word of symbols. Each step deletes the first symbols and appends the production of the first one.

runnable