To give an idea what I have so far. A script like this ...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| setLineWidth(3) setScale(0.04) setColor(#FF7F00) startPainting() turn(180) up(10) count = 0 start: forward(40) placeSphere(1) turn(90) forward(40) placeSphere(1) turn(90) forward(40) placeSphere(1) turn(90) forward(40) placeSphere(1) up(5) turn(70) count = count + 1 if count < 20 { goto start } up(5) |
... will create a graphic like this:

Since all suggestions were towards Java/C syntax, I've set up the interpreter this way currently. Color values are denoted #RRGGBB as in HTML. The script controls a "Turtle" (
http://en.wikipedia.org/wiki/Turtle_graphics ) which moves in 3D space and can draw lines (cylinders) there. Also place objects, spheres are used to round the bends in the example.
Maybe I should get rid of all the paranthesis around arguments?