Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

Always draw your curves, then plot your reading.


devel / comp.lang.prolog / Re: About the Operator '|' and the DCG Draft

SubjectAuthor
* About the Operator '|' and the DCG DraftMostowski Collapse
`* About the Operator '|' and the DCG DraftMostowski Collapse
 `* About the Operator '|' and the DCG DraftMostowski Collapse
  `* About the Operator '|' and the DCG DraftMostowski Collapse
   `* About the Operator '|' and the DCG DraftMostowski Collapse
    `* About the Operator '|' and the DCG DraftMostowski Collapse
     `* About the Operator '|' and the DCG DraftMostowski Collapse
      `* About the Operator '|' and the DCG DraftMostowski Collapse
       `* About the Operator '|' and the DCG DraftMostowski Collapse
        `- About the Operator '|' and the DCG DraftMostowski Collapse

1
Re: About the Operator '|' and the DCG Draft

<t4ja44$1lfep$1@solani.org>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=2188&group=comp.lang.prolog#2188

  copy link   Newsgroups: comp.lang.prolog
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: janburse@fastmail.fm (Mostowski Collapse)
Newsgroups: comp.lang.prolog
Subject: Re: About the Operator '|' and the DCG Draft
Date: Sat, 30 Apr 2022 14:29:58 +0200
Message-ID: <t4ja44$1lfep$1@solani.org>
References: <27a911c0-3a2f-4054-81e5-bad9d8320750n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 30 Apr 2022 12:29:56 -0000 (UTC)
Injection-Info: solani.org;
logging-data="1752537"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101
Firefox/68.0 SeaMonkey/2.53.11.1
Cancel-Lock: sha1:JvuXhXGj4fZpXV6lbSPjOLAOxYI=
In-Reply-To: <27a911c0-3a2f-4054-81e5-bad9d8320750n@googlegroups.com>
X-User-ID: eJwFwQkBwDAIA0BLpYHA5PAU/xJ2Z6CwXWlUW9ue0n2MW+TxCAxEak8ant9+34FVisRC2zdtijo7gFzzmz9ZKxWG
 by: Mostowski Collapse - Sat, 30 Apr 2022 12:29 UTC

This is an interesting pPEG example bug. Actually I wanted to hunt
parenthesis parsing bugs, so I was up to generating some test cases that
contain parenthesis. But this test case doesn’t contain any parenthesis,

but it seems a binary infix operator is parsed as an unary functor?

?- string_termList(":- x0 =:= :- x1 - x2 .", [Y]), write_canonical(Y), nl.
:-(:-(=:=(x0),-(x1,x2)))
Y = (:- (=:=(x0):-x1-x2)).

I am still using pPEG from 14.04.2022. How do I do a package update?

Re: About the Operator '|' and the DCG Draft

<t4ja5f$1lfep$2@solani.org>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=2189&group=comp.lang.prolog#2189

  copy link   Newsgroups: comp.lang.prolog
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: janburse@fastmail.fm (Mostowski Collapse)
Newsgroups: comp.lang.prolog
Subject: Re: About the Operator '|' and the DCG Draft
Date: Sat, 30 Apr 2022 14:30:41 +0200
Message-ID: <t4ja5f$1lfep$2@solani.org>
References: <27a911c0-3a2f-4054-81e5-bad9d8320750n@googlegroups.com>
<t4ja44$1lfep$1@solani.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 30 Apr 2022 12:30:39 -0000 (UTC)
Injection-Info: solani.org;
logging-data="1752537"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101
Firefox/68.0 SeaMonkey/2.53.11.1
Cancel-Lock: sha1:eJqY7/z0Utp/eLIGFkg818Q8pPw=
X-User-ID: eJwFwQkBACAIA8BK4hhPHUD6R/COMLF2NZpyuYlHjuvWpJ7029aTNU3EoClgHcYw1i9QlhK1i3wqfSEfT1QVGg==
In-Reply-To: <t4ja44$1lfep$1@solani.org>
 by: Mostowski Collapse - Sat, 30 Apr 2022 12:30 UTC

Concerning parenthesis I only found this bug, but its not
really parenthesis related. So unlike Trealla it could be
that parenthesis are not a problem. This here gives the same

associativity hickup with and without parenthesis:

?- string_termList("- ( x0 * x1 ) ** x2 =:= x3 .", [Y]),
write_canonical(Y), nl.
-(=:=(**(*(x0,x1),x2),x3))
Y = - ((x0*x1)**x2=:=x3).

?- string_termList("- x4 ** x2 =:= x3 .", [Y]), write_canonical(Y), nl.
-(=:=(**(x4,x2),x3))
Y = - (x4**x2=:=x3).

?- Y = (- x4 ** x2 =:= x3), write_canonical(Y), nl.
=:=(-(**(x4,x2)),x3)
Y = (-x4**x2=:=x3).

Mostowski Collapse schrieb:
> This is an interesting pPEG example bug. Actually I wanted to hunt
> parenthesis parsing bugs, so I was up to generating some test cases that
> contain parenthesis. But this test case doesn’t contain any parenthesis,
>
> but it seems a binary infix operator is parsed as an unary functor?
>
> ?- string_termList(":- x0 =:= :- x1 - x2 .", [Y]), write_canonical(Y), nl.
> :-(:-(=:=(x0),-(x1,x2)))
> Y =  (:- (=:=(x0):-x1-x2)).
>
> I am still using pPEG from 14.04.2022. How do I do a package update?

Re: About the Operator '|' and the DCG Draft

<1c51a813-2e82-4168-8167-3625cd5f48e7n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=2283&group=comp.lang.prolog#2283

  copy link   Newsgroups: comp.lang.prolog
X-Received: by 2002:a05:6214:1767:b0:456:f39:4cbb with SMTP id et7-20020a056214176700b004560f394cbbmr9690052qvb.37.1651502935574;
Mon, 02 May 2022 07:48:55 -0700 (PDT)
X-Received: by 2002:a25:6e41:0:b0:637:9227:dc4b with SMTP id
j62-20020a256e41000000b006379227dc4bmr10370831ybc.20.1651502935406; Mon, 02
May 2022 07:48:55 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.prolog
Date: Mon, 2 May 2022 07:48:55 -0700 (PDT)
In-Reply-To: <t4ja5f$1lfep$2@solani.org>
Injection-Info: google-groups.googlegroups.com; posting-host=77.57.53.70; posting-account=UjEXBwoAAAAOk5fiB8WdHvZddFg9nJ9r
NNTP-Posting-Host: 77.57.53.70
References: <27a911c0-3a2f-4054-81e5-bad9d8320750n@googlegroups.com>
<t4ja44$1lfep$1@solani.org> <t4ja5f$1lfep$2@solani.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1c51a813-2e82-4168-8167-3625cd5f48e7n@googlegroups.com>
Subject: Re: About the Operator '|' and the DCG Draft
From: bursejan@gmail.com (Mostowski Collapse)
Injection-Date: Mon, 02 May 2022 14:48:55 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 14
 by: Mostowski Collapse - Mon, 2 May 2022 14:48 UTC

I didn’t start a new testing campaign with pPEG yet, where I get
a new type of error, which I do not yet know how to silence.
But meanwhile I have a funny test case where

SWI-Prolog and SICStus disagree:

/* SWI-Prolog */
?- X = (- - - * - - - x0), write_canonical(X), nl.
*(-(-(-)),-(-(-(x0))))
X = - - (-)* - - -x0.

/* SICStus Prolog */
?- X = (- - - * - - - x0), write_canonical(X), nl.
-(-(-(-(*))),-(-(x0)))
X = - - - (*)- - -x0 ?

Re: About the Operator '|' and the DCG Draft

<3e820935-29bc-4b7b-892d-12a2fe95e8c3n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=2284&group=comp.lang.prolog#2284

  copy link   Newsgroups: comp.lang.prolog
X-Received: by 2002:a37:2f04:0:b0:663:397d:7051 with SMTP id v4-20020a372f04000000b00663397d7051mr8821795qkh.333.1651502991217;
Mon, 02 May 2022 07:49:51 -0700 (PDT)
X-Received: by 2002:a5b:ca:0:b0:641:6505:cb5d with SMTP id d10-20020a5b00ca000000b006416505cb5dmr10653171ybp.459.1651502991066;
Mon, 02 May 2022 07:49:51 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.prolog
Date: Mon, 2 May 2022 07:49:50 -0700 (PDT)
In-Reply-To: <1c51a813-2e82-4168-8167-3625cd5f48e7n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=77.57.53.70; posting-account=UjEXBwoAAAAOk5fiB8WdHvZddFg9nJ9r
NNTP-Posting-Host: 77.57.53.70
References: <27a911c0-3a2f-4054-81e5-bad9d8320750n@googlegroups.com>
<t4ja44$1lfep$1@solani.org> <t4ja5f$1lfep$2@solani.org> <1c51a813-2e82-4168-8167-3625cd5f48e7n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3e820935-29bc-4b7b-892d-12a2fe95e8c3n@googlegroups.com>
Subject: Re: About the Operator '|' and the DCG Draft
From: bursejan@gmail.com (Mostowski Collapse)
Injection-Date: Mon, 02 May 2022 14:49:51 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 29
 by: Mostowski Collapse - Mon, 2 May 2022 14:49 UTC

The SWI-Prolog built-in with_output_to/2 does also not work.
Would need something like a with_error_to/2 ?
Does this exist? I only get:

?- with_output_to(atom(_), (write('I am chatty'), nl)).
true.

?- with_output_to(atom(_), string_termList("- x4 ** x2 =:= .", [Y])).
% pPEG Error: Prolog.expr failed, expected Prolog.expr at line 1.16:
% 1 | - x4 ** x2 =:= .
% ^
false.

Mostowski Collapse schrieb am Montag, 2. Mai 2022 um 16:48:56 UTC+2:
> I didn’t start a new testing campaign with pPEG yet, where I get
> a new type of error, which I do not yet know how to silence.
> But meanwhile I have a funny test case where
>
> SWI-Prolog and SICStus disagree:
>
> /* SWI-Prolog */
> ?- X = (- - - * - - - x0), write_canonical(X), nl.
> *(-(-(-)),-(-(-(x0))))
> X = - - (-)* - - -x0.
>
> /* SICStus Prolog */
> ?- X = (- - - * - - - x0), write_canonical(X), nl.
> -(-(-(-(*))),-(-(x0)))
> X = - - - (*)- - -x0 ?

Re: About the Operator '|' and the DCG Draft

<000d0db4-092b-4af9-98a9-9a2620e20b15n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=2402&group=comp.lang.prolog#2402

  copy link   Newsgroups: comp.lang.prolog
X-Received: by 2002:a05:620a:4403:b0:6a0:5093:1742 with SMTP id v3-20020a05620a440300b006a050931742mr17722515qkp.691.1652823290972;
Tue, 17 May 2022 14:34:50 -0700 (PDT)
X-Received: by 2002:a25:142:0:b0:64d:8323:ee52 with SMTP id
63-20020a250142000000b0064d8323ee52mr14398715ybb.97.1652823290683; Tue, 17
May 2022 14:34:50 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.prolog
Date: Tue, 17 May 2022 14:34:50 -0700 (PDT)
In-Reply-To: <3e820935-29bc-4b7b-892d-12a2fe95e8c3n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=77.57.53.70; posting-account=UjEXBwoAAAAOk5fiB8WdHvZddFg9nJ9r
NNTP-Posting-Host: 77.57.53.70
References: <27a911c0-3a2f-4054-81e5-bad9d8320750n@googlegroups.com>
<t4ja44$1lfep$1@solani.org> <t4ja5f$1lfep$2@solani.org> <1c51a813-2e82-4168-8167-3625cd5f48e7n@googlegroups.com>
<3e820935-29bc-4b7b-892d-12a2fe95e8c3n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <000d0db4-092b-4af9-98a9-9a2620e20b15n@googlegroups.com>
Subject: Re: About the Operator '|' and the DCG Draft
From: bursejan@gmail.com (Mostowski Collapse)
Injection-Date: Tue, 17 May 2022 21:34:50 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Mostowski Collapse - Tue, 17 May 2022 21:34 UTC

My parser research has arrived at this eclectic challenge.
Here is an example where I can coerce both SWI-Prolog and
pPEG SWIPL Example into masking the real error.

Here is what ECLiPSe Prolog does:

[eclipse 1]: X = foo = bar = baz = 'ab\qc' .
syntax error: bracket necessary
| X = foo = bar = baz = 'ab\qc' .
| ^ here

And here is SWI-Prolog and pPEG SWIPL Example:

?- X = foo = bar = baz = 'ab\qc' .
ERROR: Syntax error: Unknown character escape in quoted atom or string: `\q'
ERROR: X = foo = bar = baz = 'ab
ERROR: ** here **
ERROR: \qc' .

