/usr/share/doc/racket/guide/blueboxes.rktd is in racket-doc 6.7-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 | 33
((3) 0 () 0 () () (h ! (equal)))
(something [id ...+] an-expr ...)
(something-else [thing ...+] an-expr ...)
thing = thing-id
| thing-keyword
(proc-expr arg-expr ...)
(proc-expr arg ...)
arg = arg-expr
| arg-keyword arg-expr
(lambda (arg-id ...)
body ...+)
(lambda rest-id
body ...+)
(lambda (arg-id ...+ . rest-id)
body ...+)
(lambda gen-formals
body ...+)
gen-formals = (arg ...)
| rest-id
| (arg ...+ . rest-id)
arg = arg-id
| [arg-id default-expr]
(lambda gen-formals
body ...+)
gen-formals = (arg ...)
| rest-id
| (arg ...+ . rest-id)
arg = arg-id
| [arg-id default-expr]
| arg-keyword arg-id
| arg-keyword [arg-id default-expr]
(case-lambda
[formals body ...+]
...)
formals = (arg-id ...)
| rest-id
| (arg-id ...+ . rest-id)
(define id expr)
(define (id arg ...) body ...+)
(define (id arg ... . rest-id) body ...+)
(define (head args) body ...+)
head = id
| (head args)
args = arg ...
| arg ... . rest-id
(define-values (id ...) expr)
(lambda gen-formals
body ...+)
(let ([id expr] ...) body ...+)
(let* ([id expr] ...) body ...+)
(letrec ([id expr] ...) body ...+)
(let proc-id ([arg-id init-expr] ...)
body ...+)
(let-values ([(id ...) expr] ...)
body ...+)
(let*-values ([(id ...) expr] ...)
body ...+)
(letrec-values ([(id ...) expr] ...)
body ...+)
(if test-expr then-expr else-expr)
(and expr ...)
(or expr ...)
(cond [test-expr body ...+]
...)
(cond cond-clause ...)
cond-clause = [test-expr then-body ...+]
| [else then-body ...+]
| [test-expr => proc-expr]
| [test-expr]
(begin expr ...+)
(begin0 expr ...+)
(when test-expr then-body ...+)
(unless test-expr then-body ...+)
(set! id expr)
(set!-values (id ...) expr)
(quote datum)
'datum
(quasiquote datum)
(case expr
[(datum ...+) body ...+]
...)
(parameterize ([parameter-expr value-expr] ...)
body ...+)
(struct struct-id (field-id ...))
(struct-copy struct-id struct-expr [field-id expr] ...)
(struct struct-id super-id (field-id ...))
(struct struct-id maybe-super (field ...)
struct-option ...)
maybe-super =
| super-id
field = field-id
| [field-id field-option ...]
#:mutable
#:transparent
#:inspector inspector-expr
#:prefab
#:auto-value auto-expr
#:guard guard-expr
#:methods interface-expr [body ...]
#:property prop-expr val-expr
#:super super-expr
(module name-id initial-module-path
decl ...)
(module* name-id initial-module-path-or-#f
decl ...)
(module+ name-id
decl ...)
(quote id)
rel-string
id
(lib rel-string)
(planet id)
(planet package-string)
(planet rel-string (user-string pkg-string vers ...))
vers = nat
| (nat nat)
| (= nat)
| (+ nat)
| (- nat)
(file string)
(submod base element ...+)
base = module-path
| "."
| ".."
element = id
| ".."
(require require-spec ...)
module-path
(only-in require-spec id-maybe-renamed ...)
id-maybe-renamed = id
| [orig-id bind-id]
(except-in require-spec id ...)
(rename-in require-spec [orig-id bind-id] ...)
(prefix-in prefix-id require-spec)
(provide provide-spec ...)
identifier
(rename-out [orig-id export-id] ...)
(struct-out struct-id)
(all-defined-out)
(all-from-out module-path)
(except-out provide-spec id ...)
(prefix-out prefix-id provide-spec)
(with-handlers ([predicate-expr handler-expr] ...)
body ...+)
(for ([id sequence-expr] ...)
body ...+)
(for (clause ...)
body ...+)
clause = [id sequence-expr]
| #:when boolean-expr
| #:unless boolean-expr
(for (clause ...)
body-or-break ... body)
clause = [id sequence-expr]
| #:when boolean-expr
| #:unless boolean-expr
| break
body-or-break = body
| break
break = #:break boolean-expr
| #:final boolean-expr
(match target-expr
[pattern expr ...+] ...)
(class superclass-expr decl-or-expr ...)
(interface (superinterface-expr ...) id ...)
(class* superclass-expr (interface-expr ...) decl-or-expr ...)
(define-member-name id member-key-expr)
(mixin (interface-expr ...) (interface-expr ...)
decl-or-expr ...)
(trait trait-clause ...)
(define-syntax-rule pattern template)
(define-syntax id
(syntax-rules (literal-id ...)
[pattern template]
...))
(syntax-case stx-expr (literal-id ...)
[pattern expr]
...)
|