[plt-scheme] Generate fresh variables in REDEX metafunctions?

From: Yu,Gang (wuhanyugang at gmail.com)
Date: Fri Mar 14 04:45:45 EDT 2008

Hi, all:

     It seems the following does not work

=
=
=
=
=
=
=
=
=
=
=
========================================================================
(define-metafunction refT
     basic-grammar
     [(((T_4 x_4) ... (ptype_1 x_1) (T_2 x_2) ...) (x_1 x_3 ...))
      (CH (((ptype_1 &) x_1 boxed_1) (refT (((T_4 x_4) ... (ptype_1  
x_1) (T_2 x_2) ...) (x_3 ...)))))
      (side-condition (term (fresh boxed_1)))]
     [(((T_4 x_4) ... (T_1 x_1) (T_2 x_2) ...) (x_1 x_3 ...))
      (CH ((T_1 x_1 x_1) (refT ((T_4 x_4) ... (T_1 x_1) ((T_2  
x_2) ...) (x_3 ...)))))
      ]
     [(((T_1 x_1) ...) ()) ()])

= 
= 
= 
= 
= 
= 
= 
= 
= 
= 
= 
========================================================================

I just want to generate the fresh variables like  
boxed_1 ,boxed_2 ..... in the meta-function not in the reduction rules?

How can I ? or the redex version is too old?

thanks



Gang






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20080314/50e40db8/attachment.html>

Posted on the users mailing list.