Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

"Experience has proved that some people indeed know everything." -- Russell Baker


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

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

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

<d8d94dc3-6266-426f-8c5d-01e4de3a21d3n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1277&group=comp.lang.prolog#1277

  copy link   Newsgroups: comp.lang.prolog
X-Received: by 2002:a0c:f8ca:0:b0:444:41e8:89b1 with SMTP id h10-20020a0cf8ca000000b0044441e889b1mr9451189qvo.22.1650317240188;
Mon, 18 Apr 2022 14:27:20 -0700 (PDT)
X-Received: by 2002:a25:7653:0:b0:641:d2fd:ae79 with SMTP id
r80-20020a257653000000b00641d2fdae79mr11989175ybc.453.1650317239914; Mon, 18
Apr 2022 14:27:19 -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, 18 Apr 2022 14:27:19 -0700 (PDT)
In-Reply-To: <ece8ebd1-4068-4f7d-8b86-48b4bd6ce56dn@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>
<163a9271-9d06-4fbc-8d3c-1903bd8733bdn@googlegroups.com> <c07fe58b-ca4d-44d1-a716-1790a2033be0n@googlegroups.com>
<82d76042-37a3-44ab-addc-3784060038ccn@googlegroups.com> <9f1d1d60-7c54-4c2d-a655-04b651565d0bn@googlegroups.com>
<0d15e64d-f537-4313-b637-cdd0f66a1761n@googlegroups.com> <52b84705-714c-4248-b85b-a643413b7ff3n@googlegroups.com>
<0152c446-3e8e-4e4f-807c-51e913f95708n@googlegroups.com> <c7ee2838-d75c-4807-982a-fd3567d82374n@googlegroups.com>
<a0dd0b5f-b459-48d3-842b-675f9712c902n@googlegroups.com> <7950d178-a688-4122-ab3a-c5105359632cn@googlegroups.com>
<d8530517-401e-46ec-84f3-7f09c8dd70f5n@googlegroups.com> <870d9bb1-4c0f-41a2-8430-99abd733eed1n@googlegroups.com>
<8f5f92be-4fbe-4093-8ee9-a4796618e0can@googlegroups.com> <adcb7512-f998-4843-bab4-f1b2c7342b40n@googlegroups.com>
<ed1a10f3-0abf-4ca9-8dce-fe2fe99a58c4n@googlegroups.com> <13feb23a-5af2-403a-ae04-de846eef0135n@googlegroups.com>
<t30qfn$o195$1@solani.org> <5bb791dd-1870-4d3e-ab5f-144960a0f16en@googlegroups.com>
<87694357-6814-462c-985e-b4dac5464de0n@googlegroups.com> <8b9def0e-c75b-49e2-9604-578e96616518n@googlegroups.com>
<0c65ee8a-05e5-48c1-a15f-7357f8f4a3can@googlegroups.com> <1d23bf74-8e21-40dd-964b-394714380030n@googlegroups.com>
<70ec78de-68d5-4f2f-b02f-27e217354547n@googlegroups.com> <ecf60f58-e711-41a1-8d69-cff4cbe8abacn@googlegroups.com>
<1ce7789e-d26d-4fb0-bbac-b4eb036838c9n@googlegroups.com> <87653350-350a-4527-9848-ac609c1a64abn@googlegroups.com>
<01c67652-6887-42e5-a533-f72722d92870n@googlegroups.com> <a2bcd077-a0e6-49e6-ad96-81494fed07cbn@googlegroups.com>
<9e3e77c4-04a3-4552-9f51-6600eb648720n@googlegroups.com> <daa565e1-5cf8-4c2d-bb5c-6eeb7290b92an@googlegroups.com>
<0844414b-5c96-4d23-bc26-48b579b41714n@googlegroups.com> <21a52b1d-464a-48c3-b1f8-21bb1d4de772n@googlegroups.com>
<f4d33919-35bb-44c3-bd1c-5786541c3671n@googlegroups.com> <bf591281-ea4d-4d63-ab24-18fe60160eean@googlegroups.com>
<ff4cc00d-8ac4-4c20-ba57-288cdd7eb831n@googlegroups.com> <ece8ebd1-4068-4f7d-8b86-48b4bd6ce56dn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d8d94dc3-6266-426f-8c5d-01e4de3a21d3n@googlegroups.com>
Subject: Re: About the Operator '|' and the DCG Draft
From: bursejan@gmail.com (Mostowski Collapse)
Injection-Date: Mon, 18 Apr 2022 21:27:20 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 22
 by: Mostowski Collapse - Mon, 18 Apr 2022 21:27 UTC

