Path: ...!npeer.as286.net!npeer-ng0.as286.net!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Mild Shock Newsgroups: comp.lang.prolog Subject: DCG restrictions on the left-hand side [Novacore] Date: Tue, 30 Jul 2024 20:39:58 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 30 Jul 2024 18:39:58 -0000 (UTC) Injection-Info: solani.org; logging-data="613804"; mail-complaints-to="abuse@news.solani.org" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Firefox/91.0 SeaMonkey/2.53.18.2 Cancel-Lock: sha1:o0B10B4oZM+KriFDDxXeOg5qxSk= X-User-ID: eJwNy8EBwCAIA8CVgEjEcUBk/xHa+5+DyrsXncvH581CUBWdhZKaY9VX0nJi78ZTk6Sg2Bp24XFaUeHnZf35A2ApFd8= Bytes: 1171 Lines: 12 Guess how many newer Prolog systems allow this here: ?- [user]. p;q --> r. true. On the other hand SWI-Prolog disallows it: ?- [user]. p;q --> r. ERROR: user://1:29: ERROR: No permission to define dcg_nonterminal `p;q'