iterate-string-loop ( STRING RULES ACCUM -- )


Vocabulary
L-system

Inputs
STRINGan object
RULESan object
ACCUMan object


Outputs
None

Definition


:: iterate-string-loop ( STRING RULES ACCUM -- )
STRING empty? not [
[let
STRING read-instruction :> ( NEXT REST ) NEXT 1 head
RULES at NEXT or ACCUM push-all
REST RULES ACCUM iterate-string-loop ]
] when ;