Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <v8bccd$inkj$2@solani.org>
Deutsch   English   Français   Italiano  
<v8bccd$inkj$2@solani.org>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: Mild Shock <janburse@fastmail.fm>
Newsgroups: comp.lang.prolog
Subject: Re: DCG restrictions on the left-hand side [Novacore]
Date: Tue, 30 Jul 2024 20:45:33 +0200
Message-ID: <v8bccd$inkj$2@solani.org>
References: <v8bc1u$indc$1@solani.org> <v8bc91$inkj$1@solani.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 30 Jul 2024 18:45:33 -0000 (UTC)
Injection-Info: solani.org;
	logging-data="614035"; 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:xx16MTPE+vt4PGXdNf9NJM20DOM=
X-User-ID: eJwFwQEBACAIA7BKcjlqHEDfP4IbZ1j08mA4Rfnd+XC6FIYjzPacUK+6OltQ5biDpMxKD9bYFh6plRiPH3IPFhc=
In-Reply-To: <v8bc91$inkj$1@solani.org>
Bytes: 2023
Lines: 42


This was discussed here:

Definite Clause Grammars Harmonization Proposal
Last edit jschimpf? October 20, 2016, at 12:42 AM
https://eclipseclp.org/wiki/Prolog/DCG

Not sure why Scryer Prolog doesn't implement it.

Mild Shock schrieb:
> 
> In Novacore we are lucky, its a side effect of
> phrase translating the head and a multi-file check:
> 
> ?- [user].
> p;q --> r.
> Fehler: Kann Prädikat ;/2 nicht umdefinieren, nicht als Mehrdateien 
> markiert.
> 
> But might work out differently if a DCG is expanded
> and asserted. Ok, its actually not so bad:
> 
> ?- expand_term((p;q --> r), X), assertz(X).
> Fehler: Kann Prädikat ;/2 nicht aktualisieren.
>      user auf 1
> 
> 
> Mild Shock schrieb:
>> 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'
>