Holy Cow, ECLiPSe Prolog is somewhere between SWI-Prolog
and SICStus Prolog, concerning tolerating extra syntax.

SICStus Prolog, quite tolerant:

?- X = (- :- x0).
X = ((-):-x0) ?
?- X = (:- :- x0).
X = ((:-):-x0) ?

ECLIPSe Prolog, half way tolerant:

[eclipse 36]: X = (- :- x0).
X = ((-) :- x0)
[eclipse 37]: X = (:- :- x0).
syntax error: postfix/infix operator expected

SWI-Prolog, intolerant, good!!!

?- X = (- :- x0).
ERROR: Syntax error: Operator priority clash
?- X = (:- :- x0).
ERROR: Syntax error: Operator priority clash

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

<3e62b88d-b551-4a01-a938-987d33dd3950n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1278&group=comp.lang.prolog#1278

  copy link   Newsgroups: comp.lang.prolog
X-Received: by 2002:ac8:4e46:0:b0:2e1:b933:ec06 with SMTP id e6-20020ac84e46000000b002e1b933ec06mr8502962qtw.684.1650317599568;
Mon, 18 Apr 2022 14:33:19 -0700 (PDT)
X-Received: by 2002:a81:78d:0:b0:2e5:d440:d921 with SMTP id
135-20020a81078d000000b002e5d440d921mr11836893ywh.251.1650317599441; Mon, 18
Apr 2022 14:33:19 -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, 18 Apr 2022 14:33:19 -0700 (PDT)
In-Reply-To: <d8d94dc3-6266-426f-8c5d-01e4de3a21d3n@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>
<163a9271-9d06-4fbc-8d3c-1903bd8733bdn@googlegroups.com> <c07fe58b-ca4d-44d1-a716-1790a2033be0n@googlegroups.com>
<82d76042-37a3-44ab-addc-3784060038ccn@googlegroups.com> <9f1d1d60-7c54-4c2d-a655-04b651565d0bn@googlegroups.com>
<0d15e64d-f537-4313-b637-cdd0f66a1761n@googlegroups.com> <52b84705-714c-4248-b85b-a643413b7ff3n@googlegroups.com>
<0152c446-3e8e-4e4f-807c-51e913f95708n@googlegroups.com> <c7ee2838-d75c-4807-982a-fd3567d82374n@googlegroups.com>
<a0dd0b5f-b459-48d3-842b-675f9712c902n@googlegroups.com> <7950d178-a688-4122-ab3a-c5105359632cn@googlegroups.com>
<d8530517-401e-46ec-84f3-7f09c8dd70f5n@googlegroups.com> <870d9bb1-4c0f-41a2-8430-99abd733eed1n@googlegroups.com>
<8f5f92be-4fbe-4093-8ee9-a4796618e0can@googlegroups.com> <adcb7512-f998-4843-bab4-f1b2c7342b40n@googlegroups.com>
<ed1a10f3-0abf-4ca9-8dce-fe2fe99a58c4n@googlegroups.com> <13feb23a-5af2-403a-ae04-de846eef0135n@googlegroups.com>
<t30qfn$o195$1@solani.org> <5bb791dd-1870-4d3e-ab5f-144960a0f16en@googlegroups.com>
<87694357-6814-462c-985e-b4dac5464de0n@googlegroups.com> <8b9def0e-c75b-49e2-9604-578e96616518n@googlegroups.com>
<0c65ee8a-05e5-48c1-a15f-7357f8f4a3can@googlegroups.com> <1d23bf74-8e21-40dd-964b-394714380030n@googlegroups.com>
<70ec78de-68d5-4f2f-b02f-27e217354547n@googlegroups.com> <ecf60f58-e711-41a1-8d69-cff4cbe8abacn@googlegroups.com>
<1ce7789e-d26d-4fb0-bbac-b4eb036838c9n@googlegroups.com> <87653350-350a-4527-9848-ac609c1a64abn@googlegroups.com>
<01c67652-6887-42e5-a533-f72722d92870n@googlegroups.com> <a2bcd077-a0e6-49e6-ad96-81494fed07cbn@googlegroups.com>
<9e3e77c4-04a3-4552-9f51-6600eb648720n@googlegroups.com> <daa565e1-5cf8-4c2d-bb5c-6eeb7290b92an@googlegroups.com>
<0844414b-5c96-4d23-bc26-48b579b41714n@googlegroups.com> <21a52b1d-464a-48c3-b1f8-21bb1d4de772n@googlegroups.com>
<f4d33919-35bb-44c3-bd1c-5786541c3671n@googlegroups.com> <bf591281-ea4d-4d63-ab24-18fe60160eean@googlegroups.com>
<ff4cc00d-8ac4-4c20-ba57-288cdd7eb831n@googlegroups.com> <ece8ebd1-4068-4f7d-8b86-48b4bd6ce56dn@googlegroups.com>
<d8d94dc3-6266-426f-8c5d-01e4de3a21d3n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3e62b88d-b551-4a01-a938-987d33dd3950n@googlegroups.com>
Subject: Re: About the Operator '|' and the DCG Draft
From: bursejan@gmail.com (Mostowski Collapse)
Injection-Date: Mon, 18 Apr 2022 21:33:19 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 41
 by: Mostowski Collapse - Mon, 18 Apr 2022 21:33 UTC

