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●○○runnableMuriel
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●●○runnableFueue
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●●●runnableMascarpone
The interpreter running your program is a value on the stack. Take it, change what a symbol means, and put it back.
2007●●●runnableThutu
Thue with regular expressions and indented blocks. The whole state is one string.
2007●●●runnableSortle
A sorted list of named expressions. Each one renames itself, and the last name left is the output.
2005●●●runnableItflabtijtslwi
A relative of /// that can also read its input, so its rewriting programs can work on what the user types.
2006runnableRetina
A golfing language where every line is a regular expression. A program is a pipeline of search-and-replace stages over one string.
2015●●○runnableRecord
Four commands named by their letters, REgex, COncatenate, Read, Display.
2025●●○runnableExpansion
One line of memory. Every bracketed word in it is rewritten at once, turn after turn, until no bracketed word is left.
2024●○○runnableHollow
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●●○runnableEncapsulation
Find a literal string of bits, replace it, repeat. The run ends when the first bit turns to 1.
2019●●○runnableEgaharjb
Find and replace with regexes, in loops that run until nothing matches.
2020●●○runnableREGXY
Two kinds of line, a test and a change, both made of a Perl regular expression.
●●○runnableSRL++
Every line is one call to Python's re.sub, from one named string into another.
●●○runnableFRACTRAN
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●●●runnableYpsilax
The rules are drawn in the same grid they rewrite, so a rule can rewrite another rule.
2001●●●runnableLeszek
No jumps, no loops, no variables and no stack. Each turn the program is replaced by what it says.
2006●●●runnableObject oriented Thue
Thue, where the string can hold objects, and every object carries a string and rules of its own.
2012●●●runnableTetanus
One regular expression, applied over and over until it no longer matches.
2022●●●runnableXigxag
A string of arrows. Each arrow copies the part of the string it points at into the next one.
2001●○○runnableRIfP
Replace If Possible. Every change to a string is also the test that decides where to jump.
2023●○○runnableToFunction
One string, a list of rules, and a run that goes round the list until the string stops changing.
2026●○○runnableSultan's daughter
A princess answers a string of digits with another string of digits. Find one she answers with itself.
1997●●○runnableAnemone
No lambda and no assignment. A program is a list of rules that say what a term reduces to.
2010●●○runnablePHL 1.0
Every call is replaced by its value and every declaration by its name, until only text is left.
2012●●○runnableRealm
Memory is a graph where every node has two arrows and nothing else. A program only redraws arrows.
2019●●●runnableGolden sunrise
Groups of bits are replaced until no group is left, and the bits left over are the answer.
2020●●●runnableParentheses only
Nothing but parentheses. The first group takes in the second and rewrites itself, until no rule fits.
2020●●●runnableStrvar
Variables that hold strings, and a string that names a variable turns into its value.
2020●○○runnableREXS
Regular expressions written out as nested function calls. The program's output is the regex.
2021●○○runnablesed
The Unix stream editor. Regular expressions, a second buffer and a goto turn out to be a whole computer.
1974●●○runnablePlatts
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●●○runnableWittgen
Two instructions, assign and retrieve, and a variable called Doing Now that holds the rest of the program.
2012●●○runnableMyth
Thue written as one JSON object, run by 137 bytes of JavaScript.
2013●●○runnableElevated Parser
The program is a grammar and the input is a text. The answer is whether the text parses.
2020●●○runnableTandem
One rewrite rule, applied once. The choices and the loops are inside the rule, and the rules form a Kleene algebra.
2020●●○runnableInject
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●●○runnablePiece of cake
FRACTRAN without the primes. The registers get names, and the rules read from left to right.
2026●●○runnableBrook
A queue language with a third output. What goes there is not shown; it is run.
2011●●●runnableImplieses
No instructions at all. The state rewrites itself, two bits into one, until it starts with 0.
2017●○○runnableTwoee
Thue with the chance taken out. The first rule that fits always wins, and the string is printed at the end.
2018●○○runnableNLRNIS
No loops, recursion neither if statements. Only string variables, and a jump back to the start.
2021●○○runnableA=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●○○runnablePreparation
A program is one number. It turns into the next one until a number comes back.
2023●○○runnableFirstreplace
Slashes by accident. Each pattern replaces its first match once, and then the program is done.
●○○runnableRandom
The program is its only memory, and every plain character it runs makes it one character longer.
2006●●○runnable1cnis
A list where every element is replaced at once, and each element carries one counter.
2007●●○runnablerEsKrIb!lo
String rewriting for a medieval computer, built from a loop of punched tape and 48 relays.
2014●●○runnableMSR
Match, switch, reverse. Rules flip bits in an endless grid until none of them can.
2018●●○runnableGecko
One global string, and every statement is a regex that rewrites it.
2019●●○runnableRotpai
A row of two-character tiles that turn round or slide past each other until none of them can turn.
2019●●○runnableBeautiful day
A grammar that runs. Every rule that fits opens a branch, and the answer is whether the input can be built.
2020●●○runnableGummy Bear
A string of bits with one dot in it, and rules that rewrite what touches the dot on either side.
2020●●○runnableLiberation
Bits lie still. Only the dots between them can act, and every dot acts at the same time.
2020●●○runnableFThue
Thue, but the string holds function calls, and the rules are their definitions.
2022●●○runnableMacrosia
Text with calls in brackets, where each step replaces the innermost calls by what they return.
2022●●○runnableTetra
Nothing but parentheses. A group that starts with an empty group splits in two, and the output is how many groups are left.
2022●●○runnableAarkinitio
Every cell holds a piece of text, and the only way to change it is to name what it says now.
2024●●○runnableEnwokenment
The program is a list of sums. Add the first one that keeps every count at 0 or above, and start over.
2024●●○runnableCable
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●●○runnableDOESNT
Rules that say what they will not take, eating a ring of symbols from the head.
2026●●○runnableShinjusō
Mother-of-pearl. Rules rewrite a row of coloured beads, and an ironed bead never changes again.
2026●●○runnableStreamlang
One operator, the arrow. Everything else is a queue with a name.
2026●●○runnableABCstr
One string that starts as abc. Each line looks for a piece of it, and a piece that is missing is a jump.
●●○runnableProcedural Footnote Language
A plain text with footnotes, where a footnote can count, compare, read input and cite itself.
●●○runnableTransceternal
The program, its instruction pointer and its input all live in one graph, and running it rewrites that graph.
2019●●●runnableDetrovert
Objects without methods. Threads find shapes in the graph of objects and rewire them.
2020●●●runnableEntrance
Write down what a function gives, and the prover runs it backwards to find what it was given.
2020●●●runnableFading Rainbow
Every match rewrites at once, and everything that did not match fades away.
2020●●●runnableInteger
The program is one number, the input is one number, and running it rewrites one number.
2020●●●runnableSemper dissolubilis
Functions are written down; types are never declared. Whatever no rule can rewrite is an object.
2020●●●runnableRelations
One relation of triples, rules that only ever add to it, and output that appears when the right triple turns up.
2026●●●runnableSimp
No declarations and no definitions, only rewriting rules, with the input as the argument of main.
2026●●●runnablerrreplace
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.
●●●runnableDerpScrp
Three strings and five commands. One of the strings is the console, and one is the program.
2019●○○runnableLeft-or-right
Every arrow is a value and an operator at once. The middle one of three says which neighbour wins.
2020●○○runnableT-Regs
Regular expressions and one text. Add labels and a goto, and that is the whole language.
2012●●○runnableLines
/// with input. A \| is not a bar but the next character you type.
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●●○runnableAlchemist
A program is a list of reactions. Whatever atoms are present react, until nothing can.
●●○runnableDogless
One string with a marker in it. Each step rewrites the string, and what is left at the end is the output.
●●○runnableFEU
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.
●●○runnableReRegex
A list of regex replacements, run again and again on one string until nothing changes.
●●○runnableResPlicate
A list of numbers that reads two from its front and copies a piece of itself to its back.
●●○runnableFull Stack
The program is a queue of its own bytes, and a small stack language rewrites what is left of it.
2019●●●runnableCyclic 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.
runnableMarkov algorithm
Ordered rewriting rules. Each step replaces the first match of the first rule that matches, until none does.
runnableTag system
A word of symbols. Each step deletes the first symbols and appends the production of the first one.
runnable