[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Interpreter tutorial error
From: |
Mario Domenech Goulart |
Subject: |
Re: Interpreter tutorial error |
Date: |
Sun, 18 Jul 2021 18:02:02 +0200 |
Hi,
On Sun, 18 Jul 2021 17:30:14 +0200 (CEST) ammkrn--- via
<chicken-users@nongnu.org> wrote:
> I'm reading the Chicken Scheme manual's section on using the
> interpreter. The first code example, under "Writing Sheme Scripts"
> doesn't seem to work with csi Version 5.2.0 (rev 317468e4)
> macosx-unix-clang-x86-64 [ 64bit dload ptables ].
>
> When I follow the instructions, I get the error below. If someone
> could let me know what I'm doing wrong, I would appreciate it:
>
> Error: unbound variable: with-input-from-string
>
> Call history:
>
> <eval> (##sys#load-library (##core#quote library))
> <eval> (##sys#load-library (##core#quote expand))
> <syntax> (import (chicken process-context))
> <syntax> (##core#begin (##core#require library chicken.process-context#))
> <syntax> (##core#require library chicken.process-context#)
> <syntax> (##sys#load-library (##core#quote library))
> <syntax> (##core#quote library)
> <eval> (##sys#load-library (##core#quote library))
> <syntax> (print (eval (with-input-from-string (car
> (command-line-arguments)) read)))
> <syntax> (eval (with-input-from-string (car (command-line-arguments)) read))
> <syntax> (with-input-from-string (car (command-line-arguments)) read)
> <syntax> (car (command-line-arguments))
> <syntax> (command-line-arguments)
> <eval> (print (eval (with-input-from-string (car (command-line-arguments))
> read)))
> <eval> (eval (with-input-from-string (car (command-line-arguments)) read))
> <eval> (with-input-from-string (car (command-line-arguments)) read) <--
Thanks for reporting that. The manual was missing `(import (chicken port))'
in those examples. I've fixed them.
All the best.
Mario
--
http://parenteses.org/mario