My reader prototype sides with SWI-Prolog. Also
Dogelog Player and formerly Jekejeke Prolog side
with SWI-Prolog. Dogelog Player can be tried online:

?- X = (- :- x0).
error(syntax_error(operator_clash), [user:0])
error(syntax_error(cannot_start_term), [user:1])
?- X = (:- :- x0).
error(syntax_error(operator_clash), [user:1])
error(syntax_error(cannot_start_term), [user:2])
http://www.xlog.ch/izytab/moblet/docs/18_live/10_reference/example01/package.html

Unfortunately resyncing after an error is not yet
implemented, so there are two errors. But we got
already line numbers for Dogelog Player,

this is quite a gas!!!

Mostowski Collapse schrieb am Montag, 18. April 2022 um 23:27:20 UTC+2:
> Holy Cow, ECLiPSe Prolog is somewhere between SWI-Prolog
> and SICStus Prolog, concerning tolerating extra syntax.
>
> SICStus Prolog, quite tolerant:
>
> ?- X = (- :- x0).
> X = ((-):-x0) ?
> ?- X = (:- :- x0).
> X = ((:-):-x0) ?
> ECLIPSe Prolog, half way tolerant:
>
> [eclipse 36]: X = (- :- x0).
> X = ((-) :- x0)
> [eclipse 37]: X = (:- :- x0).
> syntax error: postfix/infix operator expected
>
> SWI-Prolog, intolerant, good!!!
>
> ?- X = (- :- x0).
> ERROR: Syntax error: Operator priority clash
> ?- X = (:- :- x0).
> ERROR: Syntax error: Operator priority clash

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

<7e2d04f5-d6f7-4bf4-a8b8-b525f6b396ccn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1292&group=comp.lang.prolog#1292

  copy link   Newsgroups: comp.lang.prolog