?- string_termList("X = foo = bar = baz = 'ab\\qc' .", [T]).
% pPEG Error: _esc failed, ...
% 1 | X = foo = bar = baz = 'ab\qc' .
% ^
false.

Re: About the Operator '|' and the DCG Draft

<4dd44fd0-f419-44ea-9e9a-a1271986ef0en@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=2403&group=comp.lang.prolog#2403

  copy link   Newsgroups: comp.lang.prolog
X-Received: by 2002:a05:622a:44b:b0:2f3:f495:386b with SMTP id o11-20020a05622a044b00b002f3f495386bmr21741038qtx.349.1652823431161;
Tue, 17 May 2022 14:37:11 -0700 (PDT)
X-Received: by 2002:a81:2006:0:b0:2f8:1e04:5e56 with SMTP id
g6-20020a812006000000b002f81e045e56mr28724323ywg.39.1652823430908; Tue, 17
May 2022 14:37:10 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.prolog
Date: Tue, 17 May 2022 14:37:10 -0700 (PDT)
In-Reply-To: <000d0db4-092b-4af9-98a9-9a2620e20b15n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=77.57.53.70; posting-account=UjEXBwoAAAAOk5fiB8WdHvZddFg9nJ9r
NNTP-Posting-Host: 77.57.53.70
References: <27a911c0-3a2f-4054-81e5-bad9d8320750n@googlegroups.com>
<t4ja44$1lfep$1@solani.org> <t4ja5f$1lfep$2@solani.org> <1c51a813-2e82-4168-8167-3625cd5f48e7n@googlegroups.com>
<3e820935-29bc-4b7b-892d-12a2fe95e8c3n@googlegroups.com> <000d0db4-092b-4af9-98a9-9a2620e20b15n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4dd44fd0-f419-44ea-9e9a-a1271986ef0en@googlegroups.com>
Subject: Re: About the Operator '|' and the DCG Draft
From: bursejan@gmail.com (Mostowski Collapse)
Injection-Date: Tue, 17 May 2022 21:37:11 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2712
 by: Mostowski Collapse - Tue, 17 May 2022 21:37 UTC

