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

From: J. Ian Johnson (ianj at ccs.neu.edu)
Date: Sun Jul 20 18:22:42 EDT 2014

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.