\ example of edge-rewriting system for L-machine
\ This one implements a type of non-self-intersecting curve
\ Called a Hexagonal Gosper Curve.

n = 4
delta = 60.0
X0 = 350.0
Y0 = 125.0
size = 3.0

initial = L   \ initial = left turn

\ define macros for turtle

macros

R = F
L = F

\  notice that R and L are the SAME drawing command.  They only
\  differ when creating the string.  This one took awhile to figure out!

endm

rules

L = L+R++R-L--LL-R+
R = -L+RR++R+L--L-R

endrules
end
