Question about prescheme tests???
Seth Burleigh <[email protected]> Mon, 01 Mar 2010 09:01:49 +0100
| Newsgroups | gmane.lisp.scheme.scheme48 |
|---|---|
| Message-ID | <[email protected]> |
Ive been attempting to run the tests for prescheme
under /ps-compiler/prescheme/test.
Basically, Im having trouble including any other structure other than
prescheme. First I load prescheme by starting scheme48 in the
ps-compiler directory and typing in
,config ,load ../scheme/platform-interfaces.scm
,config ,load ../scheme/rts-packages-32.scm
,config ,load ../scheme/prescheme/interface.scm
,config ,load ../scheme/prescheme/package-defs.scm
,exec ,load load-ps-compiler.scm
,exec
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
(define-structure hello (export)
(open prescheme comp-util)
(begin
(define-local-syntax (define-primitive id nargs)
(let ((args (reverse (list-tail '(z y x) (- '3 nargs)))))
`(define (,id . ,args)
(call-primitively ,id . ,args))))
))
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")))
I get the error
warning: undefined variables [print-undefined-names]
#{package 348 config}
comp-util
assertion-violation: undefined variable [global]
comp-util
config
So how am I supposed to go about running tests which involved importing
stuff from other packages other than prescheme??