From aa1194f0df57e724b20e36dc60f26916fdc1ca8e Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Mon, 3 Oct 2016 20:36:46 -1000 Subject: [PATCH] Update br.scrbl --- beautiful-racket-lib/br/scribblings/br.scrbl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/beautiful-racket-lib/br/scribblings/br.scrbl b/beautiful-racket-lib/br/scribblings/br.scrbl index 6e424e4..4870e42 100644 --- a/beautiful-racket-lib/br/scribblings/br.scrbl +++ b/beautiful-racket-lib/br/scribblings/br.scrbl @@ -274,8 +274,7 @@ bad-listener @specsubform[#:literals (define-macro) (define-macro (id pat-arg ...) result-expr ...+)]{ -If the first argument is a @seclink["stx-patterns" #:doc '(lib "scribblings/reference/reference.scrbl")] -{syntax pattern} starting with @racket[id], then create a syntax transformer for this pattern using @racket[result-expr ...] as the return value. As usual, @racket[result-expr ...] needs to return a @seclink["stx-obj" #:doc '(lib "scribblings/guide/guide.scrbl")]{syntax object} or you'll get an error. +If the first argument is a @seclink["stx-patterns" #:doc '(lib "scribblings/reference/reference.scrbl")]{syntax pattern} starting with @racket[id], then create a syntax transformer for this pattern using @racket[result-expr ...] as the return value. As usual, @racket[result-expr ...] needs to return a @seclink["stx-obj" #:doc '(lib "scribblings/guide/guide.scrbl")]{syntax object} or you'll get an error. The syntax-pattern notation is the same as @racket[syntax-case], with one key difference. If a @racket[pat-arg] has a @tt{CAPITALIZED-NAME}, it's treated as a named wildcard (meaning, it will match any expression in that position, and can be subsequently referred to by that name). Otherwise, @racket[pat-arg] is treated as a literal (meaning, it will only match the same expression). @@ -414,4 +413,4 @@ The generated @racket[read] function takes one argument, an input port. It calls @defmodule[br/syntax] TK -} \ No newline at end of file +}