[racket] How to keep comments when reading a file?

From: John Clements (clements at brinckerhoff.org)
Date: Mon Jan 10 20:51:49 EST 2011

On Jan 10, 2011, at 10:51 AM, Todd O'Bryan wrote:

> Thanks for the pointer. I had hoped to avoid making two passes with
> different readers.
> Can anyone give me a hint? It looks like the pieces are there, but
> there are no examples in the documentation that explain how to get at
> the pieces I need and how to plug them in.

It looks to me like you want to create an editor% and load the file into it[*], then examine it using the editor's methods. No?

Apologies if I'm misunderstanding your problem.

John Clements

[*] IIRC, this method is called 'load-file'.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4669 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20110110/0ed577e1/attachment.p7s>

Posted on the users mailing list.