Added ~no-order wrapper
This commit is contained in:
parent
7a6ff03b06
commit
6f22dcf465
|
@ -14,6 +14,7 @@ stable enough, it may be merged into [Alex Knauth's
|
||||||
implementation](https://github.com/AlexKnauth/seq-no-order).
|
implementation](https://github.com/AlexKnauth/seq-no-order).
|
||||||
|
|
||||||
The following pattern expanders for `syntax/parse` are defined:
|
The following pattern expanders for `syntax/parse` are defined:
|
||||||
|
* ~seq-no-order
|
||||||
* ~no-order
|
* ~no-order
|
||||||
* ~post-check
|
* ~post-check
|
||||||
* ~post-fail
|
* ~post-fail
|
||||||
|
|
5
main.rkt
5
main.rkt
|
@ -120,6 +120,11 @@
|
||||||
(~bind #,@post-group-bindings)
|
(~bind #,@post-group-bindings)
|
||||||
#,@post-acc))))]))))
|
#,@post-acc))))]))))
|
||||||
|
|
||||||
|
(define-syntax ~no-order
|
||||||
|
(pattern-expander
|
||||||
|
(λ/syntax-case (_ . rest) ()
|
||||||
|
#'({~seq-no-order . rest}))))
|
||||||
|
|
||||||
(define-syntax ~nop
|
(define-syntax ~nop
|
||||||
(pattern-expander
|
(pattern-expander
|
||||||
(λ/syntax-case (_) () #'(~do))))
|
(λ/syntax-case (_) () #'(~do))))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user