pruned unstable/syntax
This commit is contained in:
parent
d803e55a5b
commit
6ac708a3da
|
@ -20,13 +20,6 @@
|
||||||
|
|
||||||
(test-suite "Syntax Lists"
|
(test-suite "Syntax Lists"
|
||||||
|
|
||||||
(test-suite "syntax-list"
|
|
||||||
(test
|
|
||||||
(check-equal?
|
|
||||||
(with-syntax ([([x ...] ...) #'([1 2] [3] [4 5 6])])
|
|
||||||
(map syntax->datum (syntax-list x ... ...)))
|
|
||||||
(list 1 2 3 4 5 6))))
|
|
||||||
|
|
||||||
(test-suite "syntax-map"
|
(test-suite "syntax-map"
|
||||||
(test-case "identifiers to symbols"
|
(test-case "identifiers to symbols"
|
||||||
(check-equal? (syntax-map syntax-e #'(a b c)) '(a b c)))))
|
(check-equal? (syntax-map syntax-e #'(a b c)) '(a b c)))))
|
||||||
|
|
|
@ -76,18 +76,6 @@ Performs @racket[(map f (syntax->list stxl) ...)].
|
||||||
|
|
||||||
@addition[@author+email["Carl Eastlund" "cce@racket-lang.org"]]
|
@addition[@author+email["Carl Eastlund" "cce@racket-lang.org"]]
|
||||||
|
|
||||||
@defform[(syntax-list template ...)]{
|
|
||||||
|
|
||||||
This form constructs a list of syntax objects based on the given templates. It
|
|
||||||
is equivalent to @racket[(syntax->list (syntax (template ...)))].
|
|
||||||
|
|
||||||
@defexamples[
|
|
||||||
#:eval the-eval
|
|
||||||
(with-syntax ([(x ...) (syntax (1 2 3))]) (syntax-list x ...))
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@section{Syntax Object Source Locations}
|
@section{Syntax Object Source Locations}
|
||||||
|
|
||||||
@deftogether[(
|
@deftogether[(
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
(for-syntax racket/base))
|
(for-syntax racket/base))
|
||||||
|
|
||||||
(provide (rename-out [stx-map syntax-map])
|
(provide (rename-out [stx-map syntax-map])
|
||||||
syntax-list
|
|
||||||
|
|
||||||
;; by cce:
|
;; by cce:
|
||||||
syntax-source-file-name
|
syntax-source-file-name
|
||||||
|
@ -25,15 +24,6 @@
|
||||||
;;
|
;;
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
;;
|
|
||||||
;; Pattern Bindings
|
|
||||||
;;
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
|
|
||||||
(define-syntax-rule (syntax-list template ...)
|
|
||||||
(syntax->list (syntax (template ...))))
|
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;;
|
;;
|
||||||
;; Syntax Locations
|
;; Syntax Locations
|
||||||
|
|
Loading…
Reference in New Issue
Block a user