[racket-users] is there a way to syntax-local-lift- something into a define-syntax?

2016-10-08 Thread Stephen Chang
I'm trying to write a provide transformer that wraps a provided identifier and then provides that instead. For example, #lang racket (require (for-syntax syntax/parse racket/provide-transform)) (define-syntax wrapped-out (make-provide-pre-transformer (lambda (stx modes) (syntax-parse

[racket-users] holiday season project idea: crobots-like game

2016-10-08 Thread Neil Van Dyke
The November through January school break(s), in the US and elsewhere, are a good time for students to get in some significant self-directed programming projects. One fun idea, which might be especially interesting to do in Racket in particular, is to implement a game inspired by the

Re: [racket-users] Constructing unicode surrogates

2016-10-08 Thread Jens Axel Søgaard
2016-10-08 20:00 GMT+02:00 Ryan Culpepper : > Does one of the `string-normalize-*` functions do what you want? > No. I am basically implementing the part of the reader that lexes string literals. I want to allow full Racket syntax in the string literals in my infix package.

Re: [racket-users] Constructing unicode surrogates

2016-10-08 Thread Jens Axel Søgaard
Thanks, I can work with that. /Jens Axel 2016-10-08 19:44 GMT+02:00 Jon Zeppieri : > > > On Sat, Oct 8, 2016 at 1:06 PM, Jens Axel Søgaard > wrote: > >> Hi All, >> >> The following interaction shows how the reader can be used to construct a >>

Re: [racket-users] Constructing unicode surrogates

2016-10-08 Thread Ryan Culpepper
Does one of the `string-normalize-*` functions do what you want? Ryan On 10/08/2016 01:06 PM, Jens Axel Søgaard wrote: Hi All, The following interaction shows how the reader can be used to construct a surrogate character: > (string-ref "\ud800\udc00" 0) #\ Given the two

Re: [racket-users] Constructing unicode surrogates

2016-10-08 Thread Jon Zeppieri
On Sat, Oct 8, 2016 at 1:06 PM, Jens Axel Søgaard wrote: > Hi All, > > The following interaction shows how the reader can be used to construct a > surrogate character: > > > (string-ref "\ud800\udc00" 0) > #\ > > Given the two hexadecimal numbers d800 and dc00 how

[racket-users] Constructing unicode surrogates

2016-10-08 Thread Jens Axel Søgaard
Hi All, The following interaction shows how the reader can be used to construct a surrogate character: > (string-ref "\ud800\udc00" 0) #\ Given the two hexadecimal numbers d800 and dc00 how do I construct the surrogate character directly? /Jens Axel -- You received this message