[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Scheme+ version 3.0
From: |
Damien Mattei |
Subject: |
Scheme+ version 3.0 |
Date: |
Wed, 10 Aug 2022 15:15:37 +0200 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Scheme+ version 3.0,
Damien Mattei <=