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

31 lines
764 B
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-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
unspecific)
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-16 16:14:01 +00:00
;; TODO: requires define-enumeration
(define unspecific (const #f))