fixed error in syntax-parse docs (re ~bind, #:attr)

This commit is contained in:
Ryan Culpepper 2010-11-05 13:45:02 -06:00
parent f97428ab1e
commit a39645ff7a
2 changed files with 9 additions and 6 deletions

View File

@ -87,7 +87,7 @@ means specifically @tech{@Spattern}.
H-pattern]
[A-pattern
~!
(~bind [attr-id expr] ...)
(~bind [attr-arity-decl expr] ...)
(~fail maybe-fail-condition maybe-message-expr)
(~parse S-pattern stx-expr)
(@#,ref[~and a] A-pattern ...+)]
@ -914,7 +914,10 @@ within a @scheme[~not] pattern unless there is an intervening
@scheme[~delimit-cut] or @scheme[~commit] pattern.
}
@specsubform[(@#,defhere[~bind] [attr-id expr] ...)]{
@specsubform/subs[(@#,defhere[~bind] [attr-arity-decl expr] ...)
([attr-arity-decl
attr-name-id
(attr-name-id depth)])]{
Evaluates the @scheme[expr]s and binds them to the given
@scheme[attr-id]s as attributes.

View File

@ -171,7 +171,7 @@ follows:
(code:line #:declare pattern-id syntax-class-id)
(code:line #:declare pattern-id (syntax-class-id arg ...))
(code:line #:with syntax-pattern expr)
(code:line #:attr attr-id expr)
(code:line #:attr attr-arity-decl expr)
(code:line #:fail-when condition-expr message-expr)
(code:line #:fail-unless condition-expr message-expr)
(code:line #:when condition-expr)
@ -202,11 +202,11 @@ match a pattern in several ways, backtracking may cause the same
clause to be tried multiple times before the next clause is reached.
}
@specsubform[(code:line #:attr attr-id expr)]{
@specsubform[(code:line #:attr attr-arity-decl expr)]{
Evaluates the @scheme[expr] in the context of all previous attribute
bindings and binds it to the attribute named by @scheme[attr-id]. The
value of @scheme[expr] need not be syntax.
bindings and binds it to the given attribute. The value of
@scheme[expr] need not be syntax.
}
@specsubform[(code:line #:fail-when condition-expr message-expr)