syntax/parse: remove some absolute paths related to lazy-require-syntax

Since the previous version of this code was first written, Racket's
requirements seem to have relaxed---but not completely!

If *all* related module paths are made relative, then the deps
test case breaks (but only the test is pre-compiled ?!!).

If requires from disappearing module(s) to residual module(s)
use absolute module paths, it seems to work.
This commit is contained in:
Ryan Culpepper 2017-12-15 17:58:17 +01:00 committed by Georges Dupéron
parent c913d14d7c
commit 785ffdacce
4 changed files with 7 additions and 16 deletions

View File

@ -17,7 +17,7 @@
racket/stxparam
syntax/stx
stxparse-info/parse/private/residual ;; keep abs. path
stxparse-info/parse/private/runtime ;; keep abs.path
"runtime.rkt"
stxparse-info/parse/private/runtime-reflect) ;; keep abs. path
;; ============================================================

View File

@ -7,8 +7,7 @@
;; ============================================================
;; Compile-time
(require (for-syntax racket/private/sc
syntax/parse/private/residual-ct))
(require (for-syntax racket/private/sc syntax/parse/private/residual-ct))
(provide (for-syntax (all-from-out syntax/parse/private/residual-ct)))
(begin-for-syntax

View File

@ -1,7 +1,6 @@
#lang racket/base
(require stxparse-info/parse/private/residual ;; keep abs. path
(only-in syntax/parse/private/residual-ct ;; keep abs. path
attr-name attr-depth)
(require "residual.rkt"
(only-in syntax/parse/private/residual-ct attr-name attr-depth)
syntax/parse/private/kws)
(provide reflect-parser
(struct-out reified)

View File

@ -1,17 +1,10 @@
#lang racket/base
(require racket/lazy-require
syntax/parse/private/keywords)
;; keep and keep as abs. path -- lazy-loaded macros produce references to this
;; must be required via *absolute module path* from any disappearing module
;; (so for consistency etc, require absolutely from all modules)
(require stxparse-info/parse/private/residual)
syntax/parse/private/keywords
"residual.rkt")
(lazy-require-syntax
;; load macro transformers lazily via identifier
;; This module path must also be absolute (not sure why,
;; but it definitely breaks on relative module path).
[syntax/parse/private/parse
["parse.rkt"
(define-syntax-class
define-splicing-syntax-class
define-integrable-syntax-class