Home
last modified time | relevance | path

Searched +refs:internal +refs:definition +refs:context +refs:use +refs:site +refs:scopes (Results 1 – 25 of 1568) sorted by relevance

12345678910>>...63

/dports/lang/racket-minimal/racket-8.3/src/expander/expand/
H A Ddefinition-context.rkt33 remove-intdef-use-site-scopes
40 (struct internal-definition-context (frame-id ; identifies the frame for use-site scopes
45use-site-scopes ; boxed list of use-site scopes that should be pruned from definition context bind…
71 (define use-site-scopes (box '()))
72 …(internal-definition-context frame-id outside-edge inside-edge add-scope? (box null) use-site-scop…
208 (remove-intdef-use-site-scopes
297 [use-site-scopes
303 (internal-definition-context-use-site-scopes intdefs)
304 (or (root-expand-context-use-site-scopes ctx)
368 (define (remove-intdef-use-site-scopes s intdef)
[all …]
H A Dapply-transformer.rkt4 "definition-context.rkt"
44 (internal-definition-context? intdef-ctx)))
46 "(or/c internal-definition-context? #f)"
53 #:context context
58 (add-intdef-scopes
96 (define use-scopes (maybe-create-use-site-scope ctx binding))
100 (define use-s (add-scopes intro-s use-scopes))
101 use-s)
107 intro-scope use-scopes
120 intro-scope use-scopes
[all …]
H A Dbody.rkt14 "use-site.rkt"
27 ;; Expand a sequence of body forms in a definition context; returns a
34 ;; original content of the definition context --- but a body always
37 ;; through macro expansion) in the definition context
48 ;; definitions in the definition context
58 [use-site-scopes #:parent root-expand-context (box null)]
129 (define ids (remove-use-site-scopes (m 'id) body-ctx))
179 (define ids (remove-use-site-scopes (m 'id) body-ctx))
266 ;; As we finish expanding, we're no longer in a definition context
267 …(define finish-ctx (struct*-copy expand-context (accumulate-def-ctx-scopes body-ctx def-ctx-scopes)
[all …]
H A Dmain.rkt22 "use-site.rkt"
70 maybe-create-use-site-scope
382 ;; In a definition context, we need use-site scopes
383 (define use-scopes (maybe-create-use-site-scope ctx binding))
451 (define (maybe-create-use-site-scope ctx binding)
453 [(and (root-expand-context-use-site-scopes ctx)
455 ;; conservatively use a use-site scope when the origin of the
461 ;; We're in a recursive definition context where use-site scopes
464 (define sc (new-scope 'use-site))
465 (define b (root-expand-context-use-site-scopes ctx))
[all …]
H A Dsyntax-local.rkt14 "use-site.rkt"
22 "definition-context.rkt"
99 (define new-s (flip-introduction-and-use-scopes s ctx))
106 (check who internal-definition-context? intdef))
110 (remove-intdef-use-site-scopes id intdef)
111 (remove-use-site-scopes id ctx)))
130 (define (make-syntax-introducer [as-use-site? #f])
131 (do-make-syntax-introducer (new-scope (if as-use-site? 'use-site 'macro))))
321 (define/who (syntax-local-lift-require s use-s)
343 (define result-s (add-scope use-s sc))
[all …]
/dports/lang/racket/racket-8.3/src/expander/expand/
H A Ddefinition-context.rkt33 remove-intdef-use-site-scopes
40 (struct internal-definition-context (frame-id ; identifies the frame for use-site scopes
45use-site-scopes ; boxed list of use-site scopes that should be pruned from definition context bind…
71 (define use-site-scopes (box '()))
72 …(internal-definition-context frame-id outside-edge inside-edge add-scope? (box null) use-site-scop…
208 (remove-intdef-use-site-scopes
297 [use-site-scopes
303 (internal-definition-context-use-site-scopes intdefs)
304 (or (root-expand-context-use-site-scopes ctx)
368 (define (remove-intdef-use-site-scopes s intdef)
[all …]
H A Dapply-transformer.rkt4 "definition-context.rkt"
44 (internal-definition-context? intdef-ctx)))
46 "(or/c internal-definition-context? #f)"
53 #:context context
58 (add-intdef-scopes
96 (define use-scopes (maybe-create-use-site-scope ctx binding))
100 (define use-s (add-scopes intro-s use-scopes))
101 use-s)
107 intro-scope use-scopes
120 intro-scope use-scopes
[all …]
H A Dbody.rkt14 "use-site.rkt"
27 ;; Expand a sequence of body forms in a definition context; returns a
34 ;; original content of the definition context --- but a body always
37 ;; through macro expansion) in the definition context
48 ;; definitions in the definition context
58 [use-site-scopes #:parent root-expand-context (box null)]
129 (define ids (remove-use-site-scopes (m 'id) body-ctx))
179 (define ids (remove-use-site-scopes (m 'id) body-ctx))
266 ;; As we finish expanding, we're no longer in a definition context
267 …(define finish-ctx (struct*-copy expand-context (accumulate-def-ctx-scopes body-ctx def-ctx-scopes)
[all …]
H A Dmain.rkt22 "use-site.rkt"
70 maybe-create-use-site-scope
382 ;; In a definition context, we need use-site scopes
383 (define use-scopes (maybe-create-use-site-scope ctx binding))
451 (define (maybe-create-use-site-scope ctx binding)
453 [(and (root-expand-context-use-site-scopes ctx)
455 ;; conservatively use a use-site scope when the origin of the
461 ;; We're in a recursive definition context where use-site scopes
464 (define sc (new-scope 'use-site))
465 (define b (root-expand-context-use-site-scopes ctx))
[all …]
H A Dsyntax-local.rkt14 "use-site.rkt"
22 "definition-context.rkt"
99 (define new-s (flip-introduction-and-use-scopes s ctx))
106 (check who internal-definition-context? intdef))
110 (remove-intdef-use-site-scopes id intdef)
111 (remove-use-site-scopes id ctx)))
130 (define (make-syntax-introducer [as-use-site? #f])
131 (do-make-syntax-introducer (new-scope (if as-use-site? 'use-site 'macro))))
321 (define/who (syntax-local-lift-require s use-s)
343 (define result-s (add-scope use-s sc))
[all …]
/dports/lang/racket/racket-8.3/share/pkgs/racket-doc/scribblings/reference/
H A Dstx-trans.scrbl320 Expansion records @tech{use-site scopes} for removal from definition bindings. When the
321 @racket[intdef-ctx] argument is an internal-definition context, use-site scopes are recorded
323 use-site scopes are recorded with the current expand context.
503 @tech{macro-introduction scopes} and @tech{use-site scopes} on the arguments
512 @tech{use-site scopes} and which @tech{code inspector} to use during
536 should use @racket[internal-definition-context-add-scopes] to apply the context's scopes to the syn…
567 An @tech{internal-definition context} also tracks @tech{use-site scopes} created during expansion
587 @defproc[(internal-definition-context-add-scopes [intdef-ctx internal-definition-context?]
674 @racket[internal-definition-context-add-scopes] and
1143 context, the function removes use-site scopes created during expansion
[all …]
H A Dsyntax-model.scrbl493 @item{@deftech{internal-definition context} : in a nested context that allows
623 so that only use-site @tech{syntax objects} have the @tech{use-site scope}.
654 definition is in the same context where the @tech{use-site scope} was
655 introduced. This special treatment of @tech{use-site scopes} allows a
824 In certain contexts, such as an @tech{internal-definition context} or
839 An @tech{internal-definition context} supports local definitions mixed
842 internal-definition context are equivalent to local binding via
876 form as the internal-definition context's expansion. Otherwise, at
886 scope} on the content of the internal-definition context. This
892 internal-definition context have a particular scope in common.
[all …]
/dports/lang/racket/racket-8.3/collects/racket/private/
H A Dlocal.rkt10 ; definition context via `define`. The expander does not understand that theese
11 ; bindings are intended to be local to the form and will remove use-site
12 ; scopes. To avoid ambiguous reference problems, do-local needs to treat
13 ; use-site scopes in the same way for the initial bindings. So when
14 ; splicing-hygiene-hack? is true, use-site scopes from the surronding context
20 (let* ([def-ctx (syntax-local-make-definition-context)]
25 [expand-context (cons (gensym 'intdef)
38 expand-context
78 (internal-definition-context-seal def-ctx)
110 (internal-definition-context-introduce
[all …]
/dports/lang/racket-minimal/racket-8.3/collects/racket/private/
H A Dlocal.rkt10 ; definition context via `define`. The expander does not understand that theese
11 ; bindings are intended to be local to the form and will remove use-site
12 ; scopes. To avoid ambiguous reference problems, do-local needs to treat
13 ; use-site scopes in the same way for the initial bindings. So when
14 ; splicing-hygiene-hack? is true, use-site scopes from the surronding context
20 (let* ([def-ctx (syntax-local-make-definition-context)]
25 [expand-context (cons (gensym 'intdef)
38 expand-context
78 (internal-definition-context-seal def-ctx)
110 (internal-definition-context-introduce
[all …]
/dports/lang/racket-minimal/racket-8.3/src/bc/src/
H A Dstartup.inc12235 " root-expand-context/outer-use-site-scopes"
12326 "(root-expand-context-use-site-scopes)"
16273 "((use-site-scopes26_0)(root-expand-context-use-site-scopes root-ctx_0))"
46675 " internal-definition-context-use-site-scopes"
47499 "(1/internal-definition-context-add-scopes)"
47502 " 'internal-definition-context-add-scopes"
47715 "(internal-definition-context-use-site-scopes intdefs_0)"
47895 "(let-values(((use-sites_0)(internal-definition-context-use-site-scopes intdef_0)))"
66843 " 'internal-definition-context-add-scopes"
67158 "((internal-definition-context-add-scopes225_0) 1/internal-definition-context-add-scopes))"
[all …]
/dports/lang/racket/racket-8.3/src/bc/src/
H A Dstartup.inc12235 " root-expand-context/outer-use-site-scopes"
12326 "(root-expand-context-use-site-scopes)"
16273 "((use-site-scopes26_0)(root-expand-context-use-site-scopes root-ctx_0))"
46675 " internal-definition-context-use-site-scopes"
47499 "(1/internal-definition-context-add-scopes)"
47502 " 'internal-definition-context-add-scopes"
47715 "(internal-definition-context-use-site-scopes intdefs_0)"
47895 "(let-values(((use-sites_0)(internal-definition-context-use-site-scopes intdef_0)))"
66843 " 'internal-definition-context-add-scopes"
67158 "((internal-definition-context-add-scopes225_0) 1/internal-definition-context-add-scopes))"
[all …]
/dports/lang/racket-minimal/racket-8.3/src/expander/
H A Ddemo.rkt207 "use-site scopes (so not ambiguous)"
223 "use-site scope remove from binding position"
236 "compile-time scopes pruned by `quote-syntax`"
244 (define-syntaxes (wrap) ; to provoke a use-site scope
419 #rx"expanded syntax not in its original lexical context")
421 "internal definition context"
428 [(intdef) (syntax-local-make-definition-context)])
450 (internal-definition-context-introduce
668 (eval-module-declaration '(module with-use-site-scope '#%kernel
709 (namespace-require ''with-use-site-scope demo-ns)
[all …]
/dports/lang/racket/racket-8.3/src/expander/
H A Ddemo.rkt207 "use-site scopes (so not ambiguous)"
223 "use-site scope remove from binding position"
236 "compile-time scopes pruned by `quote-syntax`"
244 (define-syntaxes (wrap) ; to provoke a use-site scope
419 #rx"expanded syntax not in its original lexical context")
421 "internal definition context"
428 [(intdef) (syntax-local-make-definition-context)])
450 (internal-definition-context-introduce
668 (eval-module-declaration '(module with-use-site-scope '#%kernel
709 (namespace-require ''with-use-site-scope demo-ns)
[all …]
/dports/editors/xi-core/xi-editor-0.3.0/rust/cargo-crates/syntect-3.2.0/
H A DReadme.md39 - [x] Include easy to use API for basic cases
63 use syntect::easy::HighlightLines;
64 use syntect::parsing::SyntaxSet;
65 use syntect::highlighting::{ThemeSet, Style};
87 - [x] Compact binary representation of scopes to allow quickly passing and copying them around
101 …ing only, takes ~200ms click to pixels), despite having a super fancy javascript syntax definition.
106 …- but only ~23ms to load and link all the syntax definitions from an internal pre-made binary dump…
118 Because `syntect`'s API exposes internal cacheable data structures, there is a caching strategy tha…
141 …highlighted code. Demonstrates how syntect could be used by web servers and static site generators.
170 - [Gutenberg](https://github.com/Keats/gutenberg), a static site generator that uses `syntect` for …
[all …]
/dports/editors/xi-term/xi-term-d264767/cargo-crates/syntect-3.2.0/
H A DReadme.md39 - [x] Include easy to use API for basic cases
63 use syntect::easy::HighlightLines;
64 use syntect::parsing::SyntaxSet;
65 use syntect::highlighting::{ThemeSet, Style};
87 - [x] Compact binary representation of scopes to allow quickly passing and copying them around
101 …ing only, takes ~200ms click to pixels), despite having a super fancy javascript syntax definition.
106 …- but only ~23ms to load and link all the syntax definitions from an internal pre-made binary dump…
118 Because `syntect`'s API exposes internal cacheable data structures, there is a caching strategy tha…
141 …highlighted code. Demonstrates how syntect could be used by web servers and static site generators.
170 - [Gutenberg](https://github.com/Keats/gutenberg), a static site generator that uses `syntect` for …
[all …]
/dports/misc/broot/broot-1.7.0/cargo-crates/syntect-4.6.0/
H A DReadme.md43 - [x] Include easy to use API for basic cases
57 first the sRGB colours aren't corrected properly, and second the Rust syntax definition uses some f…
70 use syntect::easy::HighlightLines;
71 use syntect::parsing::SyntaxSet;
94 - [x] Compact binary representation of scopes to allow quickly passing and copying them around
108 …g only, takes `~200ms` click to pixels), despite having a super fancy javascript syntax definition.
115 …- but only `~23ms` to load and link all the syntax definitions from an internal pre-made binary du…
153 Because `syntect`'s API exposes internal cacheable data structures, there is a caching strategy tha…
195 Demonstrates how syntect could be used by web servers and static site generators.
230 - [Cobalt](https://github.com/cobalt-org/cobalt.rs), a static site generator that uses `syntect` fo…
[all …]
/dports/devel/git-delta/delta-0.9.2/cargo-crates/syntect-4.6.0/
H A DReadme.md43 - [x] Include easy to use API for basic cases
57 first the sRGB colours aren't corrected properly, and second the Rust syntax definition uses some f…
70 use syntect::easy::HighlightLines;
71 use syntect::parsing::SyntaxSet;
94 - [x] Compact binary representation of scopes to allow quickly passing and copying them around
108 …g only, takes `~200ms` click to pixels), despite having a super fancy javascript syntax definition.
115 …- but only `~23ms` to load and link all the syntax definitions from an internal pre-made binary du…
153 Because `syntect`'s API exposes internal cacheable data structures, there is a caching strategy tha…
195 Demonstrates how syntect could be used by web servers and static site generators.
230 - [Cobalt](https://github.com/cobalt-org/cobalt.rs), a static site generator that uses `syntect` fo…
[all …]
/dports/security/cargo-audit/rustsec-cargo-audit-v0.15.2/cargo-audit/cargo-crates/syntect-4.6.0/
H A DReadme.md43 - [x] Include easy to use API for basic cases
57 first the sRGB colours aren't corrected properly, and second the Rust syntax definition uses some f…
70 use syntect::easy::HighlightLines;
71 use syntect::parsing::SyntaxSet;
94 - [x] Compact binary representation of scopes to allow quickly passing and copying them around
108 …g only, takes `~200ms` click to pixels), despite having a super fancy javascript syntax definition.
115 …- but only `~23ms` to load and link all the syntax definitions from an internal pre-made binary du…
153 Because `syntect`'s API exposes internal cacheable data structures, there is a caching strategy tha…
195 Demonstrates how syntect could be used by web servers and static site generators.
230 - [Cobalt](https://github.com/cobalt-org/cobalt.rs), a static site generator that uses `syntect` fo…
[all …]
/dports/www/xh/xh-0.14.1/cargo-crates/syntect-4.6.0/
H A DReadme.md43 - [x] Include easy to use API for basic cases
57 first the sRGB colours aren't corrected properly, and second the Rust syntax definition uses some f…
70 use syntect::easy::HighlightLines;
71 use syntect::parsing::SyntaxSet;
94 - [x] Compact binary representation of scopes to allow quickly passing and copying them around
108 …g only, takes `~200ms` click to pixels), despite having a super fancy javascript syntax definition.
115 …- but only `~23ms` to load and link all the syntax definitions from an internal pre-made binary du…
153 Because `syntect`'s API exposes internal cacheable data structures, there is a caching strategy tha…
195 Demonstrates how syntect could be used by web servers and static site generators.
230 - [Cobalt](https://github.com/cobalt-org/cobalt.rs), a static site generator that uses `syntect` fo…
[all …]
/dports/www/zola/zola-0.15.2/cargo-crates/syntect-4.6.0/
H A DReadme.md43 - [x] Include easy to use API for basic cases
57 first the sRGB colours aren't corrected properly, and second the Rust syntax definition uses some f…
70 use syntect::easy::HighlightLines;
71 use syntect::parsing::SyntaxSet;
94 - [x] Compact binary representation of scopes to allow quickly passing and copying them around
108 …g only, takes `~200ms` click to pixels), despite having a super fancy javascript syntax definition.
115 …- but only `~23ms` to load and link all the syntax definitions from an internal pre-made binary du…
153 Because `syntect`'s API exposes internal cacheable data structures, there is a caching strategy tha…
195 Demonstrates how syntect could be used by web servers and static site generators.
230 - [Cobalt](https://github.com/cobalt-org/cobalt.rs), a static site generator that uses `syntect` fo…
[all …]

12345678910>>...63