]> Repositorios git - scryer-prolog.git/commitdiff
MODIFIED: (->)/2 in DCGs is now only supported in the context of if-then-else.
authorMarkus Triska <[email protected]>
Sat, 20 Jan 2024 09:24:57 +0000 (10:24 +0100)
committerMarkus Triska <[email protected]>
Sun, 21 Jan 2024 09:28:19 +0000 (10:28 +0100)
That is, ( If -> Then ; Else ) is still supported, but ( If -> Then ) not.

src/lib/dcgs.pl

index 9f7dfacfbbb5460bd28b65828c7a63f7401d464b..0876bd5ac4e267fbb9d76c635fbde088c88d674f 100644 (file)
@@ -177,7 +177,7 @@ dcg_constr(phrase(_,_)). % extension of 7.14.9
 dcg_constr(phrase(_,_,_)). % extension of 7.14.9
 dcg_constr(!). % 7.14.10
 %% dcg_constr(\+ _). % 7.14.11 - not (existence implementation dep.)
-dcg_constr((_->_)). % 7.14.12 - if-then (existence implementation dep.)
+%% dcg_constr((_->_)). % 7.14.12 - if-then (existence implementation dep.)
 
 % The principal functor of the first argument indicates
 % the construct to be expanded.