;;; -*-Scheme-*-
;;;
-;;; $Id: rgxcmp.scm,v 1.114 2001/03/21 05:42:20 cph Exp $
+;;; $Id: rgxcmp.scm,v 1.115 2001/06/15 21:20:48 cph Exp $
;;;
;;; Copyright (c) 1986, 1989-2001 Massachusetts Institute of Technology
;;;
(define (re-compile-char-set pattern negate?)
(let ((length (string-length pattern))
- (char-set (string-allocate 256)))
+ (table (string-allocate 256)))
(let ((kernel
(lambda (start background foreground)
(let ((adjoin!
(lambda (ascii)
- (vector-8b-set! char-set ascii foreground))))
- (vector-8b-fill! char-set 0 256 background)
+ (vector-8b-set! table ascii foreground))))
+ (vector-8b-fill! table 0 256 background)
(let loop
((pattern (substring->list pattern start length)))
(if (pair? pattern)
((index (char->ascii (car pattern))))
(if (fix:<= index end)
(begin
- (vector-8b-set! char-set
+ (vector-8b-set! table
index
foreground)
(loop (fix:+ index 1))))))
(if negate?
(kernel 0 1 0)
(kernel 0 0 1))))
- char-set))
+ (make-char-set table)))
\f
;;;; Translation Tables
#| -*-Scheme-*-
-$Id: runtime.pkg,v 14.369 2001/06/15 20:38:40 cph Exp $
+$Id: runtime.pkg,v 14.370 2001/06/15 21:20:53 cph Exp $
Copyright (c) 1988-2001 Massachusetts Institute of Technology
string->char-set)
(export (runtime string)
char-set-table)
+ (export (runtime regular-expression-compiler)
+ make-char-set)
(initialization (initialize-package!)))
(define-package (runtime compiler-info)