I gave this a try and it appears to break my parse-to-tree function. Thanks 
for the warning though. Once I get this working it will be worth going back 
to this.

Thanks,
Jonathan

On Sunday, January 27, 2019 at 5:03:17 PM UTC-5, Jens Axel Søgaard wrote:
>
>
>
> Den søn. 27. jan. 2019 kl. 22.06 skrev Jonathan Simpson <jjsi...@gmail.com 
> <javascript:>>:
>
>> I'm having macro troubles with a DSL I'm writing. I have a macro that 
>> looks something like this:
>>
>> (define-syntax (query stx)
>>   (let ([lines (cdr (syntax->datum stx))])
>>     (define lines-syntax-tree (parse-to-tree lines))
>>     (datum->syntax stx lines-syntax-tree)))
>>
>
> You are throwing away all location informations in the call 
> `(syntax->datum stx)`.
> Consider using `(syntax->list stx)` instead.
>
> /Jens Axel
>
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to