Added ~no-order wrapper

This commit is contained in:
Georges Dupéron 2016-08-27 01:19:52 +02:00
parent 7a6ff03b06
commit 6f22dcf465
2 changed files with 6 additions and 0 deletions

View File

@ -14,6 +14,7 @@ stable enough, it may be merged into [Alex Knauth's
implementation](https://github.com/AlexKnauth/seq-no-order).
The following pattern expanders for `syntax/parse` are defined:
* ~seq-no-order
* ~no-order
* ~post-check
* ~post-fail

View File

@ -120,6 +120,11 @@
(~bind #,@post-group-bindings)
#,@post-acc))))]))))
(define-syntax ~no-order
(pattern-expander
(λ/syntax-case (_ . rest) ()
#'({~seq-no-order . rest}))))
(define-syntax ~nop
(pattern-expander
(λ/syntax-case (_) () #'(~do))))