summaryrefslogtreecommitdiffstats
path: root/dimension/directives.rules
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-03-22 13:19:45 -0400
committerTavian Barnes <tavianator@gmail.com>2010-03-22 13:19:45 -0400
commitbb71a70253ae5bf91e99dcd2809471abebea1b69 (patch)
tree26c145bbdcb6ba71b2f272641439692c30a5254b /dimension/directives.rules
parentac3e97014885af00b5a2eb01df232221482db023 (diff)
downloaddimension-bb71a70253ae5bf91e99dcd2809471abebea1b69.tar.xz
Support logical ! operator.
Diffstat (limited to 'dimension/directives.rules')
-rw-r--r--dimension/directives.rules3
1 files changed, 3 insertions, 0 deletions
diff --git a/dimension/directives.rules b/dimension/directives.rules
index f3f3e7a..a01ab9a 100644
--- a/dimension/directives.rules
+++ b/dimension/directives.rules
@@ -121,3 +121,6 @@ CONDITIONAL: ARITH_EXPR {
| "(" CONDITIONAL ")" {
$$ = $2;
}
+ | "!" CONDITIONAL {
+ $$ = dmnsn_new_astnode1(DMNSN_AST_NOT, @$, $2);
+ }