Skip to content

Commit

Permalink
=== to be documented as well as ====
Browse files Browse the repository at this point in the history
  • Loading branch information
TeamSPoon committed Aug 27, 2024
1 parent c391b3b commit 35cfd9f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/canary/metta_eval.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1849,6 +1849,15 @@
suggest_type(RetType,'Bool'),
eq_unify(Eq,_SharedType, X, Y, Res).

eval_20(_Eq,RetType,_Dpth,_Slf,[EQ,X,Y],TF):- EQ=='===', !,
suggest_type(RetType,'Bool'),
as_tf(X==Y,TF).

eval_20(_Eq,RetType,_Dpth,_Slf,[EQ,X,Y],TF):- EQ=='====', !,
suggest_type(RetType,'Bool'),
as_tf(same_terms(X,Y),TF).


eq_unify(_Eq,_SharedType, X, Y, TF):- as_tf(X=:=Y,TF),!.
eq_unify(_Eq,_SharedType, X, Y, TF):- as_tf( '#='(X,Y),TF),!.
eq_unify( Eq, SharedType, X, Y, TF):- as_tf(eval_until_unify(Eq,SharedType, X, Y), TF).
Expand Down

0 comments on commit 35cfd9f

Please sign in to comment.