Re: [racket-users] [Racket Users] Macros and literals question

2018-09-16 Thread Matthew Butterick
> On Sep 16, 2018, at 2:13 PM, Kevin Forchione > wrote: > > Thanks! That’s just what I wanted. Is there a way in Racket to determine if a > quoted symbol has an associated procedure? #lang racket (require rackunit) (define-syntax (bound-to-proc? stx)

[racket-users] specialized languages

2018-09-16 Thread Hendrik Boom
I'm looking for an introduction to the tools for making Racket into a specualized language. I know how to write compilers already. I've done a few for significant languages. I'm looking for how to use the specialised tools available in Racket. -- hendrik -- You received this message

Re: [racket-users] [Racket Users] Macros and literals question

2018-09-16 Thread Kevin Forchione
> On Sep 15, 2018, at 7:27 PM, Philip McGrath wrote: > > Sure. For example: > > #lang racket > > (require syntax/parse/define > rackunit) > > (define-syntax-parser foo > [(_ arg:id) >#''arg] > [(_ arg:expr) >#'arg]) > > (check-eqv? (foo 10) 10) > (check-eq? (foo hello)