| 1 |
;;; Ikarus Scheme -- A compiler for R6RS Scheme. |
| 2 |
;;; Copyright (C) 2008,2009 Abdulaziz Ghuloum |
| 3 |
;;; |
| 4 |
;;; This program is free software: you can redistribute it and/or modify |
| 5 |
;;; it under the terms of the GNU General Public License version 3 as |
| 6 |
;;; published by the Free Software Foundation. |
| 7 |
;;; |
| 8 |
;;; This program is distributed in the hope that it will be useful, but |
| 9 |
;;; WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 |
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 11 |
;;; General Public License for more details. |
| 12 |
;;; |
| 13 |
;;; You should have received a copy of the GNU General Public License |
| 14 |
;;; along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
(library (ikarus not-yet-implemented) |
| 19 |
(export |
| 20 |
bitwise-reverse-bit-field |
| 21 |
bitwise-rotate-bit-field |
| 22 |
make-custom-binary-input/output-port |
| 23 |
make-custom-textual-input/output-port |
| 24 |
open-file-input/output-port |
| 25 |
equal-hash) |
| 26 |
|
| 27 |
(import (except (ikarus) |
| 28 |
bitwise-reverse-bit-field |
| 29 |
bitwise-rotate-bit-field |
| 30 |
make-custom-binary-input/output-port |
| 31 |
make-custom-textual-input/output-port |
| 32 |
open-file-input/output-port |
| 33 |
equal-hash)) |
| 34 |
|
| 35 |
(define-syntax not-yet |
| 36 |
(syntax-rules () |
| 37 |
[(_ x* ...) |
| 38 |
(begin |
| 39 |
(define (bug op) |
| 40 |
(define-condition-type &url &condition |
| 41 |
make-url-condition |
| 42 |
url-condition? |
| 43 |
(url condition-url)) |
| 44 |
(raise |
| 45 |
(condition |
| 46 |
(make-error) |
| 47 |
(make-who-condition 'ikarus) |
| 48 |
(make-message-condition "primitive not supported") |
| 49 |
(make-message-condition |
| 50 |
"Please visit the Ikarus FAQs page for more information") |
| 51 |
(make-url-condition |
| 52 |
"https://answers.launchpad.net/ikarus/+faqs") |
| 53 |
(make-irritants-condition (list op))))) |
| 54 |
(define (x* . args) (bug 'x*)) |
| 55 |
...)])) |
| 56 |
|
| 57 |
(not-yet |
| 58 |
;;; should be implemented |
| 59 |
bitwise-rotate-bit-field bitwise-reverse-bit-field |
| 60 |
;;; not top priority at the moment |
| 61 |
equal-hash |
| 62 |
;;; won't be implemented |
| 63 |
make-custom-binary-input/output-port |
| 64 |
make-custom-textual-input/output-port |
| 65 |
open-file-input/output-port |
| 66 |
)) |
| 67 |
|
| 68 |
|