Provide and document match-expander? and legacy-match-expander?.

This commit is contained in:
Sam Tobin-Hochstadt 2014-01-04 17:55:40 -05:00
parent ade6ebff99
commit aeaf018d01
2 changed files with 10 additions and 1 deletions

View File

@ -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)]{

View File

@ -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