sparc
sparc copied to clipboard
Use of variables in display section
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