There are several ways to do this, and they each have their uses depending on
what you want to do with it.
One is with a syntax-class:
#lang racket
(require syntax/parse)
(define-splicing-syntax-class my-keyword
[pattern (~seq #:my-keyword) #:attr kw #t]
[pattern (~seq) #:attr kw #f])
(syntax
Hi everyone,
my question looks like something straightforward, but I have been
reading through the documentation for a while without finding anything
clearly helpful.
I want to define some syntax with an optional keyword but no arguments
behind it. Something like #:mutable in struct. The pattern
Thanks to Matthias, John, and Greg for their suggestions! I explored
the raco documentation in more detail and I will try to come up with
some good solution. My main goal is to have convenient modes of operation:
1) Developers (currently me) should be able to run easily the
subset of tests that
Thanks.
That clears it up.
Jos Koot.
-Original Message-
From: David T. Pierson [mailto:d...@mindstory.com]
Sent: viernes, 17 de abril de 2015 6:11
To: Jos Koot
Cc: racket-users@googlegroups.com
Subject: Re: [racket-users] receiving a copy of my own mails to
racket-users@googlegroups.com
4 matches
Mail list logo