Re: [racket] Racket macros that run on files

2012-11-14 Thread Patrick Mahoney
Thank you for the responses Vincent and Neil. Neil, thanks for the information here-I will meditate on this and how to utilize it. -Patrick On 4 November 2012 22:34, Neil Van Dyke wrote: > So you would like to be able to do things like rename an identifier, > change "(if X Y)" to "(and X Y)",

Re: [racket] Racket macros that run on files

2012-11-04 Thread Neil Van Dyke
So you would like to be able to do things like rename an identifier, change "(if X Y)" to "(and X Y)", change "(if (not X) Y Z)" to "(if X Z Y)", etc.? If so, I would probably start by letting user specify transformation rules like for "syntax-case" or "syntax-parse", do "read-syntax", do som

Re: [racket] Racket macros that run on files

2012-11-04 Thread Vincent St-Amour
Neil Van Dyke wrote a PLaneT package for programmatic file editing. http://planet.racket-lang.org/display.ss?package=progedit.plt&owner=neil Is this what you're looking for? Vincent At Thu, 1 Nov 2012 23:49:41 -0400, Patrick Mahoney wrote: > > [1 ] > [1.1 ] > Hello all, > > Is there a

[racket] Racket macros that run on files

2012-11-01 Thread Patrick Mahoney
Hello all, Is there a package out there wherein a user can specify a syntax transformer, and the macro expansions are used to replace invocations of the syntax transformer in the source syntax, within the source file itself. I guess I'm envisioning a sort of syntax aware find and replace. Thanks,