Skip to content

Commit 96b73a7

Browse files
committed
metta_NotReducible
1 parent 92dfc51 commit 96b73a7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.Attic/metta_lang/metta_eval.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175

176176
eval_reducable(Eq,RetType,Depth,Self,X,G,Y,O):- catch_metta_return(G,Y), return_x_g_y(Eq,RetType,Depth,Self,X,X,Y,O).
177177

178-
return_x_g_y(_Eq,_RetType,_Depth,_Self,X,_,Y,R):- Y == 'NotReducable',!,R=X.
178+
return_x_g_y(_Eq,_RetType,_Depth,_Self,X,_,Y,R):- Y == 'NotReducible',!,R=X.
179179
return_x_g_y(Eq,RetType,Depth, Self,X,M,Y,R):- M\=@=Y, !, eval_args(Eq,RetType,Depth,Self,Y,Z), return_x_g_y(Eq,RetType,Depth,Self,X,Y,Z,R).
180180
return_x_g_y(_Eq,_RetType,_Depth,_Self,_X,_M,R,R).
181181

@@ -2862,7 +2862,7 @@
28622862
((eval_args(Eq,RetType,Depth,Self,Funcall,E))
28632863
*-> is_returned(E);(fail,E=Funcall)).
28642864

2865-
is_returned(E):- notrace( \+ is_empty(E)), nop(assertion(E \== 'NotReducable')).
2865+
is_returned(E):- notrace( \+ is_empty(E)), nop(assertion(E \== 'NotReducible')).
28662866
is_empty(E):- notrace(( nonvar(E), sub_var('Empty',E))),!.
28672867

28682868

prolog/metta_lang/metta_eval.pl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
self_eval0('Empty').
8080
self_eval0([]).
8181
self_eval0('%Undefined%').
82-
self_eval0(X):- atom(X),!, X\=='NotReducable', \+ nb_bound(X,_),!.
82+
self_eval0(X):- atom(X),!, X\=='NotReducible', \+ nb_bound(X,_),!.
8383

8484
nb_bound(Name,X):- atom(Name), % atom_concat('&', _, Name),
8585
nb_current(Name, X), compound(X). % spaces and states are stored as compounds
@@ -307,7 +307,7 @@
307307

308308
eval_20(Eq,RetType,_Dpth,_Slf,Name,Y):-
309309
atom(Name), !,
310-
(Name=='NotReducable'->throw(metta_NotReducable);
310+
(Name=='NotReducible'->throw(metta_NotReducible);
311311
(nb_bound(Name,X)->do_expander(Eq,RetType,X,Y);
312312
Y = Name)).
313313

@@ -2807,7 +2807,7 @@
28072807

28082808
eval_defn_choose_candidates(Eq,RetType,Depth,Self,X,Y):-
28092809
findall((XX->B0),get_defn_expansions(Eq,RetType,Depth,Self,X,XX,B0),XXB0L),!,
2810-
catch(eval_defn_bodies(Eq,RetType,Depth,Self,X,Y,XXB0L),metta_NotReducable,X=Y).
2810+
catch(eval_defn_bodies(Eq,RetType,Depth,Self,X,Y,XXB0L),metta_NotReducible,X=Y).
28112811
eval_defn_choose_candidates(Eq,RetType,Depth,Self,X,Y):-
28122812
eval_defn_bodies(Eq,RetType,Depth,Self,X,Y,[]),!.
28132813

0 commit comments

Comments
 (0)