/dports/lang/racket-minimal/racket-8.3/src/expander/common/ |
H A D | module-path.rkt | 19 module-path-index? 31 top-level-module-path-index 32 top-level-module-path-index? 158 [(top-level-module-path-index? r) 159 (fprintf port ":top-level")] 202 [() top-level-module-path-index])) 379 ;; A constant module path index to represent the top level 380 (define top-level-module-path-index 382 (make-resolved-module-path 'top-level))) 384 (define (top-level-module-path-index? mpi) [all …]
|
/dports/lang/racket/racket-8.3/src/expander/common/ |
H A D | module-path.rkt | 19 module-path-index? 31 top-level-module-path-index 32 top-level-module-path-index? 158 [(top-level-module-path-index? r) 159 (fprintf port ":top-level")] 202 [() top-level-module-path-index])) 379 ;; A constant module path index to represent the top level 380 (define top-level-module-path-index 382 (make-resolved-module-path 'top-level))) 384 (define (top-level-module-path-index? mpi) [all …]
|
/dports/lang/racket/racket-8.3/src/expander/namespace/ |
H A D | namespace.rkt | 6 "../common/module-path.rkt" 22 namespace-self-mpi/no-top-level 50 …truct namespace (mpi ; module path index (that's already resolved); instance-speci… 51 …source-name ; #f (top-level) or symbol or complete path; user-facing alternative to the mpi 52 … root-expand-ctx ; delay of box of context for top-level expansion; set by module instantiation 92 #:self-mpi top-level-module-path-index)] 98 (namespace top-level-module-path-index 145 (define (namespace-self-mpi/no-top-level ns) 147 (if (and mpi (top-level-module-path-index? mpi)) 168 [(not n) 'top-level] [all …]
|
/dports/lang/racket-minimal/racket-8.3/src/expander/namespace/ |
H A D | namespace.rkt | 6 "../common/module-path.rkt" 22 namespace-self-mpi/no-top-level 50 …truct namespace (mpi ; module path index (that's already resolved); instance-speci… 51 …source-name ; #f (top-level) or symbol or complete path; user-facing alternative to the mpi 52 … root-expand-ctx ; delay of box of context for top-level expansion; set by module instantiation 92 #:self-mpi top-level-module-path-index)] 98 (namespace top-level-module-path-index 145 (define (namespace-self-mpi/no-top-level ns) 147 (if (and mpi (top-level-module-path-index? mpi)) 168 [(not n) 'top-level] [all …]
|
/dports/lang/racket/racket-8.3/share/pkgs/racket-doc/scribblings/reference/ |
H A D | stx-comp.scrbl | 102 (list/c module-path-index? 104 module-path-index? 129 @item{@racket[_from-mod] is a module path index (see 131 is the ``self'' module path index if the binding refers to a 145 @item{@racket[_nominal-from-mod] is a module path index (see 215 (listof module-path-index? 217 module-path-index? 231 (listof module-path-index? 233 module-path-index? 247 (listof module-path-index? [all …]
|
H A D | namespaces.scrbl | 240 top-level variable in @racket[namespace]. 300 within the same top-level module, then declarations for all 301 submodules within the module's top-level module are also 386 module-path-index?)] 430 @defproc[(module-provide-protected? [module-path-index (or/c symbol? module-path-index?)] 435 @racket[module-path-index] defines @racket[sym] and exports it 440 The @racket[module-path-index] argument can be a symbol; see 494 @defproc[(variable-reference->module-path-index [varref variable-reference?]) 495 (or/c module-path-index? #f)]{ 498 result is a @tech{module path index} naming the module. [all …]
|
/dports/lang/racket/racket-8.3/collects/racket/ |
H A D | runtime-path.rkt | 17 define-runtime-module-path-index 28 (unless (memq (syntax-local-context) '(top-level module module-begin)) 30 "allowed only in a module top-level or top-level context" 47 (module-path-index-resolve (module-path-index-join 79 (module-path-index-join (list 'quote p) #f) ; make it a module path index 156 (module-path-index-join p base))))] 173 (unless (memq (syntax-local-context) '(module module-begin top-level)) 174 (raise-syntax-error #f "allowed only at the top level" #'orig-stx)) 224 (define-syntax (define-runtime-module-path-index stx) 251 (module-path-index-resolve [all …]
|
/dports/lang/racket-minimal/racket-8.3/collects/racket/ |
H A D | runtime-path.rkt | 17 define-runtime-module-path-index 28 (unless (memq (syntax-local-context) '(top-level module module-begin)) 30 "allowed only in a module top-level or top-level context" 47 (module-path-index-resolve (module-path-index-join 79 (module-path-index-join (list 'quote p) #f) ; make it a module path index 156 (module-path-index-join p base))))] 173 (unless (memq (syntax-local-context) '(module module-begin top-level)) 174 (raise-syntax-error #f "allowed only at the top level" #'orig-stx)) 224 (define-syntax (define-runtime-module-path-index stx) 251 (module-path-index-resolve [all …]
|
/dports/lang/racket/racket-8.3/share/pkgs/htdp-lib/stepper/private/ |
H A D | lifting.rkt | 56 ;; special case for begin at the top level. JBC, 2006-10-09 62 (define (top-level-expr-iterator stx context-so-far) 66 [(module identifier name (#%plain-module-begin . module-level-exprs)) 67 (try 3 (map (lambda (expr) `(,module-level-expr-iterator ,expr)) 68 (syntax->list #'module-level-exprs)))] 74 (define (module-level-expr-iterator stx context-so-far) 82 (general-top-level-expr-iterator stx context-so-far)])) 94 #;[(begin . top-level-exprs) 162 (top-level-expr-iterator stx null) 194 'general-top-level))) [all …]
|
/dports/lang/racket/racket-8.3/share/pkgs/compiler-lib/compiler/private/ |
H A D | deserialize.rkt | 21 (define (deserialize-module-path-indexes gen-vec order-vec) 29 [(eq? d 'top) (error 'deserialize-module-path-indexes "expected top")] 30 [(box? d) (module-path-index-join #f #f)] 32 (module-path-index-join (vector-ref d 0) 117 (define (syntax-module-path-index-shift . args) 118 (error 'syntax-module-path-index-shift "not supported")) 125 'deserialize-module-path-indexes deserialize-module-path-indexes 126 'syntax-module-path-index-shift syntax-module-path-index-shift 135 '.self (module-path-index-join #f #f) 138 'swap-top-level-scopes (lambda (s original-scopes-s new-ns) s))) [all …]
|
/dports/lang/racket-minimal/racket-8.3/src/expander/compile/ |
H A D | multi-top-data.rkt | 12 ;; When multiple top-level forms are compiled separately (e.g., for a 14 ;; objects and module path indxes, but we want that information to be 18 ;; When a multi-form top-level sequence is evaluated, the shared 21 ;; protocol as when top-level forms are evaluated immediately after 22 ;; compilation. See "../eval/multi-top.rkt" for that part, which is 28 (define mpis (make-module-path-index-table)) 33 (add-module-path-index!/pos mpis mpi))))) 45 (define module-uses-tables null) 66 ,@(for/list ([phase-to-link-module-uses (in-list (reverse module-uses-tables))]) 67 (serialize-phase-to-link-module-uses phase-to-link-module-uses mpis)))) [all …]
|
H A D | module-use.rkt | 2 (require "../common/module-path.rkt") 4 ;; A `module-use` record is just a part of module path index plus 9 (struct module-use (module phase) 12 (define a-mod (module-use-module a)) 17 ;; Unusual, but possible with top-level evaluation: can have 19 (let-values ([(a-path a-base) (module-path-index-split a-mod)] 20 [(b-path b-base) (module-path-index-split b-mod)]) 21 (or a-path 22 b-path 23 (eq? (module-path-index-resolved a-mod) [all …]
|
H A D | top.rkt | 11 "../eval/top-level-instance.rkt" 30 ;; `define-syntaxes` in a module 49 (define mpis (make-module-path-index-table)) 66 `([,top-level-bind!-id 67 ,top-level-require!-id] 71 #:body-import-instances (list top-level-instance 84 (compile-top-level-require s cctx)) 98 ;; deserialize module path indexes, syntax objects, etc. 132 ,(generate-module-path-index-deserialize mpis)) 161 (define (compile-top-level-require p cctx) [all …]
|
/dports/lang/racket/racket-8.3/src/expander/compile/ |
H A D | multi-top-data.rkt | 12 ;; When multiple top-level forms are compiled separately (e.g., for a 14 ;; objects and module path indxes, but we want that information to be 18 ;; When a multi-form top-level sequence is evaluated, the shared 21 ;; protocol as when top-level forms are evaluated immediately after 22 ;; compilation. See "../eval/multi-top.rkt" for that part, which is 28 (define mpis (make-module-path-index-table)) 33 (add-module-path-index!/pos mpis mpi))))) 45 (define module-uses-tables null) 66 ,@(for/list ([phase-to-link-module-uses (in-list (reverse module-uses-tables))]) 67 (serialize-phase-to-link-module-uses phase-to-link-module-uses mpis)))) [all …]
|
H A D | module-use.rkt | 2 (require "../common/module-path.rkt") 4 ;; A `module-use` record is just a part of module path index plus 9 (struct module-use (module phase) 12 (define a-mod (module-use-module a)) 17 ;; Unusual, but possible with top-level evaluation: can have 19 (let-values ([(a-path a-base) (module-path-index-split a-mod)] 20 [(b-path b-base) (module-path-index-split b-mod)]) 21 (or a-path 22 b-path 23 (eq? (module-path-index-resolved a-mod) [all …]
|
H A D | top.rkt | 11 "../eval/top-level-instance.rkt" 30 ;; `define-syntaxes` in a module 49 (define mpis (make-module-path-index-table)) 66 `([,top-level-bind!-id 67 ,top-level-require!-id] 71 #:body-import-instances (list top-level-instance 84 (compile-top-level-require s cctx)) 98 ;; deserialize module path indexes, syntax objects, etc. 132 ,(generate-module-path-index-deserialize mpis)) 161 (define (compile-top-level-require p cctx) [all …]
|
/dports/lang/racket/racket-8.3/src/expander/syntax/ |
H A D | binding.rkt | 35 syntax-module-path-index-shift 39 binding-module-path-index-shift 57 ;; By tradition, equate "unbound" with "bound at the top level" 60 (top-level-module-path-index? (module-binding-module b))) 72 (eq? (module-path-index-resolve (module-binding-module ab)) 101 (define (identifier-binding id phase [top-level-symbol? #f]) 105 (if (top-level-module-path-index? (module-binding-module b)) 106 (if top-level-symbol? 264 ;; Apply accumulated module path index shifts 355 (define-values (path base) (module-path-index-split from-mpi)) [all …]
|
/dports/lang/racket-minimal/racket-8.3/src/expander/syntax/ |
H A D | binding.rkt | 35 syntax-module-path-index-shift 39 binding-module-path-index-shift 57 ;; By tradition, equate "unbound" with "bound at the top level" 60 (top-level-module-path-index? (module-binding-module b))) 72 (eq? (module-path-index-resolve (module-binding-module ab)) 101 (define (identifier-binding id phase [top-level-symbol? #f]) 105 (if (top-level-module-path-index? (module-binding-module b)) 106 (if top-level-symbol? 264 ;; Apply accumulated module path index shifts 355 (define-values (path base) (module-path-index-split from-mpi)) [all …]
|
/dports/devel/mercurial/mercurial-6.0/contrib/ |
H A D | import-checker.py | 280 for top, dirs, files in os.walk(libpath): 281 if 'dist-packages' in top.split(os.path.sep): 285 not os.path.exists(os.path.join(top, d, '__init__.py')) 286 or top == libpath 294 full_path = top 296 full_path = os.path.join(top, name) 375 found = fromlocal(node.module, node.level) 450 module = module.decode('ascii') 525 fullname = '.'.join(module.split('.')[: -node.level]) 552 found = fromlocal(node.module, node.level) [all …]
|
/dports/lang/racket/racket-8.3/share/pkgs/drracket-tool-lib/drracket/private/syncheck/ |
H A D | traversals.rkt | 445 ; top level or module top level only: 502 ; module top level only: 538 ; module top level only: 853 (let-values ([(a b) (module-path-index-split mpi)]) 977 ;; -> (union #f (list require-sexp sym ?? module-path-index?)) 993 [(module-path-index? mod-path) 994 (define-values (base offset) (module-path-index-split mod-path)) 1085 (and (module-path-index? path) 1242 ;; get-require-filename : sexp-or-module-path-index namespace string[directory] -> filename or #f 1251 [(module-path-index? datum) [all …]
|
/dports/lang/chez-scheme/ChezScheme-9.5.4/csug/ |
H A D | libraries.stex | 17 \index{top-level-programs}% 46 top-level program file. 284 A compiled top-level program can be run just like a source top-level 304 \index{\scheme{top-level-program}}\scheme{top-level-program} form. 374 \index{top-level-programs}% 784 is exported to top level. 802 This form is meaningful only within a top-level library, top-level module, 803 or module enclosed within a library or top-level module, although it 818 exported to top level. 884 top-level module, or module enclosed within a library or top-level module. [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/llvm/clang/test/Modules/ |
H A D | build-fail-notes.m | 2 // RUN: not %clang_cc1 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -F %S/Inputs -DgetM… 6 // CHECK: While building module 'DependsOnModule' imported from 7 // CHECK: While building module 'Module' imported from 8 // CHECK: error: expected ';' after top level declarator 10 // CHECK: fatal error: could not build module 'Module' 14 // RUN: not %clang_cc1 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -F %S/Inputs %s -fd… 17 // CHECK-REDEF: In module 'DependsOnModule' imported from 18 // CHECK-REDEF: In module 'Module' imported from 21 // RUN: not %clang_cc1 -Wincomplete-umbrella -fmodules-cache-path=%t -fmodules -fimplicit-module-ma… 22 // RUN: c-index-test -read-diagnostics %t/tmp.diag 2>&1 | FileCheck -check-prefix=CHECK-SDIAG %s [all …]
|
/dports/devel/wasi-libcxx/llvm-project-13.0.1.src/clang/test/Modules/ |
H A D | build-fail-notes.m | 2 // RUN: not %clang_cc1 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -F %S/Inputs -DgetM… 6 // CHECK: While building module 'DependsOnModule' imported from 7 // CHECK: While building module 'Module' imported from 8 // CHECK: error: expected ';' after top level declarator 10 // CHECK: fatal error: could not build module 'Module' 14 // RUN: not %clang_cc1 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -F %S/Inputs %s -fd… 17 // CHECK-REDEF: In module 'DependsOnModule' imported from 18 // CHECK-REDEF: In module 'Module' imported from 21 // RUN: not %clang_cc1 -Wincomplete-umbrella -fmodules-cache-path=%t -fmodules -fimplicit-module-ma… 22 // RUN: c-index-test -read-diagnostics %t/tmp.diag 2>&1 | FileCheck -check-prefix=CHECK-SDIAG %s [all …]
|
/dports/devel/llvm12/llvm-project-12.0.1.src/clang/test/Modules/ |
H A D | build-fail-notes.m | 2 // RUN: not %clang_cc1 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -F %S/Inputs -DgetM… 6 // CHECK: While building module 'DependsOnModule' imported from 7 // CHECK: While building module 'Module' imported from 8 // CHECK: error: expected ';' after top level declarator 10 // CHECK: fatal error: could not build module 'Module' 14 // RUN: not %clang_cc1 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -F %S/Inputs %s -fd… 17 // CHECK-REDEF: In module 'DependsOnModule' imported from 18 // CHECK-REDEF: In module 'Module' imported from 21 // RUN: not %clang_cc1 -Wincomplete-umbrella -fmodules-cache-path=%t -fmodules -fimplicit-module-ma… 22 // RUN: c-index-test -read-diagnostics %t/tmp.diag 2>&1 | FileCheck -check-prefix=CHECK-SDIAG %s [all …]
|
/dports/devel/llvm11/llvm-11.0.1.src/tools/clang/test/Modules/ |
H A D | build-fail-notes.m | 2 // RUN: not %clang_cc1 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -F %S/Inputs -DgetM… 6 // CHECK: While building module 'DependsOnModule' imported from 7 // CHECK: While building module 'Module' imported from 8 // CHECK: error: expected ';' after top level declarator 10 // CHECK: fatal error: could not build module 'Module' 14 // RUN: not %clang_cc1 -fmodules-cache-path=%t -fmodules -fimplicit-module-maps -F %S/Inputs %s -fd… 17 // CHECK-REDEF: In module 'DependsOnModule' imported from 18 // CHECK-REDEF: In module 'Module' imported from 21 // RUN: not %clang_cc1 -Wincomplete-umbrella -fmodules-cache-path=%t -fmodules -fimplicit-module-ma… 22 // RUN: c-index-test -read-diagnostics %t/tmp.diag 2>&1 | FileCheck -check-prefix=CHECK-SDIAG %s [all …]
|