-
Notifications
You must be signed in to change notification settings - Fork 15
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
Update custom constraint example #24
base: master
Are you sure you want to change the base?
Conversation
Syntax usage was outdated (since clpfd days)
I suppose it should be updated for scryer as well but somehow it rejects the syntax for mysterious reasons. |
Turns out that this too isn't complete yet: after I load that code (that has Can @triska clarify of a minimum working example? update: adding |
declare run_propagator/4 as multifile and format example
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just because I see it: Put round brackets around the argument of the directive and since this is a non-terminal use //
. Thus replace
:- multifile clpz:run_propagator/2.
by
:- multifile(clpz:run_propagator//2).
Ulrich, I could change it but Sicstus rejects the double slash as "invalid predicate indicator".
Maybe we leave it as is for Sicstus but update the scryer version instead? |
Syntax usage was outdated (since clpfd days).
It took me quite some head scratcing to realise that
run_propagator
extensions should be a dcg rule nowadays!