]> git.eshelyaron.com Git - emacs.git/commit
Initial constraint negation support
authorAndrea Corallo <akrl@sdf.org>
Wed, 2 Dec 2020 20:44:00 +0000 (21:44 +0100)
committerAndrea Corallo <akrl@sdf.org>
Sat, 5 Dec 2020 18:01:03 +0000 (19:01 +0100)
commit9b85ae6aa5d73649c0a48d5168d4de52ee83ac28
treed2a30c36031bcd90d01436f23858ca3a1f6bd192
parenteb8d15547bfc0821232af12c1ce193e40cdf16c0
Initial constraint negation support

* lisp/emacs-lisp/comp-cstr.el (comp-cstr): Add `neg' slot.
(comp-range-negation, comp-cstr-negation)
(comp-cstr-negation-make): New functions.
(comp-type-spec-to-cstr): Enable `not` in type specifiers.
(comp-cstr-to-type-spec): Update logic to handle negation.
* test/lisp/emacs-lisp/comp-cstr-tests.el
(comp-cstr-typespec-tests-alist): Add a test.
lisp/emacs-lisp/comp-cstr.el
test/lisp/emacs-lisp/comp-cstr-tests.el