esolang

Tag system

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

esolangs.org

Tested with 1 example and 1 known program · Test method

Run it

Example

Expected output

H3333331

Output


What it is

Tag system: first line m, then "symbol:production" lines; input the initial word, output the halting one

How its machine works

Its machine has a queue of values.

Quirks

  • A run stops after 3,000,000 steps.

Also in Rewriting

Write your own in Run Convert a program from Tag system

Implementation

JavaScript interpreter, source and command line

A JavaScript interpreter, used in the browser and on the command line. Id: tag.

Command line

shib run tag -e '2
1:3321H
2:331
3:33' --input '211'
shib manual tag

Source

Module
langs/dialects/ports.js
Interpreter
langs/dialects/rewriting.js

Docs: Kernel instructions · The .shib format · Command line · Adding a language

Source esolangs.org (CC0) · Edit on esolangs.org