A place to collapse wave equations.
LHS -> RHS
|
LHS
A B -> A x B
A compact emulator for Type-1, context-sensitive rewriting. This Simple Mode hides advanced controls so the poem is easy to run on Blogger.
Deterministic run: applies the leftmost applicable rule once per step. “Run” repeats until Max Steps or no rule applies.
A B x
->
∅
epsilon
eps
ε
;
//
The LHS may be multiple tokens. A rule matches only when the entire LHS sequence occurs, so rewrites can depend on neighbors.
A B -> A x B A x B -> A x x B
“Insert x between A and B” only triggers when A is immediately followed by B.
x
A
B
# basic form A -> x y z # multi-token LHS (context required) A B -> A x B # alternatives S -> A S A | B S B | A A | B B # epsilon (delete) C B -> ; removes the sequence "C B" # comments A B -> A x B ; insert x between A and B
AND
light
debt