chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] testeez and define-syntax


From: felix winkelmann
Subject: Re: [Chicken-users] testeez and define-syntax
Date: Wed, 25 Jan 2006 20:06:18 +0100

On 1/25/06, Joel Reymont <address@hidden> wrote:
> I must be doing something clearly stupid but I cannot compile or load
> the following:
>
>[...]
>
> I get either
>
> Syntax error: define-syntax
> "highlevel macros are not supported"
>
> or
>
> Error: (define-syntax) during expansion of (define-syntax ...) -
> highlevel macros are not supported
>

You have to do a `(require-extension syntax-case)' before you do
the same for testeez:

#;1> (use syntax-case testeez)
; loading /usr/lib/chicken/syntax-case.so ...
; loading /usr/lib/chicken/syntax-case-chicken-macros.scm ...
; loading /usr/lib/chicken/testeez.scm ...
; loading /usr/lib/chicken/testeez-support.so ...
#;2> (define-syntax %foo:testeez
       (syntax-rules ()
         ((_ X ...)
          ;; Note: Comment-out exactly one of the following two lines.
          ;; (error "Tests disabled.")
          (testeez X ...)
          )))

#;3> (%foo:testeez "yo!")

;;; BEGIN "yo!" TESTS

;;; END "yo!" TESTS: PASSED
;;;     (Total: 0  Passed: 0  Failed: 0)
#;4>


cheers,
felix




reply via email to

[Prev in Thread] Current Thread [Next in Thread]