after12am / eisenscript

A programming language designed for generating awesome structures.
https://after12am.github.io/eisenscript-docs/
MIT License
46 stars 5 forks source link

fix bugs of depth related to recursively rule calling #48

Closed after12am closed 7 years ago

after12am commented 7 years ago

testing codes is:

patter1

corner
rule corner md 4 {
  { s 1 2 1.2 }ARC
  {ry 36}corner
}
rule ARC md 3 {
  { z 0.85 rx 4.5 s 0.95 } ARC
  box
}

pattern2

crate
rule crate md 2 {
  box
  { s 0.5 x 0.9 z 0.9 y -0.9 } crate //1
  { s 0.5 x -0.9 z 0.9 y -0.9 } crate //2
}