Skip to content

Commit

Permalink
version 9.3 modular
Browse files Browse the repository at this point in the history
  • Loading branch information
damien-mattei committed Sep 21, 2024
1 parent 2d856ca commit 4a224b4
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 71 deletions.
47 changes: 21 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<p style="text-align: center;"><br>
</p>
<h1 style="text-align: center;"><b><span style="color: #000099;">Scheme+</span></b><b><span
style="color: #999999;"> <font size="+2">version 8.7 for Racket Scheme<br>
style="color: #999999;"> <font size="+2">version 9.3 for Racket Scheme<br>
</font></span></b></h1>
<p style="text-align: center;">
Display options for viewing this documentation:<br>
Expand Down Expand Up @@ -250,10 +250,10 @@ the fly:<br>

{% highlight scheme %}
```scheme
#lang reader "SRFI-105.rkt"
#lang reader SRFI-105
(require Scheme-PLUS-for-Racket)
(require Scheme+)
; first stage overloading if any
Expand Down Expand Up @@ -410,7 +410,7 @@ height="722"><br>
<p> </p>
<br>
<p>Hash Tables support :</p>
<pre>(require Scheme-PLUS-for-Racket)
<pre>(require Scheme+)


; first stage overloading if any
Expand Down Expand Up @@ -463,9 +463,6 @@ schemes, it is automatic in Racket.
<p>Including : <br>
</p>
<div style="margin-left: 40px;"> </div>
<p style="margin-left: 40px;">An implementation of the SRFI-105
"Curly Infix" with a REPL (Read Eval Print Loop) for Racket. (file SRFI-105.rkt)<br>
</p>
<p style="margin-left: 40px;">The enhanced set of LET special forms
in the file let.scm.</p>
<div style="margin-left: 40px;"> </div>
Expand Down Expand Up @@ -507,14 +504,12 @@ target="_blank" moz-do-not-send="true">Github issues system</a>.<br>
</p>
<h2>5.<u>Installation:</u></h2>
<p><br>
You also need the <b>SRFI-105 Curly Infix language</b> for Racket
You also need the <a href="https://github.com/damien-mattei/SRFI-105-for-Racket">SRFI-105 Curly Infix language for Racket
and its REPL (Read Eval Print Loop) that will allow you to use infix
notation and Scheme+.<br>
notation and Scheme+</a>.<br>
<br>
This is <b>mandatory</b>.<br>
<br>
You can find the <b>SRFI-105.rkt</b> file in the downloaded package
of Scheme+ (in the subdirectory <b>SRFI</b>)<br>
<br>
<h2><u>6. Idea and rationale:</u></h2>
<p>The core language of <a href="https://en.wikipedia.org/wiki/Scheme_%28programming_language%29"
Expand Down Expand Up @@ -659,11 +654,11 @@ of Scheme+ (in the subdirectory <b>SRFI</b>)<br>
<p>Scheme+ allow to write code more readable and simpler than
normal Scheme.</p>
<p>Prior to use <b>Scheme+</b> for DrRacket Scheme, you must add a
<b>#lang reader "SRFI-105.rkt" </b>directive in the first line of
<b>#lang reader SRFI-105 </b>directive in the first line of
your program and by inserting the statement


(require Scheme-PLUS-for-Racket)
(require Scheme+)


; first stage overloading if any
Expand All @@ -676,8 +671,8 @@ your program and by inserting the statement
{% highlight scheme %}
```scheme
#lang reader "SRFI-105.rkt"
(require "../Scheme-PLUS-for-Racket/main/Scheme-PLUS-for-Racket/main.rkt")
#lang reader SRFI-105
(require Scheme+)
; first stage overloading if any
Expand Down Expand Up @@ -730,8 +725,8 @@ your program and by inserting the statement
{% highlight scheme %}
```scheme
#lang reader "SRFI-105.rkt"
(require "../Scheme-PLUS-for-Racket/main/Scheme-PLUS-for-Racket/main.rkt")
#lang reader SRFI-105
(require Scheme+)
(declare size1 memo1)
Expand Down Expand Up @@ -807,9 +802,9 @@ disj-norm-form = (or (and c (not d)) (and (not a) (not b) (not c) (not d)) (and
```scheme
#lang reader "../src/SRFI-105.rkt"
#lang reader SRFI-105
(require Scheme-PLUS-for-Racket)
(require Scheme+)
{L-init <+ '(1 3 4 16 17 24 45 64 197 256 275 323 540 723 889 915 1040 1041 1093 1099 1111 1284 1344 1520 2027 2500 2734 3000 3267 3610 4285 5027)}
{t-init <+ 35267}
Expand Down Expand Up @@ -950,8 +945,8 @@ disj-norm-form = (or (and c (not d)) (and (not a) (not b) (not c) (not d)) (and
```scheme
#lang reader "../src/SRFI-105.rkt"
(require Scheme-PLUS-for-Racket)
#lang reader SRFI-105
(require Scheme+)
(declare L-init t-init ls dyna cpt)
Expand Down Expand Up @@ -1015,8 +1010,8 @@ disj-norm-form = (or (and c (not d)) (and (not a) (not b) (not c) (not d)) (and
```scheme
#lang reader "../src/SRFI-105.rkt"
(require Scheme-PLUS-for-Racket)
#lang reader SRFI-105
(require Scheme+)
(def (subset-sum-dyna L t)
Expand Down Expand Up @@ -1063,7 +1058,7 @@ Here is another overloading example:
{% highlight scheme %}
```scheme
#lang reader "../Scheme-PLUS-for-Racket/main/Scheme-PLUS-for-Racket/src/SRFI-105.rkt" ; SRFI-105 Curly-infix-expressions
#lang reader SRFI-105 ; SRFI-105 Curly-infix-expressions
(provide (all-defined-out))
Expand All @@ -1073,7 +1068,7 @@ Here is another overloading example:
(require "matrix.rkt")
(require "../Scheme-PLUS-for-Racket/main/Scheme-PLUS-for-Racket/main.rkt")
(require Scheme+)
; first stage overloading
Expand Down Expand Up @@ -1749,7 +1744,7 @@ scheme@(guile-user)&gt; v
{% highlight scheme %}
```scheme
#lang reader "../src/SRFI-105.rkt"
#lang reader SRFI-105
;; example in Scheme+ that plot the convergence of th ζ Riemann complex serie (without Analytic continuation)
Expand Down
39 changes: 17 additions & 22 deletions Scheme+.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ <h2 style=" text-align: center;">Damien Mattei<br>
<p style="text-align: center;"><br>
</p>
<h1 style="text-align: center;"><b><span style="color: #000099;">Scheme+</span></b><b><span
style="color: #999999;"> <font size="+2">version 8.7 for
style="color: #999999;"> <font size="+2">version 9.3 for
Racket Scheme<br>
</font></span></b></h1>
<p style="text-align: center;"> </p>
Expand Down Expand Up @@ -304,7 +304,7 @@ <h2><u>1. Scheme+ at a glance:&nbsp;</u></h2>
<div style="background: #111111;
overflow:auto;width:auto;border:solid gray;border-width:.1em .1em
.1em .8em;padding:.2em .6em;">
<pre style="margin: 0; line-height: 125%"><span style="color: #ffffff">#lang reader "SRFI-105.rkt"<br><br></span><span style="color: #ffffff">(require Scheme-PLUS-for-Racket)
<pre style="margin: 0; line-height: 125%"><span style="color: #ffffff">#lang reader SRFI-105<br><br></span><span style="color: #ffffff">(require Scheme+)
</span>
</pre>
<br>
Expand Down Expand Up @@ -487,10 +487,6 @@ <h3 style=" text-align: center;">&gt;&gt;&gt;&nbsp;&nbsp; <a
<p>Including : <br>
</p>
<div style="margin-left: 40px;"> </div>
<p style="margin-left: 40px;">An implementation of the SRFI-105
"Curly Infix" with a REPL (Read Eval Print Loop) for Racket (file
SRFI-105.rkt).<br>
</p>
<p style="margin-left: 40px;">The enhanced set of LET special forms
in the file let.scm.</p>
<div style="margin-left: 40px;"> </div>
Expand Down Expand Up @@ -573,15 +569,14 @@ <h2>4.<u>Author and license:</u></h2>
<p><br>
</p>
<h2>5.<u>Installation:</u></h2>
You also need the <b>SRFI-105 Curly Infix language</b> for Racket
You also need the <a href="https://github.com/damien-mattei/SRFI-105-for-Racket">SRFI-105 Curly Infix language for Racket
and its REPL (Read Eval Print Loop) that will allow you to use infix
notation and Scheme+</a> for Racket
and its REPL (Read Eval Print Loop) that will allow you to use infix
notation and Scheme+.<br>
<br>
This is <b>mandatory</b>.<br>
<br>
You can find the <b>SRFI-105.rkt</b> file in the downloaded package
of Scheme+ (in the subdirectory <b>SRFI</b>)<br>
<br>
<h2><u>6. Idea and rationale:</u></h2>
<p>The core language of <a
href="https://en.wikipedia.org/wiki/Scheme_%28programming_language%29"
Expand Down Expand Up @@ -736,9 +731,9 @@ <h3 style=" margin-left: 40px;">The <a
<p>Scheme+ allow to write code more readable and simpler than normal
Scheme.</p>
<p>Prior to use <b>Scheme+</b> for DrRacket Scheme, you must add a
<b>#lang reader "SRFI-105.rkt" </b>directive in the first line of
<b>#lang reader SRFI-105 </b>directive in the first line of
your program and by inserting the statement <b><pre>
(require Scheme-PLUS-for-Racket)
(require Scheme+)
</pre>
</b>if you have downloaded the source code.</p>
<p>Below is the version of the above code written in Scheme+ :</p>
Expand All @@ -747,9 +742,9 @@ <h3 style=" margin-left: 40px;">The <a
<div style="background: #111111;
overflow:auto;width:auto;border:solid gray;border-width:.1em .1em
.1em .8em;padding:.2em .6em;"><span style="color: #ffffff"></span><span
style="color: #ffffff"><b>#lang reader "SRFI-105.rkt"<br>
style="color: #ffffff"><b>#lang reader SRFI-105<br>
</b><pre>
(require "../Scheme-PLUS-for-Racket/main/Scheme-PLUS-for-Racket/main.rkt")
(require Scheme+)
</pre>
<br>
</span> </div>
Expand Down Expand Up @@ -812,8 +807,8 @@ <h2> </h2>
.1em .1em .8em;padding:.2em .6em;">
<pre style="margin: 0; line-height: 125%"><span style="color:
#ffffff"><span style="color: #ffffff"><b>#lang reader
"SRFI-105.rkt"<br></b><pre>
(require Scheme-PLUS-for-Racket)
SRFI-105<br></b><pre>
(require Scheme+)
</pre>

<br>
Expand Down Expand Up @@ -903,7 +898,7 @@ <h2>10<u>.Advanced examples:</u><br>
overflow:auto;width:auto;border:solid gray;border-width:.1em .1em
.1em .8em;padding:.2em .6em;"><span style="color: #ffffff">#lang
reader "../src/SRFI-105.rkt"<br><pre>
(require "../Scheme-PLUS-for-Racket/main/Scheme-PLUS-for-Racket/main.rkt")
(require Scheme+)
</pre>
<br>
</span><span style="color: #ff0086; font-weight: bold"></span><span
Expand Down Expand Up @@ -1168,8 +1163,8 @@ <h2>10<u>.Advanced examples:</u><br>
overflow:auto;width:auto;border:solid gray;border-width:.1em .1em
.1em .8em;padding:.2em .6em;">
<pre style="margin: 0; line-height: 125%"><span style="color:
#ffffff">#lang reader "../src/SRFI-105.rkt"<br>
(require Scheme-PLUS-for-Racket)
#ffffff">#lang reader SRFI-105<br>
(require Scheme+)
</span>
</pre>
</div>
Expand Down Expand Up @@ -1238,7 +1233,7 @@ <h2>10<u>.Advanced examples:</u><br>
<div style="background: #111111;
overflow:auto;width:auto;border:solid gray;border-width:.1em .1em
.1em .8em;padding:.2em .6em;">
<pre style="margin: 0; line-height: 125%"><span style="color: #ffffff"></span><span style="color: #ff0086; font-weight: bold"></span><span style="color: #ffffff"></span><span style="color: #ff0086; font-weight: bold"></span><span style="color: #ffffff"></span><span style="color: #ffffff">#lang reader "../src/SRFI-105.rkt"<br>(require "../Scheme-PLUS-for-Racket/main/Scheme-PLUS-for-Racket/main.rkt")
<pre style="margin: 0; line-height: 125%"><span style="color: #ffffff"></span><span style="color: #ff0086; font-weight: bold"></span><span style="color: #ffffff"></span><span style="color: #ff0086; font-weight: bold"></span><span style="color: #ffffff"></span><span style="color: #ffffff">#lang reader SRFI-105<br>(require Scheme+)
</span>
</pre>
</div>
Expand Down Expand Up @@ -1288,7 +1283,7 @@ <h2><br>

<pre>

#lang reader "../Scheme-PLUS-for-Racket/main/Scheme-PLUS-for-Racket/src/SRFI-105.rkt" ; SRFI-105 Curly-infix-expressions
#lang reader SRFI-105 ; SRFI-105 Curly-infix-expressions


(provide (all-defined-out))
Expand All @@ -1298,7 +1293,7 @@ <h2><br>
(require "matrix.rkt")


(require Scheme-PLUS-for-Racket)
(require Scheme+)


; first stage overloading
Expand Down
Loading

0 comments on commit 4a224b4

Please sign in to comment.