unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Scheme+ version 3.0
@ 2022-08-10 13:15 Damien Mattei
  0 siblings, 0 replies; only message in thread
From: Damien Mattei @ 2022-08-10 13:15 UTC (permalink / raw)
  To: guile-user

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-08-10 13:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-10 13:15 Scheme+ version 3.0 Damien Mattei

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