summaryrefslogtreecommitdiffstats
path: root/dimension/common.rules
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-03-19 12:48:38 -0400
committerTavian Barnes <tavianator@gmail.com>2010-03-19 12:48:38 -0400
commitc01e193e19d45e2c5b1e86928cedc11cdbdda476 (patch)
tree5233fa6d70c2a79022e19b1fffa13b2c5ce5c678 /dimension/common.rules
parent8977b20f170a23bb917a0f09b4c558ad8bbdb0ab (diff)
downloaddimension-c01e193e19d45e2c5b1e86928cedc11cdbdda476.tar.xz
Support exp().
Diffstat (limited to 'dimension/common.rules')
-rw-r--r--dimension/common.rules3
1 files changed, 3 insertions, 0 deletions
diff --git a/dimension/common.rules b/dimension/common.rules
index c03eee8..bb03577 100644
--- a/dimension/common.rules
+++ b/dimension/common.rules
@@ -396,6 +396,9 @@ ARITH_EXPR: FLOAT_LITERAL
$$ = dmnsn_new_astnode1(DMNSN_AST_DOT_TRANSMIT, @$, $1);
}
| "(" ARITH_EXPR ")" { $$ = $2; }
+ | "exp" "(" ARITH_EXPR ")" {
+ $$ = dmnsn_new_astnode1(DMNSN_AST_EXP, @$, $3);
+ }
| IDENTIFIER
| "x" { $$ = dmnsn_new_ast_ivector(1, 0, 0, 0, 0); }
| "u" { $$ = dmnsn_new_ast_ivector(1, 0, 0, 0, 0); }