X-Received: by 2002:ad4:5bc1:0:b0:42c:3700:a6df with SMTP id t1-20020ad45bc1000000b0042c3700a6dfmr27436508qvt.94.1651228940378;
Fri, 29 Apr 2022 03:42:20 -0700 (PDT)
X-Received: by 2002:a05:6902:1026:b0:649:2735:afc8 with SMTP id
x6-20020a056902102600b006492735afc8mr1400261ybt.251.1651228940173; Fri, 29
Apr 2022 03:42:20 -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: Fri, 29 Apr 2022 03:42:19 -0700 (PDT)
In-Reply-To: <3e62b88d-b551-4a01-a938-987d33dd3950n@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>
<163a9271-9d06-4fbc-8d3c-1903bd8733bdn@googlegroups.com> <c07fe58b-ca4d-44d1-a716-1790a2033be0n@googlegroups.com>
<82d76042-37a3-44ab-addc-3784060038ccn@googlegroups.com> <9f1d1d60-7c54-4c2d-a655-04b651565d0bn@googlegroups.com>
<0d15e64d-f537-4313-b637-cdd0f66a1761n@googlegroups.com> <52b84705-714c-4248-b85b-a643413b7ff3n@googlegroups.com>
<0152c446-3e8e-4e4f-807c-51e913f95708n@googlegroups.com> <c7ee2838-d75c-4807-982a-fd3567d82374n@googlegroups.com>
<a0dd0b5f-b459-48d3-842b-675f9712c902n@googlegroups.com> <7950d178-a688-4122-ab3a-c5105359632cn@googlegroups.com>
<d8530517-401e-46ec-84f3-7f09c8dd70f5n@googlegroups.com> <870d9bb1-4c0f-41a2-8430-99abd733eed1n@googlegroups.com>
<8f5f92be-4fbe-4093-8ee9-a4796618e0can@googlegroups.com> <adcb7512-f998-4843-bab4-f1b2c7342b40n@googlegroups.com>
<ed1a10f3-0abf-4ca9-8dce-fe2fe99a58c4n@googlegroups.com> <13feb23a-5af2-403a-ae04-de846eef0135n@googlegroups.com>
<t30qfn$o195$1@solani.org> <5bb791dd-1870-4d3e-ab5f-144960a0f16en@googlegroups.com>
<87694357-6814-462c-985e-b4dac5464de0n@googlegroups.com> <8b9def0e-c75b-49e2-9604-578e96616518n@googlegroups.com>
<0c65ee8a-05e5-48c1-a15f-7357f8f4a3can@googlegroups.com> <1d23bf74-8e21-40dd-964b-394714380030n@googlegroups.com>
<70ec78de-68d5-4f2f-b02f-27e217354547n@googlegroups.com> <ecf60f58-e711-41a1-8d69-cff4cbe8abacn@googlegroups.com>
<1ce7789e-d26d-4fb0-bbac-b4eb036838c9n@googlegroups.com> <87653350-350a-4527-9848-ac609c1a64abn@googlegroups.com>
<01c67652-6887-42e5-a533-f72722d92870n@googlegroups.com> <a2bcd077-a0e6-49e6-ad96-81494fed07cbn@googlegroups.com>
<9e3e77c4-04a3-4552-9f51-6600eb648720n@googlegroups.com> <daa565e1-5cf8-4c2d-bb5c-6eeb7290b92an@googlegroups.com>
<0844414b-5c96-4d23-bc26-48b579b41714n@googlegroups.com> <21a52b1d-464a-48c3-b1f8-21bb1d4de772n@googlegroups.com>
<f4d33919-35bb-44c3-bd1c-5786541c3671n@googlegroups.com> <bf591281-ea4d-4d63-ab24-18fe60160eean@googlegroups.com>
<ff4cc00d-8ac4-4c20-ba57-288cdd7eb831n@googlegroups.com> <ece8ebd1-4068-4f7d-8b86-48b4bd6ce56dn@googlegroups.com>
<d8d94dc3-6266-426f-8c5d-01e4de3a21d3n@googlegroups.com> <3e62b88d-b551-4a01-a938-987d33dd3950n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <7e2d04f5-d6f7-4bf4-a8b8-b525f6b396ccn@googlegroups.com>
Subject: Re: About the Operator '|' and the DCG Draft
From: bursejan@gmail.com (Mostowski Collapse)
Injection-Date: Fri, 29 Apr 2022 10:42:20 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 18
 by: Mostowski Collapse - Fri, 29 Apr 2022 10:42 UTC

More proof that Logtalk is utter nonsense. What
does the Logtalk test suite even test concerning
the various "adapters" it has, like Trealla?

This is a nice gem:

