Provide and document match-expander?
and legacy-match-expander?
.
This commit is contained in:
parent
ade6ebff99
commit
aeaf018d01
|
@ -630,6 +630,13 @@ Like @racket[prop:match-expander], but for the legacy match syntax.
|
|||
This binding is provided @racket[for-syntax].
|
||||
}
|
||||
|
||||
@deftogether[[
|
||||
@defproc[(match-expander? [v any/c]) boolean?]
|
||||
@defproc[(legacy-match-expander? [v any/c]) boolean?]]]{
|
||||
Predicates for values which implement the appropriate match expander
|
||||
properties.
|
||||
}
|
||||
|
||||
|
||||
@defparam[match-equality-test comp-proc (any/c any/c . -> . any)]{
|
||||
|
||||
|
|
|
@ -10,13 +10,15 @@
|
|||
(for-syntax racket/lazy-require
|
||||
(only-in "stxtime.rkt"
|
||||
match-...-nesting
|
||||
match-expander?
|
||||
legacy-match-expander?
|
||||
prop:match-expander
|
||||
prop:legacy-match-expander)))
|
||||
|
||||
(begin-for-syntax
|
||||
(lazy-require [racket/match/parse (parse)]))
|
||||
|
||||
(provide (for-syntax match-...-nesting
|
||||
(provide (for-syntax match-...-nesting match-expander? legacy-match-expander?
|
||||
prop:match-expander prop:legacy-match-expander)
|
||||
match-equality-test
|
||||
define-match-expander
|
||||
|
|
Loading…
Reference in New Issue
Block a user