Adding SRFI 121 support, tests, all tests pass

This commit is contained in:
Koz Ross 2017-02-08 22:22:55 +13:00
parent da0899b3e6
commit 336017efb6
3 changed files with 25 additions and 2 deletions

View file

@ -2,7 +2,7 @@
Features
- Koz Ross added implementations of SRFI 28 and 60.
- Koz Ross added implementations of SRFI 28, 60 and 121.
- Allow a program to have more than one `import` declaration. A program can now also use `cond-expand` to selectively expand `import` declarations.
- Added the `-A` and `-I` compiler options from SRFI 138 to `cyclone`:

View file

@ -25,7 +25,8 @@ COBJECTS = $(SLDFILES:.sld=.o)
HEADERS = $(HEADER_DIR)/runtime.h $(HEADER_DIR)/types.h
TEST_SRC = $(TEST_DIR)/unit-tests.scm \
$(TEST_DIR)/srfi-28-tests.scm \
$(TEST_DIR)/srfi-60-tests.scm
$(TEST_DIR)/srfi-60-tests.scm \
$(TEST_DIR)/srfi-121-tests.scm
TESTS = $(basename $(TEST_SRC))
# Primary rules (of interest to an end user)
@ -227,6 +228,7 @@ bootstrap : icyc libs
cp srfi/111.c $(BOOTSTRAP_DIR)/srfi
cp srfi/113.c $(BOOTSTRAP_DIR)/srfi
cp srfi/117.c $(BOOTSTRAP_DIR)/srfi
cp srfi/121.c $(BOOTSTRAP_DIR)/srfi
cp srfi/128.c $(BOOTSTRAP_DIR)/srfi
cp srfi/128.meta $(BOOTSTRAP_DIR)/srfi
cp srfi/132.c $(BOOTSTRAP_DIR)/srfi

View file

@ -1,3 +1,24 @@
#|
| Copyright (c) 2017 Koz Ross
|
| Permission is hereby granted, free of charge, to any person obtaining a copy of
| this software and associated documentation files (the "Software"), to deal in
| the Software without restriction, including without limitation the rights to
| use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
| the Software, and to permit persons to whom the Software is furnished to do so,
| subject to the following conditions:
|
| The above copyright notice and this permission notice shall be included in all
| copies or substantial portions of the Software.
|
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
| FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
| COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
| IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
| CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|#
(import
(scheme base)
(srfi 60)