twinkleplopBuild the machineExplore

One helper. A whole little machine.

Describe a string by the characters that open, close, and escape it.

One helper. A whole little machine.Describe a string by the characters that open, close, and escape it.rootmatch_withinemit string02escape1start"end"escape\one characteranything elsealready existedcreated by the helpercreated by escapecharacter map for root32330343536373839rule 0actionpush · emit string[2, 0, 1]↶ root↶ insidesource"0h1i2\3"4!5"6string0type0start7endtype 0 = string · end 7 is exclusive
↓ Scroll to transform
01 / 12

This is one ASCII string helper, using twinkleplop’s actual compiler and token output. Larger grammars add more routes; the runtime stays the same.

Read the compiler ↗Explore a language ↗