summaryrefslogtreecommitdiffstats
path: root/dimension/common.rules
diff options
context:
space:
mode:
Diffstat (limited to 'dimension/common.rules')
-rw-r--r--dimension/common.rules6
1 files changed, 6 insertions, 0 deletions
diff --git a/dimension/common.rules b/dimension/common.rules
index 72480c0..c03eee8 100644
--- a/dimension/common.rules
+++ b/dimension/common.rules
@@ -397,6 +397,12 @@ ARITH_EXPR: FLOAT_LITERAL
}
| "(" ARITH_EXPR ")" { $$ = $2; }
| IDENTIFIER
+ | "x" { $$ = dmnsn_new_ast_ivector(1, 0, 0, 0, 0); }
+ | "u" { $$ = dmnsn_new_ast_ivector(1, 0, 0, 0, 0); }
+ | "y" { $$ = dmnsn_new_ast_ivector(0, 1, 0, 0, 0); }
+ | "v" { $$ = dmnsn_new_ast_ivector(0, 1, 0, 0, 0); }
+ | "z" { $$ = dmnsn_new_ast_ivector(0, 0, 1, 0, 0); }
+ | "t" { $$ = dmnsn_new_ast_ivector(0, 0, 0, 1, 0); }
;
/* Colors */