unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Damien Mattei <damien.mattei@gmail.com>
To: guile-user <guile-user@gnu.org>
Subject: Scheme+ version 3.0
Date: Wed, 10 Aug 2022 15:15:37 +0200	[thread overview]
Message-ID: <CADEOadcP8HEto28YhZhYwvYick3uUiPCwudKrn3EUWnXx4oPMg@mail.gmail.com> (raw)

It's a minor upgrade of Scheme+ available for Guile Scheme.

TL;DR:
Scheme+ is an extension of the syntax of the Scheme language. Scheme+ makes
it easy the assignment of Scheme objects in infix (works also in prefix)
notation with a few new operators ← (or <-), [ ],⥆ (or <+) .

https://damien-mattei.github.io/Scheme-PLUS-for-Guile/Scheme+io.html

and soon for Chicken and Sagittarius Scheme because it is easy to port it
when SRFI-105 is already implemented for the Scheme, ports for other Scheme
implementation will be more hard.

already for Racket too:

https://damien-mattei.github.io/Scheme-PLUS-for-Racket/Scheme+io.html

I give too some examples of Scheme+ for Guile in real conditions:

https://github.com/damien-mattei/library-FunctProg/blob/master/guile/logiki%2B.scm#L1978

A Petrick's method implementation:

https://github.com/damien-mattei/library-FunctProg/blob/master/guile/logiki%2B.scm#L2239

A Quine - Mc Cluskey's implementation:

https://github.com/damien-mattei/library-FunctProg/blob/master/guile/logiki%2B.scm#L2177
(cnf-infix-symb '{A ⊕ B ⊕ Ci})
'((¬A ∨ B ∨ ¬Ci) ∧ (¬A ∨ ¬B ∨ Ci) ∧ (A ∨ ¬B ∨ ¬Ci) ∧ (A ∨ B ∨ Ci))

(infix-symb-bool-min-dnf '{{(not a) and (not b) and (not c) and (not d)} or
{(not a) and (not b) and (not c) and d} or {(not a) and (not b) and c and
(not d)} or {(not a) and b and (not c) and d} or {(not a) and b and c and
(not d)} or {(not a) and b and c and d} or {a and (not b) and (not c) and
(not d)} or {a and (not b) and (not c) and d} or {a and (not b) and c and
(not d)} or {c and (not d)}} )

((a̅ · b · d) ➕ (b̅ · c̅) ➕ (c · d̅))

Damien


                 reply	other threads:[~2022-08-10 13:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CADEOadcP8HEto28YhZhYwvYick3uUiPCwudKrn3EUWnXx4oPMg@mail.gmail.com \
    --to=damien.mattei@gmail.com \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).