Skip to content
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

Use of variables in display section #28

Open
zhangyuanlin opened this issue Sep 24, 2018 · 0 comments
Open

Use of variables in display section #28

zhangyuanlin opened this issue Sep 24, 2018 · 0 comments

Comments

@zhangyuanlin
Copy link

Given program

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Template for a SPARC file
%% Author:
%% Description:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
sorts
    #people = {f(a,sara), f(b, sara), f(a, bob)}.
predicates
    father(#people, #people).
rules
    father(f(a,bob), f(a,sara)).
    father(f(a, bob), f(b, sara)).
    
display
father(X, f(Z, sara)).

We have complaint for the statement in the display section:

SPARC V2.54
temp.sp: non-ground term "f(Z,sara)" occuring in program as 2 argument of predicate father/2 
is not a program term
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant