Skip to content

Commit

Permalink
Update procedure list to built-in
Browse files Browse the repository at this point in the history
Signed-off-by: yamacir-kit <httperror@404-notfound.jp>
  • Loading branch information
yamacir-kit committed Sep 19, 2023
1 parent 32e6ecb commit 31eb3e3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Subset of R7RS-small.
cmake -B build -DCMAKE_BUILD_TYPE=Release
cd build
make package
sudo apt install build/meevax_0.4.809_amd64.deb
sudo apt install build/meevax_0.4.810_amd64.deb
```

or
Expand Down Expand Up @@ -106,9 +106,9 @@ sudo rm -rf /usr/local/share/meevax

| Target Name | Description
|-------------|-------------
| `all` | Build shared-library `libmeevax.0.4.809.so` and executable `meevax`
| `all` | Build shared-library `libmeevax.0.4.810.so` and executable `meevax`
| `test` | Test executable `meevax`
| `package` | Generate debian package `meevax_0.4.809_amd64.deb`
| `package` | Generate debian package `meevax_0.4.810_amd64.deb`
| `install` | Copy files into `/usr/local` directly

## Usage
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.4.809
0.4.810
6 changes: 2 additions & 4 deletions basis/r4rs-essential.ss
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|#

(begin (define (list . xs) xs) ; Chibi-Scheme

(define-syntax cond ; Chibi-Scheme
(begin (define-syntax cond ; Chibi-Scheme
(er-macro-transformer
(lambda (form rename compare)
(if (null? (cdr form))
Expand Down Expand Up @@ -207,7 +205,7 @@
(car xs))))
(reverse (cons x xs))))))

(define-syntax let
(define-syntax let ; Chibi-Scheme
(er-macro-transformer
(lambda (form rename compare)
(if (identifier? (cadr form))
Expand Down
5 changes: 5 additions & 0 deletions src/kernel/boot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,11 @@ inline namespace kernel
return xs[0].is<null>();
});

library.define<accessor>("list", [](let const& xs) -> auto const&
{
return xs;
});

library.define<function>("make-list", [](let const& xs)
{
return make_list(xs[0].as<exact_integer>(), 1 < length(xs) ? xs[1] : f);
Expand Down

0 comments on commit 31eb3e3

Please sign in to comment.