It seems Scryer Prolog is not that advanced like ECLiPSe Prolog:

$ target/release/scryer-prolog
?- X = foo = bar = baz = 'ab\qc' .
error(syntax_error(invalid_single_quoted_character),read_term/3).

Initially my thought was my monadic parser from Dogelog player
will automatically be able to deal with this. But its non-trivial.
But my Dogelog player got a scanner/parser booster yesterday:

?- X = foo = bar = baz = 'ab\qc' .
error(syntax_error(operator_clash), [user:1])
Mostowski Collapse schrieb am Dienstag, 17. Mai 2022 um 23:34:51 UTC+2:
> My parser research has arrived at this eclectic challenge.
> Here is an example where I can coerce both SWI-Prolog and
> pPEG SWIPL Example into masking the real error.
>
> Here is what ECLiPSe Prolog does:
>
> [eclipse 1]: X = foo = bar = baz = 'ab\qc' .
> syntax error: bracket necessary
> | X = foo = bar = baz = 'ab\qc' .
> | ^ here
>
> And here is SWI-Prolog and pPEG SWIPL Example:
>
> ?- X = foo = bar = baz = 'ab\qc' .
> ERROR: Syntax error: Unknown character escape in quoted atom or string: `\q'
> ERROR: X = foo = bar = baz = 'ab
> ERROR: ** here **
> ERROR: \qc' .
>
> ?- string_termList("X = foo = bar = baz = 'ab\\qc' .", [T]).
> % pPEG Error: _esc failed, ...
> % 1 | X = foo = bar = baz = 'ab\qc' .
> % ^
> false.

Re: About the Operator '|' and the DCG Draft

<fa9de40b-cc50-4410-9e04-8526f518f12en@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=2405&group=comp.lang.prolog#2405

  copy link   Newsgroups: comp.lang.prolog
X-Received: by 2002:ac8:7f43:0:b0:2f3:d55d:7296 with SMTP id g3-20020ac87f43000000b002f3d55d7296mr23292601qtk.635.1652870316407;
Wed, 18 May 2022 03:38:36 -0700 (PDT)
X-Received: by 2002:a25:5457:0:b0:64d:d919:53c2 with SMTP id
i84-20020a255457000000b0064dd91953c2mr11116998ybb.358.1652870316208; Wed, 18
May 2022 03:38:36 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.prolog
Date: Wed, 18 May 2022 03:38:35 -0700 (PDT)
In-Reply-To: <4dd44fd0-f419-44ea-9e9a-a1271986ef0en@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=77.57.53.70; posting-account=UjEXBwoAAAAOk5fiB8WdHvZddFg9nJ9r
NNTP-Posting-Host: 77.57.53.70
References: <27a911c0-3a2f-4054-81e5-bad9d8320750n@googlegroups.com>
<t4ja44$1lfep$1@solani.org> <t4ja5f$1lfep$2@solani.org> <1c51a813-2e82-4168-8167-3625cd5f48e7n@googlegroups.com>
<3e820935-29bc-4b7b-892d-12a2fe95e8c3n@googlegroups.com> <000d0db4-092b-4af9-98a9-9a2620e20b15n@googlegroups.com>
<4dd44fd0-f419-44ea-9e9a-a1271986ef0en@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <fa9de40b-cc50-4410-9e04-8526f518f12en@googlegroups.com>
Subject: Re: About the Operator '|' and the DCG Draft
From: bursejan@gmail.com (Mostowski Collapse)
Injection-Date: Wed, 18 May 2022 10:38:36 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Mostowski Collapse - Wed, 18 May 2022 10:38 UTC

Now I have a new project going. I need a better microscope
to find differences in parsing of the different Prolog systems.
So that I might generate a phylogenic tree.

I see a trend against ECliPSe Prolog concering fuzz3, now also
results available for Scryer Prolog and Trealla Prolog. Unfortunately
no data yet available for Tau Prolog, still waiting

for charsio from Tau Prolog:

ECLiPSe Scryer Trealla
fuzz3 292 0 0
fuzz4 382 801 532

My suspicion, for fuzz4, Scryer Prolog behaves like GNU Prolog,
not shown here, but GNU Prolog has same figures. But this would
need a distance matrice, to get some support for this hypothesis,

that they are really the same.

Mostowski Collapse schrieb am Dienstag, 17. Mai 2022 um 23:37:12 UTC+2:
> It seems Scryer Prolog is not that advanced like ECLiPSe Prolog:
>
> $ target/release/scryer-prolog
> ?- X = foo = bar = baz = 'ab\qc' .
> error(syntax_error(invalid_single_quoted_character),read_term/3).
>
> Initially my thought was my monadic parser from Dogelog player
> will automatically be able to deal with this. But its non-trivial.
> But my Dogelog player got a scanner/parser booster yesterday:
> ?- X = foo = bar = baz = 'ab\qc' .
> error(syntax_error(operator_clash), [user:1])
> Mostowski Collapse schrieb am Dienstag, 17. Mai 2022 um 23:34:51 UTC+2:
> > My parser research has arrived at this eclectic challenge.
> > Here is an example where I can coerce both SWI-Prolog and
> > pPEG SWIPL Example into masking the real error.
> >
> > Here is what ECLiPSe Prolog does:
> >
> > [eclipse 1]: X = foo = bar = baz = 'ab\qc' .
> > syntax error: bracket necessary
> > | X = foo = bar = baz = 'ab\qc' .
> > | ^ here
> >
> > And here is SWI-Prolog and pPEG SWIPL Example:
> >
> > ?- X = foo = bar = baz = 'ab\qc' .
> > ERROR: Syntax error: Unknown character escape in quoted atom or string: `\q'
> > ERROR: X = foo = bar = baz = 'ab
> > ERROR: ** here **
> > ERROR: \qc' .
> >
> > ?- string_termList("X = foo = bar = baz = 'ab\\qc' .", [T]).
> > % pPEG Error: _esc failed, ...
> > % 1 | X = foo = bar = baz = 'ab\qc' .
> > % ^
> > false.

