mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-24 12:20:20 +02:00
Implement R6RS bytevector read syntax.
* libguile/read.c (scm_read_bytevector): New function. (scm_read_sharp): Add `v' case for bytevectors. * test-suite/lib.scm (exception:read-error): New variable. * test-suite/tests/bytevectors.test ("Datum Syntax"): New test set.
This commit is contained in:
parent
55bf8cb7af
commit
0ba0b38489
3 changed files with 86 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
;;;; test-suite/lib.scm --- generic support for testing
|
||||
;;;; Copyright (C) 1999, 2000, 2001, 2004, 2006, 2007 Free Software Foundation, Inc.
|
||||
;;;; Copyright (C) 1999, 2000, 2001, 2004, 2006, 2007, 2009 Free Software Foundation, Inc.
|
||||
;;;;
|
||||
;;;; This program is free software; you can redistribute it and/or
|
||||
;;;; modify it under the terms of the GNU Lesser General Public
|
||||
|
@ -32,6 +32,7 @@
|
|||
exception:system-error
|
||||
exception:miscellaneous-error
|
||||
exception:string-contains-nul
|
||||
exception:read-error
|
||||
|
||||
;; Reporting passes and failures.
|
||||
run-test
|
||||
|
@ -265,6 +266,8 @@
|
|||
(cons 'system-error ".*"))
|
||||
(define exception:miscellaneous-error
|
||||
(cons 'misc-error "^.*"))
|
||||
(define exception:read-error
|
||||
(cons 'read-error "^.*$"))
|
||||
|
||||
;; as per throw in scm_to_locale_stringn()
|
||||
(define exception:string-contains-nul
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue