Re: a ,source command, may be?
Ivan Shmakov <ivan <at> theory.asu.ru>
2007-12-03 17:01:55 GMT
>>>>> Michael Sperber <sperber <at> deinprogramm.de> writes:
>> May I suggest a `,source' command to read and execute Scheme48
>> commands from a given file as if they were typed in interactively?
> I believe the thing to do is to make the exec language available as a
> script interpreter. (The exec language is equivalent to the REPL
> language, but without the , syntax.)
The command processor is primarily useful because it gives a way
to switch between the Scheme and the Scheme48 configuration
language, like:
,config
(define-structure foo (export bar) (open scheme))
,user
Sometimes, it may be useful to switch to other environments as
well:
,in foo
(define (bar) 1)
,user
The exec language, although makes it possible to do the same,
seems to make this somewhat more cumbersome:
(config '(run (define-structure foo (export bar) (open scheme))))
(in 'foo '(run (define (bar) 1)))
(Continue reading)