|
100 | 100 | `(submodule* ,(syntax->datum #'id) ,(syntax->datum #'path)
|
101 | 101 | (,(for/list ([i (in-list (syntax->list #'(body ...)))])
|
102 | 102 | (parse-mod i env)) ...)))]
|
103 |
| - [(module* id:id path |
104 |
| - (#%plain-module-begin body ...)) |
105 |
| - (parameterize ([current-global-env/parse-and-rename (make-hash)]) |
106 |
| - `(submodule* ,(syntax->datum #'id) |
107 |
| - (,(for/list ([i (in-list (syntax->list #'(body ...)))]) |
108 |
| - (parse-mod i env)) ...)))] |
109 | 103 | [else
|
110 | 104 | (parse-gen #'else env)]))
|
111 | 105 |
|
|
250 | 244 | (parse-phaseless-req-spec i env)) ...)]
|
251 | 245 | [(for-template phaseless-req-spec ...)
|
252 | 246 | `(for-meta
|
253 |
| - ,#f |
| 247 | + ,-1 |
254 | 248 | ,(for/list ([i (in-list (syntax->list #'(phaseless-req-spec ...)))])
|
255 | 249 | (parse-phaseless-req-spec i env)) ...)]
|
256 | 250 | [(for-label phaseless-req-spec ...)
|
257 | 251 | `(for-meta
|
258 |
| - ,-1 |
| 252 | + ,#f |
259 | 253 | ,(for/list ([i (in-list (syntax->list #'(phaseless-req-spec ...)))])
|
260 | 254 | (parse-phaseless-req-spec i env)) ...)]
|
261 | 255 | [(just-meta phase-level raw-req-spec ...)
|
|
275 | 269 | `(prefix-all-except ,(syntax-e #'id)
|
276 | 270 | ,(parse-raw-module-path #'raw-module-path env))]
|
277 | 271 | [(all-except raw-module-path ids:id ...)
|
278 |
| - `(all-except ,(parse-raw-module-path #'raw-module-path) |
| 272 | + `(all-except ,(parse-raw-module-path #'raw-module-path env) |
279 | 273 | ,(map (curryr parse-expr env)
|
280 | 274 | (syntax->list #'(ids ...))) ...)]
|
281 | 275 | [(prefix-all-except id:id raw-module-path ids:id ...)
|
|
284 | 278 | ,(parse-raw-module-path #'raw-module-path env)
|
285 | 279 | ,(map (curryr parse-expr env) (syntax->list #'(ids ...))) ...)]
|
286 | 280 | [(rename raw-module-path id1:id id2:id)
|
287 |
| - `(rename ,(parse-raw-module-path #'raw-module-path) |
| 281 | + `(rename ,(parse-raw-module-path #'raw-module-path env) |
288 | 282 | ,(parse-expr #'id1 env)
|
289 | 283 | ,(parse-expr #'id2 env))]
|
290 | 284 | [else (parse-raw-module-path #'else env)]))
|
|
391 | 385 | null
|
392 | 386 | (list (with-output-language (Lsubmodules submodule-form)
|
393 | 387 | `(module ,id ,module-path
|
394 |
| - (,module-level-form ...) |
395 |
| - (,(append* pre) ...) |
396 |
| - (,(append* post) ...)))))] |
397 |
| - [(submodule* ,id |
398 |
| - (,[module-level-form pre post] ...)) |
399 |
| - (values `(#%plain-app (primitive void)) |
400 |
| - null |
401 |
| - (list (with-output-language (Lsubmodules submodule-form) |
402 |
| - `(module ,id #f |
403 | 388 | (,module-level-form ...)
|
404 | 389 | (,(append* pre) ...)
|
405 | 390 | (,(append* post) ...)))))])
|
|
0 commit comments