protect goal expansion
This commit is contained in:
parent
32f6c44dea
commit
bd337494f1
@ -337,7 +337,9 @@ expand_expr(Op, X, Y, O, Q, P) :-
|
|||||||
'$do_and'(Z = X, Y = W, E).
|
'$do_and'(Z = X, Y = W, E).
|
||||||
|
|
||||||
|
|
||||||
'$goal_expansion_allowed'(phrase(NT,_Xs0,_Xs), Mod).
|
'$goal_expansion_allowed'(phrase(NT,_Xs0,_Xs), Mod) :-
|
||||||
|
callable(NT),
|
||||||
|
atom(Mod).
|
||||||
|
|
||||||
%% contains_illegal_dcgnt(+Term) is semidet.
|
%% contains_illegal_dcgnt(+Term) is semidet.
|
||||||
%
|
%
|
||||||
|
Reference in New Issue
Block a user