(format "Extreme Wave") (version "0.1") ; This is an example of the revised Extreme Wave format. The new ; format uses a lex/yacc grammar. This makes the file parsing much more ; robust and much easier to maintain. ; All points are referred to by index from a point list. (pointlist 3.4 3.2 22.22 5.67 7.88 23.33 5.67 7.88 23.33 3.4 3.2 22.22 133.4 13.2 50.22 23.4 23.2 29.22 33.4 22.5 21.75 80.0 10.0 0.0 -10.0 -80.0 -20.0 40.0 50.0 30.0) ; All files have a root node which contain other elements. (!group (name "world") ; Any element can specify as much or as little about it's properties ; and maintains future file compatibility, since all properties are named. (!sphere (name "ball") (radius 5.0) (center 5)) (!polygon (points 1 2 3)) (!polygon (points 7 8 9)) (!bezier (points 3 4 5 6 7 8 9)) (!group (name "sub group a") (!polygon (points 4 5 6)) (!polygon (points 7 8 9))) (!group (name "sub group b") (!polygon (points 1 2 3)) (!polygon (points 4 5 6)) (!group (name "sub group c" ) (!polygon (points 7 8 9)) (!polygon (points 7 6 5))))) ; Note: this was hand generated as an example. Extreme Wave always outputs ; every posible property for any element. This is a perfectly valid file, ; but I have omitted many (most) properties, to show how simple it is, ; and to show how minimalistic it can be and still be valid when loading ; from Extreme Wave.