[plt-scheme] read-syntax and comments

From: Robert Nikander (nikander at nc.rr.com)
Date: Tue May 8 15:09:03 EDT 2007

Noel Welsh wrote:
> There is already code to do what you want:
> 
> http://scheme.dk/paste/

Thanks!

I'm still interested how to read comments, if you happen to know the 
answer.  I have other ideas besides the code->html.

Given what I know now, I'd call read-syntax, and use the 'position' and 
'span' properties of the syntax objects to go back over the input 
looking in the "holes" for comments.  A little hacky maybe, but it at 
least I'd reuse the reader.

Rob



Posted on the users mailing list.