Re: About the Operator '|' and the DCG Draft

<a4700f38-c949-4d22-a2b4-e501b48ccf63n@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=2409&group=comp.lang.prolog#2409

  copy link   Newsgroups: comp.lang.prolog
X-Received: by 2002:ac8:5b50:0:b0:2f3:ae99:8e0 with SMTP id n16-20020ac85b50000000b002f3ae9908e0mr10663987qtw.669.1653139149432;
Sat, 21 May 2022 06:19:09 -0700 (PDT)
X-Received: by 2002:a5b:491:0:b0:64a:f42f:6973 with SMTP id
n17-20020a5b0491000000b0064af42f6973mr13338125ybp.20.1653139149259; Sat, 21
May 2022 06:19:09 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.prolog
Date: Sat, 21 May 2022 06:19:09 -0700 (PDT)
In-Reply-To: <fa9de40b-cc50-4410-9e04-8526f518f12en@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=77.57.53.70; posting-account=UjEXBwoAAAAOk5fiB8WdHvZddFg9nJ9r
NNTP-Posting-Host: 77.57.53.70
References: <27a911c0-3a2f-4054-81e5-bad9d8320750n@googlegroups.com>
<t4ja44$1lfep$1@solani.org> <t4ja5f$1lfep$2@solani.org> <1c51a813-2e82-4168-8167-3625cd5f48e7n@googlegroups.com>
<3e820935-29bc-4b7b-892d-12a2fe95e8c3n@googlegroups.com> <000d0db4-092b-4af9-98a9-9a2620e20b15n@googlegroups.com>
<4dd44fd0-f419-44ea-9e9a-a1271986ef0en@googlegroups.com> <fa9de40b-cc50-4410-9e04-8526f518f12en@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a4700f38-c949-4d22-a2b4-e501b48ccf63n@googlegroups.com>
Subject: Re: About the Operator '|' and the DCG Draft
From: bursejan@gmail.com (Mostowski Collapse)
Injection-Date: Sat, 21 May 2022 13:19:09 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2171
 by: Mostowski Collapse - Sat, 21 May 2022 13:19 UTC

