This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
guile-prescheme/prescheme/scheme48.scm

40 lines
1 KiB
Scheme
Raw Normal View History

2022-07-15 21:36:02 +00:00
;;; Copyright 2022 Andrew Whatson
;;;
;;; Minimal Scheme48 compatibility layer for Pre-Scheme on Guile.
;;;
(define-module (prescheme scheme48)
#:use-module (srfi srfi-8)
#:use-module (srfi srfi-60)
2022-07-19 07:30:12 +00:00
#:use-module (rnrs bytevectors)
2022-07-16 16:14:01 +00:00
#:use-module (prescheme s48-defenum)
2022-07-15 21:36:02 +00:00
#:export (arithmetic-shift
ascii->char
char->ascii
2022-07-19 07:30:12 +00:00
unspecific
make-code-vector
code-vector-ref
code-vector-set!
code-vector-length)
2022-07-16 16:14:01 +00:00
#:re-export (define-enumeration
enum
name->enumerand
enumerand->name
bitwise-and
bitwise-ior
bitwise-xor
bitwise-not
receive))
2022-07-15 21:36:02 +00:00
(define arithmetic-shift ash)
2022-07-16 16:14:01 +00:00
(define ascii->char integer->char)
(define char->ascii char->integer)
2022-07-19 07:08:46 +00:00
(define unspecific (if #f #f))
2022-07-19 07:30:12 +00:00
(define make-code-vector make-bytevector)
(define code-vector-ref bytevector-u8-ref)
(define code-vector-set! bytevector-u8-set!)
(define code-vector-length bytevector-length)