[racket] Is there anything like a "~seq-no-order" pattern for syntax/parse ?

From: Alexander D. Knauth (alexander at knauth.org)
Date: Sun Jul 20 18:46:07 EDT 2014

Thanks

And actually I wrote an experimental syntax-parse branch that has support for pattern-expanders.  It’s not completely working yet though.  

On Jul 20, 2014, at 6:22 PM, J. Ian Johnson <ianj at ccs.neu.edu> wrote:

> If you don't want to allow ellipses, this will work:
> (~seq-no-order _pats ...) == (~seq (~or (~once _pats) ...))
> 
> Here _pats and ... are meta, not part of the syntax-parse syntax.
> 
> If you do want ellipses, then you'll have to do some parsing yourself to determine which patterns shouldn't be wrapped in ~once. However, you have to use someone's experimental syntax-parse branch that has support for "pattern expanders."
> -Ian
> ----- Original Message -----
> From: "Alexander D. Knauth" <alexander at knauth.org>
> To: "racket users list" <users at racket-lang.org>
> Sent: Sunday, July 20, 2014 5:23:42 PM GMT -05:00 US/Canada Eastern
> Subject: [racket] Is there anything like a "~seq-no-order" pattern for syntax/parse ?
> 
> Is there anything like a "~seq-no-order" pattern for syntax/parse ?
> 
> ____________________
>  Racket Users list:
>  http://lists.racket-lang.org/users



Posted on the users mailing list.