Welcome to the CHICKEN Scheme pasting service

begin-for-syntax added by r1b on Sun Jul 7 21:05:48 2019

(module test-extras (test-error*)
  (import (chicken base)
          (chicken condition)
          (chicken syntax)
          scheme
          test)

  (begin-for-syntax
    (define-syntax transform-condition
      (syntax-rules ()
        ((_ ?kind) (?kind))
        ((_ (?kind ?properties ...))
         (?kind ?properties ...)))))

  ; Based on the commented-out `test-error*` in the `test` egg
  (define-syntax test-error*
    (syntax-rules ()
      ((_ ?msg ((?kind ?properties ...) ...) ?expr)
       '(?msg ((?kind ?properties ...) ...) ?expr))
      ((_ ?msg ?condition ... ?expr)
       (test-error* ?msg ((transform-condition ?condition) ...) ?expr)))))

Your annotation:

Enter a new annotation:

Your nick:
The title of your paste:
Your paste (mandatory) :
Which backend storage does qwiki use?
Visually impaired? Let me spell it for you (wav file) download WAV