Re: Question about prescheme tests???

Michael Sperber <[email protected]> Mon, 01 Mar 2010 09:16:53 +0100
Newsgroups gmane.lisp.scheme.scheme48
Message-ID <[email protected]>
Seth Burleigh <[email protected]> writes:

>  Then I attempt to use define-local-syntax (just like in the  coerce.scm
> test under /prescheme/test/) and put the code into the file hello.scm in
> the directory ps-compiler [...]
> I attempt to include comp-util because thats where i located
> define-local-syntax, which isn't exported by prescheme. However, once i
> attempt to compile by 
>
>
> (in 'prescheme-compiler
>     '(run (prescheme-compiler
>            '(hello)
> 	   '("hello.scm")
> 	   'fact
> 	   "hello.c")))

The PreScheme program sees only structures that are defined through
loading the files in the call to `prescheme-compiler' (plus a fixed set
of structures such as `prescheme' itself).  `comp-util' is a structure
intended for use by the PreScheme compiler, not PreScheme itself.  (It
opens `scheme', not `prescheme'.)  However, I believe you could easily
extract the definition of `define-local-syntax' (which doesn't depend on
anything at run time) into its own structure, put the structure
definition in a file `local-syntax.scm', and include this file in the
call to `prescheme-compiler'.

-- 
Cheers =8-} Mike
Friede, Völkerverständigung und überhaupt blabla