]> git.eshelyaron.com Git - sweep.git/commit
Support defining DCG non-terminals in sweeprolog-insert-term-dwim
authorEshel Yaron <me@eshelyaron.com>
Mon, 21 Nov 2022 16:39:37 +0000 (18:39 +0200)
committerEshel Yaron <me@eshelyaron.com>
Mon, 21 Nov 2022 16:39:37 +0000 (18:39 +0200)
commit3c2a4d04775c8040b05dd0e1ec6e65abb16fd932
treefd71fd71eeca82a4bc05096dca3b2bac827aa716
parentf3e34cd23f205161d8d07337837ba65657956743
Support defining DCG non-terminals in sweeprolog-insert-term-dwim

* sweep.pl (sweep_color_normalized_/4): expose DCG term "kind" to
Elisp.
* sweeprolog.el (sweeprolog-new-predicate-location-function): change
expected function signature.
(sweeprolog-default-new-predicate-location)
(sweeprolog-new-predicate-location-above-current): update arguments.
(sweeprolog-maybe-define-predicate): support defining DCGs.
.gitignore
NEWS.org
sweep.pl
sweeprolog-tests.el
sweeprolog.el