emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/emacsql 1bf92bab9e 285/427: Add a special case for unary n


From: ELPA Syncer
Subject: [nongnu] elpa/emacsql 1bf92bab9e 285/427: Add a special case for unary not.
Date: Tue, 13 Dec 2022 02:59:52 -0500 (EST)

branch: elpa/emacsql
commit 1bf92bab9e41f3432912ddf8ef1d3b3d2f2ee301
Author: Christopher Wellons <wellons@nullprogram.com>
Commit: Christopher Wellons <wellons@nullprogram.com>

    Add a special case for unary not.
---
 emacsql-compiler.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/emacsql-compiler.el b/emacsql-compiler.el
index 9678353ffd..4fbb53b127 100644
--- a/emacsql-compiler.el
+++ b/emacsql-compiler.el
@@ -247,6 +247,9 @@ which will be combined with variable definitions."
                (1 (format "-(%s)" (recur 0)))
                (2 (format "%s - %s" (recur 0) (recur 1)))
                (otherwise (nops op))))
+            ;; Unary
+            ((not)
+             (format "NOT %s" (recur 0)))
             ;; Ordering
             ((asc desc)
              (format "%s %s" (recur 0) (upcase (symbol-name op))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]