summaryrefslogtreecommitdiffstats
path: root/dimension/common.rules
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-11-19 01:48:52 -0500
committerTavian Barnes <tavianator@gmail.com>2010-11-19 01:48:52 -0500
commitf71fc5a23b0c4d6d51308318c8f7fab7b2d1c3a1 (patch)
tree1e6b5a6bac58434a6b42d0d33d8b359e482f4f50 /dimension/common.rules
parent17e517be54922a848a4e79394d0969d57e5b3b9e (diff)
downloaddimension-f71fc5a23b0c4d6d51308318c8f7fab7b2d1c3a1.tar.xz
Add 'sturm' modifier to the AST anyway.
Diffstat (limited to 'dimension/common.rules')
-rw-r--r--dimension/common.rules10
1 files changed, 8 insertions, 2 deletions
diff --git a/dimension/common.rules b/dimension/common.rules
index 74a40e4..f4ce31f 100644
--- a/dimension/common.rules
+++ b/dimension/common.rules
@@ -362,14 +362,20 @@ TORUS_MODIFIERS: /* empty */ {
dmnsn_diagnostic(@2,
"WARNING: Dimension does not use 'sturm';"
" ignored.");
+ dmnsn_astnode on = dmnsn_new_ast_integer(true);
+ dmnsn_astnode sturm = dmnsn_new_astnode1(DMNSN_AST_STURM, @2,
+ on);
$$ = $1;
+ dmnsn_array_push($$.children, &sturm);
}
- | TORUS_MODIFIERS "sturm" FLOAT {
+ | TORUS_MODIFIERS "sturm" INT {
dmnsn_diagnostic(@2,
"WARNING: Dimension does not use 'sturm';"
" ignored.");
- dmnsn_delete_astnode($3);
+ dmnsn_astnode sturm = dmnsn_new_astnode1(DMNSN_AST_STURM, @2,
+ $3);
$$ = $1;
+ dmnsn_array_push($$.children, &sturm);
}
;