-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
preliminary support for a subset of quads introduced by @UWN #2746
base: master
Are you sure you want to change the base?
Conversation
|
I was going to ask exactly for this feature actually! This works specially nice with warnings as comments, and I think it may also make the experience with ediprolog and similar systems much nicer (though I don't use ediprolog so this is a guess)! |
Yes this would be ideal! The issue here is that one or more answer descriptions can follow a query, so this goes beyond a single term. A description that is not preceded by a query should yield an error or be treated as a regular fact as the case might be. |
Oh, so it's support also for things like this and not only actual outputs of queries in the toplevel? ?- example.
X = 1, unexpected.
X = 2, expected. This notation that you seem to use is the only place I can think where more than one term comes after a query. Also, why the name "quads"? |
This lets us embed toplevel interactions in Prolog programs. Embedded toplevel interactions are currently ignored. Example: :- use_module(library(lists)). ?- member(X, "abc"). X = a ; X = b ; X = c.
Here,
Queries using answer descriptions. So this is about either plain answers, as above, or some descriptions thereof. Think of |
@bakaq, see the Prolog prologue for more quads. |
This lets us embed toplevel interactions in Prolog programs. Embedded toplevel interactions are currently ignored.
Example: