]> Repositorios git - scryer-prolog.git/commitdiff
remove (\+)//1 (#1511) remove_not_as_non_terminal origin/remove_not_as_non_terminal
authorMark <[email protected]>
Mon, 4 Dec 2023 20:51:44 +0000 (13:51 -0700)
committerMark <[email protected]>
Mon, 4 Dec 2023 20:51:44 +0000 (13:51 -0700)
src/lib/dcgs.pl

index b8563151d65af096f901023983b2ec576c3e668a..550009bb85b6217f9e7874c6c3b6f9c9ff339dc9 100644 (file)
@@ -166,7 +166,7 @@ dcg_cbody({Goal}, S0, S, ( Goal, S0 = S )).
 dcg_cbody(call(Cont), S0, S, call(Cont, S0, S)).
 dcg_cbody(phrase(Body), S0, S, phrase(Body, S0, S)).
 dcg_cbody(!, S0, S, ( !, S0 = S )).
-dcg_cbody(\+ GRBody, S0, S, ( \+ phrase(GRBody,S0,_), S0 = S )).
+dcg_cbody(\+ GRBody, S0, S, ( \+ phrase(GRBody,S0,_), S0 = S )).
 dcg_cbody(( GRIf -> GRThen ), S0, S, ( If -> Then )) :-
     dcg_body(GRIf, S0, S1, If),
     dcg_body(GRThen, S1, S, Then).