I made a kind of phylogenetic tree, the numbers in it indicate
how many test cases the various Prolog systems agree.
The results for fuzz4 are as follows:

?- pairing([eclipse4,gnu4,jekejeke4,swi4,scryer4,sicstus4,
ppeg4,trealla4], R), show(R, 0).
+--- 8713
+--- 9509
+--- trealla4
+--- 9997
+--- scryer4
+--- gnu4
+--- 9288
+--- 9586
+--- 9860
+--- eclipse4
+--- swi4
+--- jekejeke4
+--- 9642
+--- ppeg4
+--- sicstus4

SWI-Prolog is close to ECLiPSe Prolog in fuzz4 test cases. But pPEG
SWIPL Example is close to SICStus Prolog in fuzz4 test cases.

Re: About the Operator '|' and the DCG Draft

<t6ap1a$t984$1@solani.org>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=2410&group=comp.lang.prolog#2410

  copy link   Newsgroups: comp.lang.prolog
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: janburse@fastmail.fm (Mostowski Collapse)
Newsgroups: comp.lang.prolog
Subject: Re: About the Operator '|' and the DCG Draft
Date: Sat, 21 May 2022 15:21:46 +0200
Message-ID: <t6ap1a$t984$1@solani.org>
References: <27a911c0-3a2f-4054-81e5-bad9d8320750n@googlegroups.com>
<t4ja44$1lfep$1@solani.org> <t4ja5f$1lfep$2@solani.org>
<1c51a813-2e82-4168-8167-3625cd5f48e7n@googlegroups.com>
<3e820935-29bc-4b7b-892d-12a2fe95e8c3n@googlegroups.com>
<000d0db4-092b-4af9-98a9-9a2620e20b15n@googlegroups.com>
<4dd44fd0-f419-44ea-9e9a-a1271986ef0en@googlegroups.com>
<fa9de40b-cc50-4410-9e04-8526f518f12en@googlegroups.com>
<a4700f38-c949-4d22-a2b4-e501b48ccf63n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 21 May 2022 13:21:46 -0000 (UTC)
Injection-Info: solani.org;
logging-data="959748"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101
Firefox/68.0 SeaMonkey/2.53.12
Cancel-Lock: sha1:z/25x/D0HWlO5JvrCVexRb5NSUQ=
X-User-ID: eJwNy8EBwEAEBMCWJCx35bDov4Rk/gP1xxnmcMNilXG7z7ylPpt70zdcaSEj0q8NtFGFI2MZYv8rHsGSHOYHaIwWUQ==
In-Reply-To: <a4700f38-c949-4d22-a2b4-e501b48ccf63n@googlegroups.com>
 by: Mostowski Collapse - Sat, 21 May 2022 13:21 UTC

