2009-01-09 03:40:55 -05:00
|
|
|
;;; Ikarus Scheme -- A compiler for R6RS Scheme.
|
|
|
|
;;; Copyright (C) 2008,2009 Abdulaziz Ghuloum
|
|
|
|
;;;
|
|
|
|
;;; This program is free software: you can redistribute it and/or modify
|
|
|
|
;;; it under the terms of the GNU General Public License version 3 as
|
|
|
|
;;; published by the Free Software Foundation.
|
|
|
|
;;;
|
|
|
|
;;; This program is distributed in the hope that it will be useful, but
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
;;; General Public License for more details.
|
|
|
|
;;;
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
;;; along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
2008-05-01 17:52:52 -04:00
|
|
|
|
|
|
|
(library (ikarus not-yet-implemented)
|
|
|
|
(export
|
2008-08-05 02:43:11 -04:00
|
|
|
bitwise-reverse-bit-field
|
|
|
|
bitwise-rotate-bit-field fxreverse-bit-field
|
2008-05-01 17:52:52 -04:00
|
|
|
make-custom-binary-input/output-port
|
|
|
|
make-custom-textual-input/output-port
|
2008-12-09 04:46:43 -05:00
|
|
|
open-file-input/output-port
|
2008-12-09 03:00:44 -05:00
|
|
|
equal-hash)
|
2008-05-01 17:52:52 -04:00
|
|
|
|
|
|
|
(import (except (ikarus)
|
2008-08-05 02:43:11 -04:00
|
|
|
bitwise-reverse-bit-field
|
|
|
|
bitwise-rotate-bit-field fxreverse-bit-field
|
2008-05-01 17:52:52 -04:00
|
|
|
make-custom-binary-input/output-port
|
|
|
|
make-custom-textual-input/output-port
|
2008-12-09 04:46:43 -05:00
|
|
|
open-file-input/output-port
|
2008-12-09 03:00:44 -05:00
|
|
|
equal-hash))
|
2008-05-01 17:52:52 -04:00
|
|
|
|
|
|
|
(define-syntax not-yet
|
|
|
|
(syntax-rules ()
|
|
|
|
[(_ x* ...)
|
|
|
|
(begin
|
|
|
|
(define (bug op)
|
|
|
|
(define-condition-type &url &condition
|
|
|
|
make-url-condition
|
|
|
|
url-condition?
|
|
|
|
(url condition-url))
|
|
|
|
(raise
|
|
|
|
(condition
|
|
|
|
(make-error)
|
|
|
|
(make-who-condition 'ikarus)
|
2008-12-09 04:46:43 -05:00
|
|
|
(make-message-condition "primitive not supported")
|
2008-05-01 17:52:52 -04:00
|
|
|
(make-message-condition
|
2008-12-09 04:46:43 -05:00
|
|
|
"Please visit the Ikarus FAQs page for more information")
|
2008-05-01 17:52:52 -04:00
|
|
|
(make-url-condition
|
2008-12-09 04:46:43 -05:00
|
|
|
"https://answers.launchpad.net/ikarus/+faqs")
|
2008-05-01 17:52:52 -04:00
|
|
|
(make-irritants-condition (list op)))))
|
|
|
|
(define (x* . args) (bug 'x*))
|
|
|
|
...)]))
|
|
|
|
|
|
|
|
(not-yet
|
2008-05-18 23:39:41 -04:00
|
|
|
;;; should be implemented
|
2008-08-05 02:43:11 -04:00
|
|
|
bitwise-rotate-bit-field bitwise-reverse-bit-field
|
2008-07-27 13:53:31 -04:00
|
|
|
fxreverse-bit-field
|
2008-05-18 23:39:41 -04:00
|
|
|
;;; not top priority at the moment
|
2008-10-31 23:09:03 -04:00
|
|
|
equal-hash
|
2008-05-18 23:39:41 -04:00
|
|
|
;;; won't be implemented
|
2008-05-01 17:52:52 -04:00
|
|
|
make-custom-binary-input/output-port
|
|
|
|
make-custom-textual-input/output-port
|
2008-05-18 23:39:41 -04:00
|
|
|
open-file-input/output-port
|
2008-12-09 03:00:44 -05:00
|
|
|
))
|
2008-05-01 17:52:52 -04:00
|
|
|
|
|
|
|
|