$ ./tpl -v
Trealla Prolog (c) Infradig 2020-2022, v1.27.12-31-g3575df
$ ./tpl
?- X = (:- (:- x0)).
Error: operator clash, line 1
false.
?-

There is something wrong with Ulrich Neumerkels
compliance test suite, and maybe some QuickCheck
resp. Fuzzer approach is needed,

to chop of all heads of the hydra.

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

<0a83d42e-d555-4c54-af9b-433f55b57a95n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1293&group=comp.lang.prolog#1293

  copy link   Newsgroups: comp.lang.prolog
X-Received: by 2002:a05:6214:519b:b0:456:48f2:a1b1 with SMTP id kl27-20020a056214519b00b0045648f2a1b1mr12493310qvb.4.1651229149280;
Fri, 29 Apr 2022 03:45:49 -0700 (PDT)
X-Received: by 2002:a25:b08f:0:b0:646:5312:bffb with SMTP id
f15-20020a25b08f000000b006465312bffbmr29481518ybj.274.1651229149106; Fri, 29
Apr 2022 03:45:49 -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: Fri, 29 Apr 2022 03:45:48 -0700 (PDT)
In-Reply-To: <7e2d04f5-d6f7-4bf4-a8b8-b525f6b396ccn@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>
<163a9271-9d06-4fbc-8d3c-1903bd8733bdn@googlegroups.com> <c07fe58b-ca4d-44d1-a716-1790a2033be0n@googlegroups.com>
<82d76042-37a3-44ab-addc-3784060038ccn@googlegroups.com> <9f1d1d60-7c54-4c2d-a655-04b651565d0bn@googlegroups.com>
<0d15e64d-f537-4313-b637-cdd0f66a1761n@googlegroups.com> <52b84705-714c-4248-b85b-a643413b7ff3n@googlegroups.com>
<0152c446-3e8e-4e4f-807c-51e913f95708n@googlegroups.com> <c7ee2838-d75c-4807-982a-fd3567d82374n@googlegroups.com>
<a0dd0b5f-b459-48d3-842b-675f9712c902n@googlegroups.com> <7950d178-a688-4122-ab3a-c5105359632cn@googlegroups.com>
<d8530517-401e-46ec-84f3-7f09c8dd70f5n@googlegroups.com> <870d9bb1-4c0f-41a2-8430-99abd733eed1n@googlegroups.com>
<8f5f92be-4fbe-4093-8ee9-a4796618e0can@googlegroups.com> <adcb7512-f998-4843-bab4-f1b2c7342b40n@googlegroups.com>
<ed1a10f3-0abf-4ca9-8dce-fe2fe99a58c4n@googlegroups.com> <13feb23a-5af2-403a-ae04-de846eef0135n@googlegroups.com>
<t30qfn$o195$1@solani.org> <5bb791dd-1870-4d3e-ab5f-144960a0f16en@googlegroups.com>
<87694357-6814-462c-985e-b4dac5464de0n@googlegroups.com> <8b9def0e-c75b-49e2-9604-578e96616518n@googlegroups.com>
<0c65ee8a-05e5-48c1-a15f-7357f8f4a3can@googlegroups.com> <1d23bf74-8e21-40dd-964b-394714380030n@googlegroups.com>
<70ec78de-68d5-4f2f-b02f-27e217354547n@googlegroups.com> <ecf60f58-e711-41a1-8d69-cff4cbe8abacn@googlegroups.com>
<1ce7789e-d26d-4fb0-bbac-b4eb036838c9n@googlegroups.com> <87653350-350a-4527-9848-ac609c1a64abn@googlegroups.com>
<01c67652-6887-42e5-a533-f72722d92870n@googlegroups.com> <a2bcd077-a0e6-49e6-ad96-81494fed07cbn@googlegroups.com>
<9e3e77c4-04a3-4552-9f51-6600eb648720n@googlegroups.com> <daa565e1-5cf8-4c2d-bb5c-6eeb7290b92an@googlegroups.com>
<0844414b-5c96-4d23-bc26-48b579b41714n@googlegroups.com> <21a52b1d-464a-48c3-b1f8-21bb1d4de772n@googlegroups.com>
<f4d33919-35bb-44c3-bd1c-5786541c3671n@googlegroups.com> <bf591281-ea4d-4d63-ab24-18fe60160eean@googlegroups.com>
<ff4cc00d-8ac4-4c20-ba57-288cdd7eb831n@googlegroups.com> <ece8ebd1-4068-4f7d-8b86-48b4bd6ce56dn@googlegroups.com>
<d8d94dc3-6266-426f-8c5d-01e4de3a21d3n@googlegroups.com> <3e62b88d-b551-4a01-a938-987d33dd3950n@googlegroups.com>
<7e2d04f5-d6f7-4bf4-a8b8-b525f6b396ccn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <0a83d42e-d555-4c54-af9b-433f55b57a95n@googlegroups.com>
Subject: Re: About the Operator '|' and the DCG Draft
From: bursejan@gmail.com (Mostowski Collapse)
Injection-Date: Fri, 29 Apr 2022 10:45:49 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 56
 by: Mostowski Collapse - Fri, 29 Apr 2022 10:45 UTC

