[racket] [scribble] rendering syntax

From: Ryan Culpepper (ryanc at ccs.neu.edu)
Date: Wed Jun 9 11:43:45 EDT 2010

Sam Tobin-Hochstadt wrote:
> On Tue, Jun 8, 2010 at 11:27 PM, Eric Tanter <etanter at dcc.uchile.cl> wrote:
>> Yes, Carl got my point right. And yes, that's like showing square brackets in the stepper ;)
> 
> Right now, the two cases are slightly asymmetric, since there's a
> syntax property indicating the use of [] or {}, but none indicating
> the use of ', #', #`, etc.  Similarly there's no syntax property
> indicating the difference between (a b) and (a . (b)) (something I
> once tried to fix, but gave up on).

The macro stepper recognizes distinguishes #'_ from (syntax _) by 
checking the source location of the 'syntax' identifier. If it's the 
same as the whole form, it was produced by the reader macro.

Ryan


Posted on the users mailing list.