I think you probably have to recur when it is a pair, as the
properties can get cons'd together multiple times.
On Sun, May 13, 2012 at 2:57 PM, Jens Axel Søgaard
wrote:
> 2012/5/13 Danny Yoo :
>> Does this apply?
>> http://lists.racket-lang.org/dev/archive/2012-March/009205.html
>
> Yes!
>
> Th
A few minutes ago, Danny Yoo wrote:
> Does this apply? http://lists.racket-lang.org/dev/archive/2012-March/
> 009205.html
Looks like it -- I change `curly?' to
(define-for-syntax (curly? stx)
(eprintf ">>> ~s -> ~s\n" stx (syntax-property stx 'paren-shape))
(eq? (syntax-property stx 'p
2012/5/13 Danny Yoo :
> Does this apply?
> http://lists.racket-lang.org/dev/archive/2012-March/009205.html
Yes!
The test for curliness must take the (cons orig new)
new possibility into account, and then it just works.
Thanks.
/Jens Axel
(define-for-syntax (curly? stx)
(let ([p (syntax-pr
Does this apply?
http://lists.racket-lang.org/dev/archive/2012-March/009205.html
On Sunday, May 13, 2012, Jens Axel Søgaard wrote:
> Hi All,
>
> I am playing around with the paren-shape syntax property
> in order to use {} for polynomials.
>
> The case {+ p q r ...} is causing me problems.
>
> I
Hi All,
I am playing around with the paren-shape syntax property
in order to use {} for polynomials.
The case {+ p q r ...} is causing me problems.
I have reduced the problem to the example below.
I'd like {+ 2 3 5} to expand to (* (* 2 3) 5) and thus evaluate to 30.
However as is {+ 2 3 5} exp
5 matches
Mail list logo