Re: [racket-dev] syntax parsing: must be a nice pattern-y way to do this

2012-09-17 Thread John Clements
On Sep 17, 2012, at 11:27 AM, Ryan Culpepper wrote: > On 09/17/2012 02:20 PM, John Clements wrote: >> >> On Sep 16, 2012, at 5:48 PM, Ryan Culpepper wrote: >> >>> See 'define-template-metafunction' in syntax/parse/experimental/template. >>> Remember to change the relevant occurrences of 'synta

Re: [racket-dev] syntax parsing: must be a nice pattern-y way to do this

2012-09-17 Thread Ryan Culpepper
On 09/17/2012 02:20 PM, John Clements wrote: On Sep 16, 2012, at 5:48 PM, Ryan Culpepper wrote: See 'define-template-metafunction' in syntax/parse/experimental/template. Remember to change the relevant occurrences of 'syntax' to 'template'. Neat! I'm guessing, though, that I probably shoul

Re: [racket-dev] syntax parsing: must be a nice pattern-y way to do this

2012-09-17 Thread John Clements
On Sep 16, 2012, at 5:48 PM, Ryan Culpepper wrote: > See 'define-template-metafunction' in syntax/parse/experimental/template. > Remember to change the relevant occurrences of 'syntax' to 'template'. Neat! I'm guessing, though, that I probably shouldn't release planet packages that depend on

Re: [racket-dev] syntax parsing: must be a nice pattern-y way to do this

2012-09-16 Thread Ryan Culpepper
See 'define-template-metafunction' in syntax/parse/experimental/template. Remember to change the relevant occurrences of 'syntax' to 'template'. Ryan On 09/16/2012 08:31 PM, John Clements wrote: I want to apply a transformation to a nested pattern element. To start with, suppose I have a (ki

[racket-dev] syntax parsing: must be a nice pattern-y way to do this

2012-09-16 Thread John Clements
I want to apply a transformation to a nested pattern element. To start with, suppose I have a (kind of useless) with-handlers that looks like this: (with-syntax ([((arg ...) ...) #`((clause.input ...) ...)]) et-cetera) That is, I've basically just renamed "clause.inpu