chemart / l-systems

View on GitHub

L-systems — Growth rather than chemistry. A word over an alphabet is rewritten by applying productions to *every* letter simultaneously - which is what distinguishes it from a grammar that rewrites one symbol at a time, and what mak…

chemistry official · built in rewriting fidelity: reconstructed constructive #banzhaf-yamamoto
files / README.md · 452 B · at 3f17b43751a9 Raw

L-systems

One of the artificial chemistries of Banzhaf & Yamamoto, Artificial Chemistries (MIT Press, 2015), §9.8; first proposed by Lindenmayer, 1968; Prusinkiewicz & Lindenmayer, 1990.

Its generator ships with the chemart library, so loading it runs no code from the hub and needs no trust_remote_code.

import chemart

net = chemart.generate_network("chemart/l-systems", seed=0)   # same as "l-systems"
print(net.summary())