]> Repositorios git - scryer-prolog.git/commitdiff
remove checks that are now no longer needed due to representation errors
authorMarkus Triska <[email protected]>
Sat, 20 Jan 2024 10:02:54 +0000 (11:02 +0100)
committerMarkus Triska <[email protected]>
Sun, 21 Jan 2024 09:28:19 +0000 (10:28 +0100)
src/lib/dcgs.pl

index 40f44a590622467b154b259c7f510f7609c6755e..0fa9109ce0ad8a305465f368697f2e237dac69f1 100644 (file)
@@ -154,8 +154,6 @@ dcg_body(GRBody, S0, S, Body) :-
 dcg_body(NonTerminal, S0, S, Goal1) :-
     nonvar(NonTerminal),
     \+ dcg_constr(NonTerminal),
-    NonTerminal \= ( _ -> _ ),
-    NonTerminal \= ( \+ _ ),
     loader:strip_module(NonTerminal, M, NonTerminal0),
     dcg_non_terminal(NonTerminal0, S0, S, Goal0),
     (  functor(NonTerminal, (:), 2) ->