Skip to content

Use of variables in display section  #28

@zhangyuanlin

Description

@zhangyuanlin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions