syntax/parse: fixed docs
closes PR 12255
This commit is contained in:
parent
a07af20658
commit
d3cb67b756
|
@ -34,7 +34,7 @@ Two parsing forms are provided: @racket[syntax-parse] and
|
||||||
(literal-set-id literal-set-option ...)]
|
(literal-set-id literal-set-option ...)]
|
||||||
[literal-set-option (code:line #:at context-id)
|
[literal-set-option (code:line #:at context-id)
|
||||||
(code:line #:phase phase-expr)]
|
(code:line #:phase phase-expr)]
|
||||||
[clause (syntax-pattern pattern-directive ... expr ...+)])
|
[clause (syntax-pattern pattern-directive ... body ...+)])
|
||||||
#:contracts ([stx-expr syntax?]
|
#:contracts ([stx-expr syntax?]
|
||||||
[context-expr syntax?]
|
[context-expr syntax?]
|
||||||
[phase-expr (or/c exact-integer? #f)])]{
|
[phase-expr (or/c exact-integer? #f)])]{
|
||||||
|
@ -47,7 +47,7 @@ subterms of the syntax object and that clause's side conditions and
|
||||||
|
|
||||||
Each clause consists of a @tech{syntax pattern}, an optional sequence
|
Each clause consists of a @tech{syntax pattern}, an optional sequence
|
||||||
of @tech{pattern directives}, and a non-empty sequence of body
|
of @tech{pattern directives}, and a non-empty sequence of body
|
||||||
expressions.
|
forms.
|
||||||
|
|
||||||
If the syntax object fails to match any of the patterns (or all
|
If the syntax object fails to match any of the patterns (or all
|
||||||
matches fail the corresponding clauses' side conditions), a syntax
|
matches fail the corresponding clauses' side conditions), a syntax
|
||||||
|
|
Loading…
Reference in New Issue
Block a user