I am little bit behind schedule of a Fuzzer that also
does parenthesis. So this was my sixth sense. Was also
working on another front, resyncing after errors.

I found a solution today: Have a grammer that covers non-errorneous
sentences and errorneous sentences. How to do this simply?
Its more difficult to resync the tokenization, then to resync the

parsing. For parsing I found this useful, since Prolog has the
concept of terminating period. Take the very simplified
prototype posted elsewhere:

reader_secondary(H, X, L, C) --> [A],
{current_op(R, M, A), is_infix(M, D, E), L >= R}, !,
{R-D < C -> throw(error(syntax_error(operator_clash),_)); true},
{T is R-E}, reader(Z, T),
{J =.. [A,H,Z]},
reader_secondary(J, X, L, R).

It throws an exception inside an auxiliary action {}/1 of DCG. But
you can define throw//1, i.e. make throw itself a DCG non-terminal:

throw(T) --> read_sync, {throw(T)}.

And then replace the infix parsing, its only an example, works also
for all other parser errors:

reader_secondary(H, X, L, C) --> [A],
{current_op(R, M, A), is_infix(M, D, E), L >= R}, !,
({R-D < C} -> throw(error(syntax_error(operator_clash),_)); {true}),
{T is R-E}, reader(Z, T),
{J =.. [A,H,Z]},
reader_secondary(J, X, L, R).

The parser is now calling throw//1 instead of throw/1. And throw//1
can do some syncing.

Mostowski Collapse schrieb am Freitag, 29. April 2022 um 12:42:21 UTC+2:
> More proof that Logtalk is utter nonsense. What
> does the Logtalk test suite even test concerning
> the various "adapters" it has, like Trealla?
>
> This is a nice gem:
>
> $ ./tpl -v
> Trealla Prolog (c) Infradig 2020-2022, v1.27.12-31-g3575df
> $ ./tpl
> ?- X = (:- (:- x0)).
> Error: operator clash, line 1
> false.
> ?-
>
> There is something wrong with Ulrich Neumerkels
> compliance test suite, and maybe some QuickCheck
> resp. Fuzzer approach is needed,
>
> to chop of all heads of the hydra.

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

<0592e61e-dda9-4760-acd6-d0f45594a9cdn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1294&group=comp.lang.prolog#1294

  copy link   Newsgroups: comp.lang.prolog
