2001-05-06 09:26:16 +00:00
|
|
|
|
;;;; Copyright (C) 1996, 1998, 1999, 2001 Free Software Foundation, Inc.
|
2001-04-28 19:03:42 +00:00
|
|
|
|
;;;;
|
2003-04-05 19:15:35 +00:00
|
|
|
|
;;;; This library is free software; you can redistribute it and/or
|
|
|
|
|
|
;;;; modify it under the terms of the GNU Lesser General Public
|
|
|
|
|
|
;;;; License as published by the Free Software Foundation; either
|
|
|
|
|
|
;;;; version 2.1 of the License, or (at your option) any later version.
|
|
|
|
|
|
;;;;
|
|
|
|
|
|
;;;; This library is distributed in the hope that it will be useful,
|
1996-10-17 23:21:10 +00:00
|
|
|
|
;;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
2003-04-05 19:15:35 +00:00
|
|
|
|
;;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
|
;;;; Lesser General Public License for more details.
|
|
|
|
|
|
;;;;
|
|
|
|
|
|
;;;; You should have received a copy of the GNU Lesser General Public
|
|
|
|
|
|
;;;; License along with this library; if not, write to the Free Software
|
2005-05-23 19:57:22 +00:00
|
|
|
|
;;;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
2001-06-03 23:29:45 +00:00
|
|
|
|
;;;;
|
1996-10-17 23:21:10 +00:00
|
|
|
|
|
2001-04-28 19:03:42 +00:00
|
|
|
|
;;; Commentary:
|
1996-10-17 23:21:10 +00:00
|
|
|
|
|
2001-04-28 19:03:42 +00:00
|
|
|
|
;; This module is documented in the Guile Reference Manual.
|
|
|
|
|
|
;; Briefly, these are exported:
|
2001-05-06 09:26:16 +00:00
|
|
|
|
;; procedures: expect-select, expect-regexec
|
2001-04-28 19:03:42 +00:00
|
|
|
|
;; variables: expect-port, expect-timeout, expect-timeout-proc,
|
|
|
|
|
|
;; expect-eof-proc, expect-char-proc,
|
|
|
|
|
|
;; expect-strings-compile-flags, expect-strings-exec-flags,
|
2001-09-19 13:03:25 +00:00
|
|
|
|
;; macros: expect, expect-strings
|
2001-04-28 19:03:42 +00:00
|
|
|
|
|
|
|
|
|
|
;;; Code:
|
|
|
|
|
|
|
|
|
|
|
|
(define-module (ice-9 expect)
|
* lib.scm: Move module the system directives `export',
`export-syntax', `re-export' and `re-export-syntax' into the
`define-module' form. This is the recommended way of exporting
bindings.
* srfi-2.scm, srfi-4.scm, srfi-8.scm, srfi-9.scm, srfi-10.scm,
srfi-11.scm, srfi-14.scm, srfi-16.scm: Move module the system
directives `export', `export-syntax', `re-export' and
`re-export-syntax' into the `define-module' form. This is the
recommended way of exporting bindings.
* goops.scm, goops/active-slot.scm, goops/compile.scm,
goops/composite-slot.scm, goops/describe.scm, goops/dispatch.scm,
goops/old-define-method.scm, goops/save.scm, goops/util.scm: Move
module the system directives `export', `export-syntax',
`re-export' and `re-export-syntax' into the `define-module' form.
This is the recommended way of exporting bindings.
* slib.scm (array-indexes): New procedure.
(*features*): Extend. (Probably some of these options should be
set elsewhere.) (Thanks to Aubrey Jaffer.)
* and-let-star-compat.scm, and-let-star.scm, calling.scm,
channel.scm, common-list.scm, debug.scm, debugger.scm,
expect.scm, hcons.scm, lineio.scm, ls.scm, mapping.scm,
null.scm, optargs.scm, poe.scm, popen.scm, pretty-print.scm,
q.scm, r5rs.scm, rdelim.scm, regex.scm, runq.scm, safe-r5rs.scm,
safe.scm, session.scm, slib.scm, streams.scm, string-fun.scm,
syncase.scm, threads.scm: Move module the system directives
`export', `export-syntax', `re-export' and `re-export-syntax'
into the `define-module' form. This is the recommended way of
exporting bindings.
2001-10-21 09:49:19 +00:00
|
|
|
|
:use-module (ice-9 regex)
|
|
|
|
|
|
:export-syntax (expect expect-strings)
|
|
|
|
|
|
:export (expect-port expect-timeout expect-timeout-proc
|
|
|
|
|
|
expect-eof-proc expect-char-proc expect-strings-compile-flags
|
|
|
|
|
|
expect-strings-exec-flags expect-select expect-regexec))
|
1997-06-13 05:50:37 +00:00
|
|
|
|
|
1996-10-17 23:21:10 +00:00
|
|
|
|
;;; Expect: a macro for selecting actions based on what it reads from a port.
|
|
|
|
|
|
;;; The idea is from Don Libes' expect based on Tcl.
|
|
|
|
|
|
;;; This version by Gary Houston incorporating ideas from Aubrey Jaffer.
|
|
|
|
|
|
|
|
|
|
|
|
|
* lib.scm: Move module the system directives `export',
`export-syntax', `re-export' and `re-export-syntax' into the
`define-module' form. This is the recommended way of exporting
bindings.
* srfi-2.scm, srfi-4.scm, srfi-8.scm, srfi-9.scm, srfi-10.scm,
srfi-11.scm, srfi-14.scm, srfi-16.scm: Move module the system
directives `export', `export-syntax', `re-export' and
`re-export-syntax' into the `define-module' form. This is the
recommended way of exporting bindings.
* goops.scm, goops/active-slot.scm, goops/compile.scm,
goops/composite-slot.scm, goops/describe.scm, goops/dispatch.scm,
goops/old-define-method.scm, goops/save.scm, goops/util.scm: Move
module the system directives `export', `export-syntax',
`re-export' and `re-export-syntax' into the `define-module' form.
This is the recommended way of exporting bindings.
* slib.scm (array-indexes): New procedure.
(*features*): Extend. (Probably some of these options should be
set elsewhere.) (Thanks to Aubrey Jaffer.)
* and-let-star-compat.scm, and-let-star.scm, calling.scm,
channel.scm, common-list.scm, debug.scm, debugger.scm,
expect.scm, hcons.scm, lineio.scm, ls.scm, mapping.scm,
null.scm, optargs.scm, poe.scm, popen.scm, pretty-print.scm,
q.scm, r5rs.scm, rdelim.scm, regex.scm, runq.scm, safe-r5rs.scm,
safe.scm, session.scm, slib.scm, streams.scm, string-fun.scm,
syncase.scm, threads.scm: Move module the system directives
`export', `export-syntax', `re-export' and `re-export-syntax'
into the `define-module' form. This is the recommended way of
exporting bindings.
2001-10-21 09:49:19 +00:00
|
|
|
|
(define expect-port #f)
|
|
|
|
|
|
(define expect-timeout #f)
|
|
|
|
|
|
(define expect-timeout-proc #f)
|
|
|
|
|
|
(define expect-eof-proc #f)
|
|
|
|
|
|
(define expect-char-proc #f)
|
1996-10-17 23:21:10 +00:00
|
|
|
|
|
|
|
|
|
|
;;; expect: each test is a procedure which is applied to the accumulating
|
|
|
|
|
|
;;; string.
|
* lib.scm: Move module the system directives `export',
`export-syntax', `re-export' and `re-export-syntax' into the
`define-module' form. This is the recommended way of exporting
bindings.
* srfi-2.scm, srfi-4.scm, srfi-8.scm, srfi-9.scm, srfi-10.scm,
srfi-11.scm, srfi-14.scm, srfi-16.scm: Move module the system
directives `export', `export-syntax', `re-export' and
`re-export-syntax' into the `define-module' form. This is the
recommended way of exporting bindings.
* goops.scm, goops/active-slot.scm, goops/compile.scm,
goops/composite-slot.scm, goops/describe.scm, goops/dispatch.scm,
goops/old-define-method.scm, goops/save.scm, goops/util.scm: Move
module the system directives `export', `export-syntax',
`re-export' and `re-export-syntax' into the `define-module' form.
This is the recommended way of exporting bindings.
* slib.scm (array-indexes): New procedure.
(*features*): Extend. (Probably some of these options should be
set elsewhere.) (Thanks to Aubrey Jaffer.)
* and-let-star-compat.scm, and-let-star.scm, calling.scm,
channel.scm, common-list.scm, debug.scm, debugger.scm,
expect.scm, hcons.scm, lineio.scm, ls.scm, mapping.scm,
null.scm, optargs.scm, poe.scm, popen.scm, pretty-print.scm,
q.scm, r5rs.scm, rdelim.scm, regex.scm, runq.scm, safe-r5rs.scm,
safe.scm, session.scm, slib.scm, streams.scm, string-fun.scm,
syncase.scm, threads.scm: Move module the system directives
`export', `export-syntax', `re-export' and `re-export-syntax'
into the `define-module' form. This is the recommended way of
exporting bindings.
2001-10-21 09:49:19 +00:00
|
|
|
|
(defmacro expect clauses
|
2001-05-19 01:31:33 +00:00
|
|
|
|
(let ((s (gensym))
|
|
|
|
|
|
(c (gensym))
|
|
|
|
|
|
(port (gensym))
|
|
|
|
|
|
(timeout (gensym)))
|
1996-10-17 23:21:10 +00:00
|
|
|
|
`(let ((,s "")
|
|
|
|
|
|
(,port (or expect-port (current-input-port)))
|
1997-05-15 08:48:38 +00:00
|
|
|
|
;; when timeout occurs, in floating point seconds.
|
1996-10-17 23:21:10 +00:00
|
|
|
|
(,timeout (if expect-timeout
|
1997-05-15 08:48:38 +00:00
|
|
|
|
(let* ((secs-usecs (gettimeofday)))
|
|
|
|
|
|
(+ (car secs-usecs)
|
|
|
|
|
|
expect-timeout
|
|
|
|
|
|
(/ (cdr secs-usecs)
|
|
|
|
|
|
1000000))) ; one million.
|
1996-10-17 23:21:10 +00:00
|
|
|
|
#f)))
|
|
|
|
|
|
(let next-char ()
|
|
|
|
|
|
(if (and expect-timeout
|
2000-01-29 18:04:38 +00:00
|
|
|
|
(not (expect-select ,port ,timeout)))
|
1996-10-17 23:21:10 +00:00
|
|
|
|
(if expect-timeout-proc
|
|
|
|
|
|
(expect-timeout-proc ,s)
|
|
|
|
|
|
#f)
|
|
|
|
|
|
(let ((,c (read-char ,port)))
|
|
|
|
|
|
(if expect-char-proc
|
|
|
|
|
|
(expect-char-proc ,c))
|
1999-06-14 16:54:15 +00:00
|
|
|
|
(if (not (eof-object? ,c))
|
|
|
|
|
|
(set! ,s (string-append ,s (string ,c))))
|
|
|
|
|
|
(cond
|
2000-01-29 18:04:38 +00:00
|
|
|
|
;; this expands to clauses where the car invokes the
|
|
|
|
|
|
;; match proc and the cdr is the return value from expect
|
|
|
|
|
|
;; if the proc matched.
|
1999-06-14 16:54:15 +00:00
|
|
|
|
,@(let next-expr ((tests (map car clauses))
|
|
|
|
|
|
(exprs (map cdr clauses))
|
|
|
|
|
|
(body '()))
|
|
|
|
|
|
(cond
|
|
|
|
|
|
((null? tests)
|
|
|
|
|
|
(reverse body))
|
1996-10-17 23:21:10 +00:00
|
|
|
|
(else
|
1999-06-14 16:54:15 +00:00
|
|
|
|
(next-expr
|
|
|
|
|
|
(cdr tests)
|
|
|
|
|
|
(cdr exprs)
|
|
|
|
|
|
(cons
|
|
|
|
|
|
`((,(car tests) ,s (eof-object? ,c))
|
|
|
|
|
|
,@(cond ((null? (car exprs))
|
|
|
|
|
|
'())
|
|
|
|
|
|
((eq? (caar exprs) '=>)
|
|
|
|
|
|
(if (not (= (length (car exprs))
|
|
|
|
|
|
2))
|
|
|
|
|
|
(scm-error 'misc-error
|
|
|
|
|
|
"expect"
|
2000-01-11 18:52:25 +00:00
|
|
|
|
"bad recipient: ~S"
|
1999-06-14 16:54:15 +00:00
|
|
|
|
(list (car exprs))
|
|
|
|
|
|
#f)
|
|
|
|
|
|
`((apply ,(cadar exprs)
|
|
|
|
|
|
(,(car tests) ,s ,port)))))
|
2001-04-28 19:03:42 +00:00
|
|
|
|
(else
|
1999-06-14 16:54:15 +00:00
|
|
|
|
(car exprs))))
|
|
|
|
|
|
body)))))
|
|
|
|
|
|
;; if none of the clauses matched the current string.
|
|
|
|
|
|
(else (cond ((eof-object? ,c)
|
|
|
|
|
|
(if expect-eof-proc
|
|
|
|
|
|
(expect-eof-proc ,s)
|
|
|
|
|
|
#f))
|
1996-10-17 23:21:10 +00:00
|
|
|
|
(else
|
1999-06-14 16:54:15 +00:00
|
|
|
|
(next-char)))))))))))
|
1996-10-17 23:21:10 +00:00
|
|
|
|
|
1999-06-09 12:17:16 +00:00
|
|
|
|
|
* lib.scm: Move module the system directives `export',
`export-syntax', `re-export' and `re-export-syntax' into the
`define-module' form. This is the recommended way of exporting
bindings.
* srfi-2.scm, srfi-4.scm, srfi-8.scm, srfi-9.scm, srfi-10.scm,
srfi-11.scm, srfi-14.scm, srfi-16.scm: Move module the system
directives `export', `export-syntax', `re-export' and
`re-export-syntax' into the `define-module' form. This is the
recommended way of exporting bindings.
* goops.scm, goops/active-slot.scm, goops/compile.scm,
goops/composite-slot.scm, goops/describe.scm, goops/dispatch.scm,
goops/old-define-method.scm, goops/save.scm, goops/util.scm: Move
module the system directives `export', `export-syntax',
`re-export' and `re-export-syntax' into the `define-module' form.
This is the recommended way of exporting bindings.
* slib.scm (array-indexes): New procedure.
(*features*): Extend. (Probably some of these options should be
set elsewhere.) (Thanks to Aubrey Jaffer.)
* and-let-star-compat.scm, and-let-star.scm, calling.scm,
channel.scm, common-list.scm, debug.scm, debugger.scm,
expect.scm, hcons.scm, lineio.scm, ls.scm, mapping.scm,
null.scm, optargs.scm, poe.scm, popen.scm, pretty-print.scm,
q.scm, r5rs.scm, rdelim.scm, regex.scm, runq.scm, safe-r5rs.scm,
safe.scm, session.scm, slib.scm, streams.scm, string-fun.scm,
syncase.scm, threads.scm: Move module the system directives
`export', `export-syntax', `re-export' and `re-export-syntax'
into the `define-module' form. This is the recommended way of
exporting bindings.
2001-10-21 09:49:19 +00:00
|
|
|
|
(define expect-strings-compile-flags regexp/newline)
|
|
|
|
|
|
(define expect-strings-exec-flags regexp/noteol)
|
1999-06-09 12:17:16 +00:00
|
|
|
|
|
1996-10-17 23:21:10 +00:00
|
|
|
|
;;; the regexec front-end to expect:
|
|
|
|
|
|
;;; each test must evaluate to a regular expression.
|
* lib.scm: Move module the system directives `export',
`export-syntax', `re-export' and `re-export-syntax' into the
`define-module' form. This is the recommended way of exporting
bindings.
* srfi-2.scm, srfi-4.scm, srfi-8.scm, srfi-9.scm, srfi-10.scm,
srfi-11.scm, srfi-14.scm, srfi-16.scm: Move module the system
directives `export', `export-syntax', `re-export' and
`re-export-syntax' into the `define-module' form. This is the
recommended way of exporting bindings.
* goops.scm, goops/active-slot.scm, goops/compile.scm,
goops/composite-slot.scm, goops/describe.scm, goops/dispatch.scm,
goops/old-define-method.scm, goops/save.scm, goops/util.scm: Move
module the system directives `export', `export-syntax',
`re-export' and `re-export-syntax' into the `define-module' form.
This is the recommended way of exporting bindings.
* slib.scm (array-indexes): New procedure.
(*features*): Extend. (Probably some of these options should be
set elsewhere.) (Thanks to Aubrey Jaffer.)
* and-let-star-compat.scm, and-let-star.scm, calling.scm,
channel.scm, common-list.scm, debug.scm, debugger.scm,
expect.scm, hcons.scm, lineio.scm, ls.scm, mapping.scm,
null.scm, optargs.scm, poe.scm, popen.scm, pretty-print.scm,
q.scm, r5rs.scm, rdelim.scm, regex.scm, runq.scm, safe-r5rs.scm,
safe.scm, session.scm, slib.scm, streams.scm, string-fun.scm,
syncase.scm, threads.scm: Move module the system directives
`export', `export-syntax', `re-export' and `re-export-syntax'
into the `define-module' form. This is the recommended way of
exporting bindings.
2001-10-21 09:49:19 +00:00
|
|
|
|
(defmacro expect-strings clauses
|
1996-10-17 23:21:10 +00:00
|
|
|
|
`(let ,@(let next-test ((tests (map car clauses))
|
|
|
|
|
|
(exprs (map cdr clauses))
|
1997-11-09 23:36:17 +00:00
|
|
|
|
(defs '())
|
|
|
|
|
|
(body '()))
|
1996-10-17 23:21:10 +00:00
|
|
|
|
(cond ((null? tests)
|
|
|
|
|
|
(list (reverse defs) `(expect ,@(reverse body))))
|
|
|
|
|
|
(else
|
2001-05-19 01:31:33 +00:00
|
|
|
|
(let ((rxname (gensym)))
|
1996-10-17 23:21:10 +00:00
|
|
|
|
(next-test (cdr tests)
|
|
|
|
|
|
(cdr exprs)
|
1999-06-09 12:17:16 +00:00
|
|
|
|
(cons `(,rxname (make-regexp
|
|
|
|
|
|
,(car tests)
|
|
|
|
|
|
expect-strings-compile-flags))
|
1996-10-17 23:21:10 +00:00
|
|
|
|
defs)
|
1999-06-14 16:54:15 +00:00
|
|
|
|
(cons `((lambda (s eof?)
|
|
|
|
|
|
(expect-regexec ,rxname s eof?))
|
1996-10-17 23:21:10 +00:00
|
|
|
|
,@(car exprs))
|
|
|
|
|
|
body))))))))
|
|
|
|
|
|
|
2000-01-29 18:04:38 +00:00
|
|
|
|
;;; simplified select: returns #t if input is waiting or #f if timed out or
|
|
|
|
|
|
;;; select was interrupted by a signal.
|
1997-05-15 08:48:38 +00:00
|
|
|
|
;;; timeout is an absolute time in floating point seconds.
|
* lib.scm: Move module the system directives `export',
`export-syntax', `re-export' and `re-export-syntax' into the
`define-module' form. This is the recommended way of exporting
bindings.
* srfi-2.scm, srfi-4.scm, srfi-8.scm, srfi-9.scm, srfi-10.scm,
srfi-11.scm, srfi-14.scm, srfi-16.scm: Move module the system
directives `export', `export-syntax', `re-export' and
`re-export-syntax' into the `define-module' form. This is the
recommended way of exporting bindings.
* goops.scm, goops/active-slot.scm, goops/compile.scm,
goops/composite-slot.scm, goops/describe.scm, goops/dispatch.scm,
goops/old-define-method.scm, goops/save.scm, goops/util.scm: Move
module the system directives `export', `export-syntax',
`re-export' and `re-export-syntax' into the `define-module' form.
This is the recommended way of exporting bindings.
* slib.scm (array-indexes): New procedure.
(*features*): Extend. (Probably some of these options should be
set elsewhere.) (Thanks to Aubrey Jaffer.)
* and-let-star-compat.scm, and-let-star.scm, calling.scm,
channel.scm, common-list.scm, debug.scm, debugger.scm,
expect.scm, hcons.scm, lineio.scm, ls.scm, mapping.scm,
null.scm, optargs.scm, poe.scm, popen.scm, pretty-print.scm,
q.scm, r5rs.scm, rdelim.scm, regex.scm, runq.scm, safe-r5rs.scm,
safe.scm, session.scm, slib.scm, streams.scm, string-fun.scm,
syncase.scm, threads.scm: Move module the system directives
`export', `export-syntax', `re-export' and `re-export-syntax'
into the `define-module' form. This is the recommended way of
exporting bindings.
2001-10-21 09:49:19 +00:00
|
|
|
|
(define (expect-select port timeout)
|
1997-05-15 08:48:38 +00:00
|
|
|
|
(let* ((secs-usecs (gettimeofday))
|
2001-04-28 19:03:42 +00:00
|
|
|
|
(relative (- timeout
|
1997-05-15 08:48:38 +00:00
|
|
|
|
(car secs-usecs)
|
|
|
|
|
|
(/ (cdr secs-usecs)
|
|
|
|
|
|
1000000)))) ; one million.
|
1996-10-17 23:21:10 +00:00
|
|
|
|
(and (> relative 0)
|
1997-11-09 23:36:17 +00:00
|
|
|
|
(pair? (car (select (list port) '() '()
|
1997-05-15 08:48:38 +00:00
|
|
|
|
relative))))))
|
1997-11-09 23:36:17 +00:00
|
|
|
|
|
1999-06-14 16:54:15 +00:00
|
|
|
|
;;; match a string against a regexp, returning a list of strings (required
|
|
|
|
|
|
;;; by the => syntax) or #f. called once each time a character is added
|
|
|
|
|
|
;;; to s (eof? will be #f), and once when eof is reached (with eof? #t).
|
* lib.scm: Move module the system directives `export',
`export-syntax', `re-export' and `re-export-syntax' into the
`define-module' form. This is the recommended way of exporting
bindings.
* srfi-2.scm, srfi-4.scm, srfi-8.scm, srfi-9.scm, srfi-10.scm,
srfi-11.scm, srfi-14.scm, srfi-16.scm: Move module the system
directives `export', `export-syntax', `re-export' and
`re-export-syntax' into the `define-module' form. This is the
recommended way of exporting bindings.
* goops.scm, goops/active-slot.scm, goops/compile.scm,
goops/composite-slot.scm, goops/describe.scm, goops/dispatch.scm,
goops/old-define-method.scm, goops/save.scm, goops/util.scm: Move
module the system directives `export', `export-syntax',
`re-export' and `re-export-syntax' into the `define-module' form.
This is the recommended way of exporting bindings.
* slib.scm (array-indexes): New procedure.
(*features*): Extend. (Probably some of these options should be
set elsewhere.) (Thanks to Aubrey Jaffer.)
* and-let-star-compat.scm, and-let-star.scm, calling.scm,
channel.scm, common-list.scm, debug.scm, debugger.scm,
expect.scm, hcons.scm, lineio.scm, ls.scm, mapping.scm,
null.scm, optargs.scm, poe.scm, popen.scm, pretty-print.scm,
q.scm, r5rs.scm, rdelim.scm, regex.scm, runq.scm, safe-r5rs.scm,
safe.scm, session.scm, slib.scm, streams.scm, string-fun.scm,
syncase.scm, threads.scm: Move module the system directives
`export', `export-syntax', `re-export' and `re-export-syntax'
into the `define-module' form. This is the recommended way of
exporting bindings.
2001-10-21 09:49:19 +00:00
|
|
|
|
(define (expect-regexec rx s eof?)
|
1999-06-09 12:54:59 +00:00
|
|
|
|
;; if expect-strings-exec-flags contains regexp/noteol,
|
1999-06-14 16:54:15 +00:00
|
|
|
|
;; remove it for the eof test.
|
|
|
|
|
|
(let* ((flags (if (and eof?
|
|
|
|
|
|
(logand expect-strings-exec-flags regexp/noteol))
|
1999-06-09 12:54:59 +00:00
|
|
|
|
(logxor expect-strings-exec-flags regexp/noteol)
|
|
|
|
|
|
expect-strings-exec-flags))
|
1999-06-09 12:17:16 +00:00
|
|
|
|
(match (regexp-exec rx s 0 flags)))
|
1997-11-09 23:36:17 +00:00
|
|
|
|
(if match
|
|
|
|
|
|
(do ((i (- (match:count match) 1) (- i 1))
|
|
|
|
|
|
(result '() (cons (match:substring match i) result)))
|
|
|
|
|
|
((< i 0) result))
|
|
|
|
|
|
#f)))
|
1999-06-09 12:54:59 +00:00
|
|
|
|
|
2001-04-28 19:03:42 +00:00
|
|
|
|
;;; expect.scm ends here
|