[racket] Metaprogramming with scheme

From: Noel Welsh (noelwelsh at gmail.com)
Date: Mon Jun 21 06:31:53 EDT 2010

On Sat, Jun 19, 2010 at 10:00 AM, Valeriya Pudova
<valery at digitalchile.net> wrote:
> The easiest way to do this task can be: Just evaluate the file "a.ss" in the
> name space
> where are defined methods "define-fsm", "define-state", "on-event" and "go"
>
> But this case each of those methods will not have the syntax object of the
> evaluated expression.
> And in case if it will find and error it could not message about error's
> location.

Have you tried eval-syntax, instead of eval? I think that will keep
location information.

HTH,
N.


Posted on the users mailing list.