X-Received: by 2002:a05:622a:183:b0:2f3:9973:2511 with SMTP id s3-20020a05622a018300b002f399732511mr281568qtw.186.1651229221986;
Fri, 29 Apr 2022 03:47:01 -0700 (PDT)
X-Received: by 2002:a25:2653:0:b0:648:6d08:b4f2 with SMTP id
m80-20020a252653000000b006486d08b4f2mr23904071ybm.414.1651229221827; Fri, 29
Apr 2022 03:47:01 -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: Fri, 29 Apr 2022 03:47:01 -0700 (PDT)
In-Reply-To: <0a83d42e-d555-4c54-af9b-433f55b57a95n@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>
<163a9271-9d06-4fbc-8d3c-1903bd8733bdn@googlegroups.com> <c07fe58b-ca4d-44d1-a716-1790a2033be0n@googlegroups.com>
<82d76042-37a3-44ab-addc-3784060038ccn@googlegroups.com> <9f1d1d60-7c54-4c2d-a655-04b651565d0bn@googlegroups.com>
<0d15e64d-f537-4313-b637-cdd0f66a1761n@googlegroups.com> <52b84705-714c-4248-b85b-a643413b7ff3n@googlegroups.com>
<0152c446-3e8e-4e4f-807c-51e913f95708n@googlegroups.com> <c7ee2838-d75c-4807-982a-fd3567d82374n@googlegroups.com>
<a0dd0b5f-b459-48d3-842b-675f9712c902n@googlegroups.com> <7950d178-a688-4122-ab3a-c5105359632cn@googlegroups.com>
<d8530517-401e-46ec-84f3-7f09c8dd70f5n@googlegroups.com> <870d9bb1-4c0f-41a2-8430-99abd733eed1n@googlegroups.com>
<8f5f92be-4fbe-4093-8ee9-a4796618e0can@googlegroups.com> <adcb7512-f998-4843-bab4-f1b2c7342b40n@googlegroups.com>
<ed1a10f3-0abf-4ca9-8dce-fe2fe99a58c4n@googlegroups.com> <13feb23a-5af2-403a-ae04-de846eef0135n@googlegroups.com>
<t30qfn$o195$1@solani.org> <5bb791dd-1870-4d3e-ab5f-144960a0f16en@googlegroups.com>
<87694357-6814-462c-985e-b4dac5464de0n@googlegroups.com> <8b9def0e-c75b-49e2-9604-578e96616518n@googlegroups.com>
<0c65ee8a-05e5-48c1-a15f-7357f8f4a3can@googlegroups.com> <1d23bf74-8e21-40dd-964b-394714380030n@googlegroups.com>
<70ec78de-68d5-4f2f-b02f-27e217354547n@googlegroups.com> <ecf60f58-e711-41a1-8d69-cff4cbe8abacn@googlegroups.com>
<1ce7789e-d26d-4fb0-bbac-b4eb036838c9n@googlegroups.com> <87653350-350a-4527-9848-ac609c1a64abn@googlegroups.com>
<01c67652-6887-42e5-a533-f72722d92870n@googlegroups.com> <a2bcd077-a0e6-49e6-ad96-81494fed07cbn@googlegroups.com>
<9e3e77c4-04a3-4552-9f51-6600eb648720n@googlegroups.com> <daa565e1-5cf8-4c2d-bb5c-6eeb7290b92an@googlegroups.com>
<0844414b-5c96-4d23-bc26-48b579b41714n@googlegroups.com> <21a52b1d-464a-48c3-b1f8-21bb1d4de772n@googlegroups.com>
<f4d33919-35bb-44c3-bd1c-5786541c3671n@googlegroups.com> <bf591281-ea4d-4d63-ab24-18fe60160eean@googlegroups.com>
<ff4cc00d-8ac4-4c20-ba57-288cdd7eb831n@googlegroups.com> <ece8ebd1-4068-4f7d-8b86-48b4bd6ce56dn@googlegroups.com>
<d8d94dc3-6266-426f-8c5d-01e4de3a21d3n@googlegroups.com> <3e62b88d-b551-4a01-a938-987d33dd3950n@googlegroups.com>
<7e2d04f5-d6f7-4bf4-a8b8-b525f6b396ccn@googlegroups.com> <0a83d42e-d555-4c54-af9b-433f55b57a95n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <0592e61e-dda9-4760-acd6-d0f45594a9cdn@googlegroups.com>
Subject: Re: About the Operator '|' and the DCG Draft
From: bursejan@gmail.com (Mostowski Collapse)
Injection-Date: Fri, 29 Apr 2022 10:47:01 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 78
 by: Mostowski Collapse - Fri, 29 Apr 2022 10:47 UTC

I implemented this already for the full fledged parser. But the simplified
version doesn’t have it yet, because the simplified version didn’t parse a
list of period terminated terms anyway yet. If I have time I will do the

simplified version as well. Currently I get nice syncing, like for example:

