summaryrefslogtreecommitdiffstats
path: root/tests/dimension/demo.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-06-19 10:32:41 -0400
committerTavian Barnes <tavianator@gmail.com>2010-06-19 10:36:02 -0400
commitdb09a6bc5bb5da674abf7b5f8874a57ef2cf4dfb (patch)
tree3ab3c42bbc872f701708cb855a9b9d954b54f9c5 /tests/dimension/demo.sh
parentc8667ce6ae94929e9bc06c9af51b6589bc528946 (diff)
downloaddimension-db09a6bc5bb5da674abf7b5f8874a57ef2cf4dfb.tar.xz
Abstract syntax tree improvements.
Keep objects in a single DMNSN_AST_OBJECT node type.
Diffstat (limited to 'tests/dimension/demo.sh')
-rwxr-xr-xtests/dimension/demo.sh26
1 files changed, 15 insertions, 11 deletions
diff --git a/tests/dimension/demo.sh b/tests/dimension/demo.sh
index 18f1c05..a5f05a5 100755
--- a/tests/dimension/demo.sh
+++ b/tests/dimension/demo.sh
@@ -37,11 +37,13 @@ demo_exp=$(echo -n \
(vector (integer -15) (integer 20) (integer 10) (integer 0) (integer 0))
(vector (integer 1) (integer 1) (integer 1) (integer 0) (integer 0))
object-modifiers)
- (difference
- (array
- (box
- (vector (integer -1) (integer -1) (integer -1) (integer 0) (integer 0))
- (vector (integer 1) (integer 1) (integer 1) (integer 0) (integer 0))
+ (object
+ (difference
+ (object
+ (box
+ (vector (integer -1) (integer -1) (integer -1)
+ (integer 0) (integer 0))
+ (vector (integer 1) (integer 1) (integer 1) (integer 0) (integer 0)))
(object-modifiers
(transformation
(rotation (vector (integer 45) (integer 0) (integer 0)
@@ -60,9 +62,10 @@ demo_exp=$(echo -n \
reflection-items)))
(interior
(ior (float 1.1)))))
- (sphere
- (vector (integer 0) (integer 0) (integer 0) (integer 0) (integer 0))
- (float 1.25)
+ (object
+ (sphere
+ (vector (integer 0) (integer 0) (integer 0) (integer 0) (integer 0))
+ (float 1.25))
(object-modifiers
(texture
(pigment
@@ -73,9 +76,10 @@ demo_exp=$(echo -n \
(phong (float 0.2))
(phong_size (float 40)))))))
object-modifiers)
- (plane
- (vector (integer 0) (integer 1) (integer 0) (integer 0) (integer 0))
- (integer -2)
+ (object
+ (plane
+ (vector (integer 0) (integer 1) (integer 0) (integer 0) (integer 0))
+ (integer -2))
(object-modifiers
(pigment
(vector (integer 1) (integer 1) (integer 1)