And my suspicion got confirmed, Scryer and GNU
do the same in fuzz4 test cases, except for a

few amusing strange results:

$ target/release/scryer-prolog -v
"v0.9.0-146-g25418db2-modified"
$ target/release/scryer-prolog
?- X = (- ( ( ) =:= x0).
X = (- '('=:=x0).
?- X = (- ( ( ) , x0).
X = (- '(',x0).
?- X = ( ( ( ) :- x0).
X = ('(':-x0).

LoL

Mostowski Collapse schrieb:
> I made a kind of phylogenetic tree, the numbers in it indicate
> how many test cases the various Prolog systems agree.
> The results for fuzz4 are as follows:
>
> ?- pairing([eclipse4,gnu4,jekejeke4,swi4,scryer4,sicstus4,
> ppeg4,trealla4], R), show(R, 0).
> +--- 8713
> +--- 9509
> +--- trealla4
> +--- 9997
> +--- scryer4
> +--- gnu4
> +--- 9288
> +--- 9586
> +--- 9860
> +--- eclipse4
> +--- swi4
> +--- jekejeke4
> +--- 9642
> +--- ppeg4
> +--- sicstus4
>
> SWI-Prolog is close to ECLiPSe Prolog in fuzz4 test cases. But pPEG
> SWIPL Example is close to SICStus Prolog in fuzz4 test cases.
>

Re: About the Operator '|' and the DCG Draft

<bb1af5ef-8a24-4be1-9aee-cb92a87e0b8cn@googlegroups.com>

  copy mid

https://news.novabbs.org/devel/article-flat.php?id=2411&group=comp.lang.prolog#2411

  copy link   Newsgroups: comp.lang.prolog
X-Received: by 2002:a05:6214:1cc4:b0:435:b8a0:1fe9 with SMTP id g4-20020a0562141cc400b00435b8a01fe9mr12867926qvd.54.1653170628857;
Sat, 21 May 2022 15:03:48 -0700 (PDT)
X-Received: by 2002:a5b:491:0:b0:64a:f42f:6973 with SMTP id
n17-20020a5b0491000000b0064af42f6973mr14887938ybp.20.1653170628672; Sat, 21
May 2022 15:03:48 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.prolog
Date: Sat, 21 May 2022 15:03:48 -0700 (PDT)
In-Reply-To: <t6ap1a$t984$1@solani.org>
Injection-Info: google-groups.googlegroups.com; posting-host=77.57.53.70; posting-account=UjEXBwoAAAAOk5fiB8WdHvZddFg9nJ9r
NNTP-Posting-Host: 77.57.53.70
References: <27a911c0-3a2f-4054-81e5-bad9d8320750n@googlegroups.com>
<t4ja44$1lfep$1@solani.org> <t4ja5f$1lfep$2@solani.org> <1c51a813-2e82-4168-8167-3625cd5f48e7n@googlegroups.com>
<3e820935-29bc-4b7b-892d-12a2fe95e8c3n@googlegroups.com> <000d0db4-092b-4af9-98a9-9a2620e20b15n@googlegroups.com>
<4dd44fd0-f419-44ea-9e9a-a1271986ef0en@googlegroups.com> <fa9de40b-cc50-4410-9e04-8526f518f12en@googlegroups.com>
<a4700f38-c949-4d22-a2b4-e501b48ccf63n@googlegroups.com> <t6ap1a$t984$1@solani.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <bb1af5ef-8a24-4be1-9aee-cb92a87e0b8cn@googlegroups.com>
Subject: Re: About the Operator '|' and the DCG Draft
From: bursejan@gmail.com (Mostowski Collapse)
Injection-Date: Sat, 21 May 2022 22:03:48 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Mostowski Collapse - Sat, 21 May 2022 22:03 UTC

Ok, this was fun:

Phylogenetic Trees for Prolog Operator Parsers
https://twitter.com/dogelogch/status/1528118780890603522

Phylogenetic Trees for Prolog Operator Parsers
https://www.facebook.com/groups/dogelog

Mostowski Collapse schrieb am Samstag, 21. Mai 2022 um 15:21:49 UTC+2:
> And my suspicion got confirmed, Scryer and GNU
> do the same in fuzz4 test cases, except for a
>
> few amusing strange results:
>
> $ target/release/scryer-prolog -v
> "v0.9.0-146-g25418db2-modified"
> $ target/release/scryer-prolog
> ?- X = (- ( ( ) =:= x0).
> X = (- '('=:=x0).
> ?- X = (- ( ( ) , x0).
> X = (- '(',x0).
> ?- X = ( ( ( ) :- x0).
> X = ('(':-x0).
>
> LoL
>
> Mostowski Collapse schrieb:
> > I made a kind of phylogenetic tree, the numbers in it indicate
> > how many test cases the various Prolog systems agree.
> > The results for fuzz4 are as follows:
> >
> > ?- pairing([eclipse4,gnu4,jekejeke4,swi4,scryer4,sicstus4,
> > ppeg4,trealla4], R), show(R, 0).
> > +--- 8713
> > +--- 9509
> > +--- trealla4
> > +--- 9997
> > +--- scryer4
> > +--- gnu4
> > +--- 9288
> > +--- 9586
> > +--- 9860
> > +--- eclipse4
> > +--- swi4
> > +--- jekejeke4
> > +--- 9642
> > +--- ppeg4
> > +--- sicstus4
> >
> > SWI-Prolog is close to ECLiPSe Prolog in fuzz4 test cases. But pPEG
> > SWIPL Example is close to SICStus Prolog in fuzz4 test cases.
> >

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor