summaryrefslogtreecommitdiffstats
path: root/dimension/common.rules
diff options
context:
space:
mode:
Diffstat (limited to 'dimension/common.rules')
-rw-r--r--dimension/common.rules13
1 files changed, 13 insertions, 0 deletions
diff --git a/dimension/common.rules b/dimension/common.rules
index d91cac3..040f4a6 100644
--- a/dimension/common.rules
+++ b/dimension/common.rules
@@ -283,6 +283,7 @@ OBJECT: FINITE_SOLID_OBJECT
;
FINITE_SOLID_OBJECT: BOX
+ | CONE
| CYLINDER
| SPHERE
;
@@ -297,6 +298,18 @@ BOX: "box" "{"
}
;
+CONE: "cone" "{"
+ VECTOR "," FLOAT "," VECTOR "," FLOAT
+ MAYBE_OPEN
+ OBJECT_MODIFIERS
+ "}"
+ {
+ dmnsn_astnode object
+ = dmnsn_new_astnode5(DMNSN_AST_CONE, @$, $3, $5, $7, $9, $10);
+ $$ = dmnsn_new_astnode2(DMNSN_AST_OBJECT, @$, object, $11);
+ }
+;
+
CYLINDER: "cylinder" "{"
VECTOR "," VECTOR "," FLOAT
MAYBE_OPEN