[plt-dev] macro error messages

From: Jon Rafkind (rafkind at cs.utah.edu)
Date: Fri Mar 26 17:55:01 EDT 2010

Can this error message

   illegal use of syntax

be changed to

   illegal application of a transformer. transformers must be functions 
that accept one argument.

To reproduce this error use this code:

(define-syntax (foo a b c) #'1)

There is only one change to be made in eval.c line ~6284

Also I would like to change this error

   identifier used out of context

But I'm not exactly sure what to change it to.

Reproduce it with:

(define-syntax (foo stx)
   (let ([x 1])
(foo 2)

compile: identifier used out of context in: x

Posted on the dev mailing list.