?- X = (:- :- x0).
error(syntax_error(operator_clash), [user:1])
?- X = (:- x0.
error(syntax_error(parenthesis_balance), [user:2])
?- X = :- x0).
error(syntax_error(operator_clash), [user:3])
?- X = (:- x0).
X = (:- x0).
http://www.xlog.ch/izytab/doclet/docs/18_live/10_reference/example01/package.html

It can parse all 4 queries, and doesn’t get out of sync. read_sync//0 is
currently implemented by skipping tokens until the terminating period
is reached or end of file. A more mature implementation of throw//1

can do much more, like fetching line number before it does read_sync//0.

Mostowski Collapse schrieb am Freitag, 29. April 2022 um 12:45:50 UTC+2:
> I am little bit behind schedule of a Fuzzer that also
> does parenthesis. So this was my sixth sense. Was also
> working on another front, resyncing after errors.
>
> I found a solution today: Have a grammer that covers non-errorneous
> sentences and errorneous sentences. How to do this simply?
> Its more difficult to resync the tokenization, then to resync the
>
> parsing. For parsing I found this useful, since Prolog has the
> concept of terminating period. Take the very simplified
> prototype posted elsewhere:
> reader_secondary(H, X, L, C) --> [A],
> {current_op(R, M, A), is_infix(M, D, E), L >= R}, !,
> {R-D < C -> throw(error(syntax_error(operator_clash),_)); true},
> {T is R-E}, reader(Z, T),
> {J =.. [A,H,Z]},
> reader_secondary(J, X, L, R).
> It throws an exception inside an auxiliary action {}/1 of DCG. But
> you can define throw//1, i.e. make throw itself a DCG non-terminal:
>
> throw(T) --> read_sync, {throw(T)}.
>
> And then replace the infix parsing, its only an example, works also
> for all other parser errors:
> reader_secondary(H, X, L, C) --> [A],
> {current_op(R, M, A), is_infix(M, D, E), L >= R}, !,
> ({R-D < C} -> throw(error(syntax_error(operator_clash),_)); {true}),
> {T is R-E}, reader(Z, T),
> {J =.. [A,H,Z]},
> reader_secondary(J, X, L, R).
> The parser is now calling throw//1 instead of throw/1. And throw//1
> can do some syncing.
> Mostowski Collapse schrieb am Freitag, 29. April 2022 um 12:42:21 UTC+2:
> > More proof that Logtalk is utter nonsense. What
> > does the Logtalk test suite even test concerning
> > the various "adapters" it has, like Trealla?
> >
> > This is a nice gem:
> >
> > $ ./tpl -v
> > Trealla Prolog (c) Infradig 2020-2022, v1.27.12-31-g3575df
> > $ ./tpl
> > ?- X = (:- (:- x0)).
> > Error: operator clash, line 1
> > false.
> > ?-
> >
> > There is something wrong with Ulrich Neumerkels
> > compliance test suite, and maybe some QuickCheck
> > resp. Fuzzer approach is needed,
> >
> > to chop of all heads of the hydra.

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

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

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1304&group=comp.lang.prolog#1304

  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://www.rocksolidbbs.com/devel/article-flat.php?id=1305&group=comp.lang.prolog#1305

  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://www.rocksolidbbs.com/devel/article-flat.php?id=1399&group=comp.lang.prolog#1399

  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://www.rocksolidbbs.com/devel/article-flat.php?id=1400&group=comp.lang.prolog#1400

  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://www.rocksolidbbs.com/devel/article-flat.php?id=1518&group=comp.lang.prolog#1518

  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://www.rocksolidbbs.com/devel/article-flat.php?id=1519&group=comp.lang.prolog#1519

  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://www.rocksolidbbs.com/devel/article-flat.php?id=1521&group=comp.lang.prolog#1521

  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://www.rocksolidbbs.com/devel/article-flat.php?id=1525&group=comp.lang.prolog#1525

  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://www.rocksolidbbs.com/devel/article-flat.php?id=1526&group=comp.lang.prolog#1526

  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://www.rocksolidbbs.com/devel/article-flat.php?id=1527&group=comp.lang.prolog#1527

  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.
> >


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

Pages:123
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor