声明一个可在外部覆盖的属性。
attr(name = defaultValue)
attr name = defaultValue
attr wallColor = "#d4c4a8"
attr roofColor = "#8b4513"
@StartRule
Lot --> primitiveCube(6, 0.2, 6)
extrude(8)
comp(f) { top: Roof | side: Wall }
Roof --> color(roofColor)
Wall --> color(wallColor)