@blockml/compiler 0.9.3 → 0.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/blocks/org/blockml/bml/compiler/runtime/Library.bml +19 -26
- package/blocks/org/blockml/bml/compiler/runtime/README.bml +14 -21
- package/blocks/org/blockml/bml/compiler/runtime/RuntimeType.bml +16 -18
- package/blocks/org/blockml/bml/compiler/runtime/api/CompileBomOptions.bml +34 -22
- package/blocks/org/blockml/bml/compiler/runtime/api/CompileInput.bml +28 -20
- package/blocks/org/blockml/bml/compiler/runtime/api/CompileOptions.bml +29 -21
- package/blocks/org/blockml/bml/compiler/runtime/api/CompileRequest.bml +23 -19
- package/blocks/org/blockml/bml/compiler/runtime/api/CompileScope.bml +38 -22
- package/blocks/org/blockml/bml/compiler/runtime/api/CompileScopeKind.bml +33 -21
- package/blocks/org/blockml/bml/compiler/runtime/api/CompilerResult.bml +28 -20
- package/blocks/org/blockml/bml/compiler/runtime/api/RenderContext.bml +28 -20
- package/blocks/org/blockml/bml/compiler/runtime/api/RenderOutput.bml +28 -20
- package/blocks/org/blockml/bml/compiler/runtime/api/RenderOutputFile.bml +23 -19
- package/blocks/org/blockml/bml/compiler/runtime/api/RenderSession.bml +49 -25
- package/blocks/org/blockml/bml/compiler/runtime/api/RenderTarget.bml +33 -21
- package/blocks/org/blockml/bml/compiler/runtime/api/ResolvedScope.bml +33 -21
- package/blocks/org/blockml/bml/compiler/runtime/api/ScopeConfigHints.bml +28 -20
- package/blocks/org/blockml/bml/compiler/runtime/api/ValidateRegistryResult.bml +28 -20
- package/blocks/org/blockml/bml/compiler/runtime/capability/BuildRenderSession.bml +20 -22
- package/blocks/org/blockml/bml/compiler/runtime/capability/ClearTargets.bml +13 -20
- package/blocks/org/blockml/bml/compiler/runtime/capability/CompileBmlToBom.bml +22 -22
- package/blocks/org/blockml/bml/compiler/runtime/capability/CompileBmlToOutput.bml +25 -23
- package/blocks/org/blockml/bml/compiler/runtime/capability/CompileBomToOutput.bml +27 -27
- package/blocks/org/blockml/bml/compiler/runtime/capability/CompileToOutput.bml +28 -24
- package/blocks/org/blockml/bml/compiler/runtime/capability/CreateRenderContext.bml +25 -23
- package/blocks/org/blockml/bml/compiler/runtime/capability/GetTarget.bml +19 -21
- package/blocks/org/blockml/bml/compiler/runtime/capability/RegisterTarget.bml +17 -21
- package/blocks/org/blockml/bml/compiler/runtime/capability/RegisteredTargetNames.bml +16 -19
- package/blocks/org/blockml/bml/compiler/runtime/capability/ResolveScope.bml +25 -23
- package/blocks/org/blockml/bml/compiler/runtime/capability/ScopeAccepts.bml +22 -22
- package/blocks/org/blockml/bml/compiler/runtime/capability/ValidateRegistryDocuments.bml +23 -23
- package/blocks/org/blockml/bml/compiler/runtime/config/RuntimeConstants.bml +39 -23
- package/blocks/org/blockml/bml/compiler/runtime/documentation/ArchitectureOverview.bml +15 -19
- package/blocks/org/blockml/bml/compiler/runtime/documentation/CompileIO.bml +14 -20
- package/blocks/org/blockml/bml/compiler/runtime/documentation/CompileScopeRules.bml +15 -21
- package/blocks/org/blockml/bml/compiler/runtime/documentation/DesignDecisions.bml +17 -23
- package/blocks/org/blockml/bml/compiler/runtime/documentation/Diagnostics.bml +17 -23
- package/blocks/org/blockml/bml/compiler/runtime/documentation/ExternalTargetContract.bml +18 -22
- package/blocks/org/blockml/bml/compiler/runtime/documentation/Introduction.bml +16 -20
- package/blocks/org/blockml/bml/compiler/runtime/documentation/LayerSeparation.bml +15 -19
- package/blocks/org/blockml/bml/compiler/runtime/documentation/PackageOwnership.bml +15 -19
- package/blocks/org/blockml/bml/compiler/runtime/documentation/PublicApi.bml +15 -19
- package/blocks/org/blockml/bml/compiler/runtime/documentation/RenderContextRules.bml +14 -20
- package/blocks/org/blockml/bml/compiler/runtime/documentation/ScopeExclusions.bml +14 -18
- package/blocks/org/blockml/bml/compiler/runtime/documentation/TargetRegistry.bml +14 -20
- package/blocks/org/blockml/bml/compiler/runtime/documentation/V1Scope.bml +15 -19
- package/package.json +6 -6
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
-->
|
|
5
|
-
<block
|
|
6
|
-
xmlns="http://blockml.org/bml"
|
|
7
|
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
8
|
-
xsi:schemaLocation="http://blockml.org/bml https://blockml.org/schemas/bml.xsd
|
|
9
|
-
"
|
|
1
|
+
<!--Compiler Runtime Capability — CompileBmlToBom
|
|
2
|
+
FQN: org.blockml.bml.compiler.runtime.capability.CompileBmlToBom-->
|
|
3
|
+
<runcap:CompileBmlToBom xmlns="http://blockml.org/bml"
|
|
10
4
|
xmlns:blockml="org.blockml.bml"
|
|
11
5
|
xmlns:bom="org.blockml.bml.bom"
|
|
12
6
|
xmlns:bomapi="org.blockml.bml.bom.api"
|
|
@@ -25,28 +19,34 @@
|
|
|
25
19
|
xmlns:type="org.blockml.bml.type"
|
|
26
20
|
xmlns:validator="org.blockml.bml.compiler.validator">
|
|
27
21
|
|
|
28
|
-
<
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
<is>
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
22
|
+
<baseType>
|
|
23
|
+
core:Capability
|
|
24
|
+
</baseType>
|
|
25
|
+
<is>
|
|
26
|
+
Parse then validate a single BML document to BomDocument
|
|
27
|
+
</is>
|
|
28
|
+
<documentation>
|
|
29
|
+
Orchestrates parser parse and validator validate; does not own mapping algorithms.
|
|
30
|
+
</documentation>
|
|
35
31
|
<references>
|
|
36
32
|
<see type="parser:Library" relation="SeeAlso" />
|
|
37
33
|
<see type="validator:Library" relation="SeeAlso" />
|
|
38
34
|
</references>
|
|
39
|
-
|
|
40
35
|
<properties>
|
|
41
36
|
<input type="runapi:CompileInput">
|
|
42
|
-
<documentation>
|
|
37
|
+
<documentation>
|
|
38
|
+
Source unit. (required)
|
|
39
|
+
</documentation>
|
|
43
40
|
</input>
|
|
44
41
|
<options type="runapi:CompileOptions">
|
|
45
|
-
<documentation>
|
|
42
|
+
<documentation>
|
|
43
|
+
May supply typeRegistry. (optional)
|
|
44
|
+
</documentation>
|
|
46
45
|
</options>
|
|
47
46
|
<result type="runapi:CompilerResult">
|
|
48
|
-
<documentation>
|
|
47
|
+
<documentation>
|
|
48
|
+
BomDocument envelope. (required)
|
|
49
|
+
</documentation>
|
|
49
50
|
</result>
|
|
50
51
|
</properties>
|
|
51
|
-
|
|
52
|
-
</block>
|
|
52
|
+
</runcap:CompileBmlToBom>
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
-->
|
|
5
|
-
<block
|
|
6
|
-
xmlns="http://blockml.org/bml"
|
|
7
|
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
8
|
-
xsi:schemaLocation="http://blockml.org/bml https://blockml.org/schemas/bml.xsd
|
|
9
|
-
"
|
|
1
|
+
<!--Compiler Runtime Capability — CompileBmlToOutput
|
|
2
|
+
FQN: org.blockml.bml.compiler.runtime.capability.CompileBmlToOutput-->
|
|
3
|
+
<runcap:CompileBmlToOutput xmlns="http://blockml.org/bml"
|
|
10
4
|
xmlns:blockml="org.blockml.bml"
|
|
11
5
|
xmlns:bom="org.blockml.bml.bom"
|
|
12
6
|
xmlns:bomapi="org.blockml.bml.bom.api"
|
|
@@ -25,30 +19,38 @@
|
|
|
25
19
|
xmlns:type="org.blockml.bml.type"
|
|
26
20
|
xmlns:validator="org.blockml.bml.compiler.validator">
|
|
27
21
|
|
|
28
|
-
<
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
<is>
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
22
|
+
<baseType>
|
|
23
|
+
core:Capability
|
|
24
|
+
</baseType>
|
|
25
|
+
<is>
|
|
26
|
+
Document-scope sugar for CompileToOutput
|
|
27
|
+
</is>
|
|
28
|
+
<documentation>
|
|
29
|
+
Wraps CompileInput as scope kind document then calls CompileToOutput.
|
|
30
|
+
</documentation>
|
|
35
31
|
<references>
|
|
36
32
|
<see type="runcap:CompileToOutput" relation="SeeAlso" />
|
|
37
33
|
</references>
|
|
38
|
-
|
|
39
34
|
<properties>
|
|
40
35
|
<input type="runapi:CompileInput">
|
|
41
|
-
<documentation>
|
|
36
|
+
<documentation>
|
|
37
|
+
BML source unit. (required)
|
|
38
|
+
</documentation>
|
|
42
39
|
</input>
|
|
43
40
|
<targetName type="type:Text">
|
|
44
|
-
<documentation>
|
|
41
|
+
<documentation>
|
|
42
|
+
Registered target name. (required)
|
|
43
|
+
</documentation>
|
|
45
44
|
</targetName>
|
|
46
45
|
<options type="runapi:CompileOptions">
|
|
47
|
-
<documentation>
|
|
46
|
+
<documentation>
|
|
47
|
+
Host options. (optional)
|
|
48
|
+
</documentation>
|
|
48
49
|
</options>
|
|
49
50
|
<result type="runapi:CompilerResult">
|
|
50
|
-
<documentation>
|
|
51
|
+
<documentation>
|
|
52
|
+
RenderOutput envelope. (required)
|
|
53
|
+
</documentation>
|
|
51
54
|
</result>
|
|
52
55
|
</properties>
|
|
53
|
-
|
|
54
|
-
</block>
|
|
56
|
+
</runcap:CompileBmlToOutput>
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
-->
|
|
5
|
-
<block
|
|
6
|
-
xmlns="http://blockml.org/bml"
|
|
7
|
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
8
|
-
xsi:schemaLocation="http://blockml.org/bml https://blockml.org/schemas/bml.xsd
|
|
9
|
-
"
|
|
1
|
+
<!--Compiler Runtime Capability — CompileBomToOutput
|
|
2
|
+
FQN: org.blockml.bml.compiler.runtime.capability.CompileBomToOutput-->
|
|
3
|
+
<runcap:CompileBomToOutput xmlns="http://blockml.org/bml"
|
|
10
4
|
xmlns:blockml="org.blockml.bml"
|
|
11
5
|
xmlns:bom="org.blockml.bml.bom"
|
|
12
6
|
xmlns:bomapi="org.blockml.bml.bom.api"
|
|
@@ -25,44 +19,50 @@
|
|
|
25
19
|
xmlns:type="org.blockml.bml.type"
|
|
26
20
|
xmlns:validator="org.blockml.bml.compiler.validator">
|
|
27
21
|
|
|
28
|
-
<
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
<is>
|
|
32
|
-
|
|
22
|
+
<baseType>
|
|
23
|
+
core:Capability
|
|
24
|
+
</baseType>
|
|
25
|
+
<is>
|
|
26
|
+
BOM-first Stage-3 sugar with required TypeRegistry
|
|
27
|
+
</is>
|
|
33
28
|
<documentation>
|
|
34
29
|
# BOM-first Stage-3 sugar with required TypeRegistry
|
|
35
|
-
|
|
30
|
+
|
|
36
31
|
Renders an existing BomDocument without re-parse or bootstrap.
|
|
37
|
-
|
|
32
|
+
|
|
38
33
|
Requires CompileBomOptions.typeRegistry (BML_MISSING_TYPE_REGISTRY when absent).
|
|
39
|
-
|
|
34
|
+
|
|
40
35
|
Document scope only — target.accepts must include document.
|
|
41
|
-
|
|
36
|
+
|
|
42
37
|
Registry is passed through unchanged; host owns registry contents.
|
|
43
|
-
|
|
38
|
+
|
|
44
39
|
Synthetic CompileRequest uses scope kind document and optional targetOptions.
|
|
45
40
|
</documentation>
|
|
46
|
-
|
|
47
41
|
<references>
|
|
48
42
|
<see type="runcap:CompileToOutput" relation="SeeAlso" />
|
|
49
43
|
<see type="runapi:CompileBomOptions" relation="SeeAlso" />
|
|
50
44
|
<see type="rundocumentation:ExternalTargetContract" relation="SeeAlso" />
|
|
51
45
|
</references>
|
|
52
|
-
|
|
53
46
|
<properties>
|
|
54
47
|
<document type="type:Text">
|
|
55
|
-
<documentation>
|
|
48
|
+
<documentation>
|
|
49
|
+
BomDocument to render. (required)
|
|
50
|
+
</documentation>
|
|
56
51
|
</document>
|
|
57
52
|
<targetName type="type:Text">
|
|
58
|
-
<documentation>
|
|
53
|
+
<documentation>
|
|
54
|
+
Registered target name. (required)
|
|
55
|
+
</documentation>
|
|
59
56
|
</targetName>
|
|
60
57
|
<options type="runapi:CompileBomOptions">
|
|
61
|
-
<documentation>
|
|
58
|
+
<documentation>
|
|
59
|
+
BOM-first options including required typeRegistry. (required)
|
|
60
|
+
</documentation>
|
|
62
61
|
</options>
|
|
63
62
|
<result type="runapi:CompilerResult">
|
|
64
|
-
<documentation>
|
|
63
|
+
<documentation>
|
|
64
|
+
RenderOutput envelope. (required)
|
|
65
|
+
</documentation>
|
|
65
66
|
</result>
|
|
66
67
|
</properties>
|
|
67
|
-
|
|
68
|
-
</block>
|
|
68
|
+
</runcap:CompileBomToOutput>
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
-->
|
|
5
|
-
<block
|
|
6
|
-
xmlns="http://blockml.org/bml"
|
|
7
|
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
8
|
-
xsi:schemaLocation="http://blockml.org/bml https://blockml.org/schemas/bml.xsd
|
|
9
|
-
"
|
|
1
|
+
<!--Compiler Runtime Capability — CompileToOutput
|
|
2
|
+
FQN: org.blockml.bml.compiler.runtime.capability.CompileToOutput-->
|
|
3
|
+
<runcap:CompileToOutput xmlns="http://blockml.org/bml"
|
|
10
4
|
xmlns:blockml="org.blockml.bml"
|
|
11
5
|
xmlns:bom="org.blockml.bml.bom"
|
|
12
6
|
xmlns:bomapi="org.blockml.bml.bom.api"
|
|
@@ -25,34 +19,44 @@
|
|
|
25
19
|
xmlns:type="org.blockml.bml.type"
|
|
26
20
|
xmlns:validator="org.blockml.bml.compiler.validator">
|
|
27
21
|
|
|
28
|
-
<
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
<is>
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
22
|
+
<baseType>
|
|
23
|
+
core:Capability
|
|
24
|
+
</baseType>
|
|
25
|
+
<is>
|
|
26
|
+
Normative Stage-3 facade: request plus target name to CompilerResult
|
|
27
|
+
</is>
|
|
28
|
+
<documentation>
|
|
29
|
+
C2: getTarget → optional validateRequest → ResolveScope → scopeAccepts → bootstrapForScope → (document: ValidateRegistryDocuments) → BuildRenderSession → CreateRenderContext → target.render. Emits BML_UNKNOWN_TARGET / BML_TARGET_SCOPE_MISMATCH.
|
|
30
|
+
</documentation>
|
|
35
31
|
<references>
|
|
36
32
|
<see type="rundocumentation:PublicApi" relation="SeeAlso" />
|
|
37
33
|
<see type="rundocumentation:ArchitectureOverview" relation="SeeAlso" />
|
|
38
34
|
</references>
|
|
39
|
-
|
|
40
35
|
<properties>
|
|
41
36
|
<request type="runapi:CompileRequest">
|
|
42
|
-
<documentation>
|
|
37
|
+
<documentation>
|
|
38
|
+
Compile request. (required)
|
|
39
|
+
</documentation>
|
|
43
40
|
</request>
|
|
44
41
|
<targetName type="type:Text">
|
|
45
|
-
<documentation>
|
|
42
|
+
<documentation>
|
|
43
|
+
Registered target name. (required)
|
|
44
|
+
</documentation>
|
|
46
45
|
</targetName>
|
|
47
46
|
<options type="runapi:CompileOptions">
|
|
48
|
-
<documentation>
|
|
47
|
+
<documentation>
|
|
48
|
+
Host compile options. (optional)
|
|
49
|
+
</documentation>
|
|
49
50
|
</options>
|
|
50
51
|
<configHints type="runapi:ScopeConfigHints">
|
|
51
|
-
<documentation>
|
|
52
|
+
<documentation>
|
|
53
|
+
Scope hints from host config. (optional)
|
|
54
|
+
</documentation>
|
|
52
55
|
</configHints>
|
|
53
56
|
<result type="runapi:CompilerResult">
|
|
54
|
-
<documentation>
|
|
57
|
+
<documentation>
|
|
58
|
+
RenderOutput envelope. (required)
|
|
59
|
+
</documentation>
|
|
55
60
|
</result>
|
|
56
61
|
</properties>
|
|
57
|
-
|
|
58
|
-
</block>
|
|
62
|
+
</runcap:CompileToOutput>
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
-->
|
|
5
|
-
<block
|
|
6
|
-
xmlns="http://blockml.org/bml"
|
|
7
|
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
8
|
-
xsi:schemaLocation="http://blockml.org/bml https://blockml.org/schemas/bml.xsd
|
|
9
|
-
"
|
|
1
|
+
<!--Compiler Runtime Capability — CreateRenderContext
|
|
2
|
+
FQN: org.blockml.bml.compiler.runtime.capability.CreateRenderContext-->
|
|
3
|
+
<runcap:CreateRenderContext xmlns="http://blockml.org/bml"
|
|
10
4
|
xmlns:blockml="org.blockml.bml"
|
|
11
5
|
xmlns:bom="org.blockml.bml.bom"
|
|
12
6
|
xmlns:bomapi="org.blockml.bml.bom.api"
|
|
@@ -25,30 +19,38 @@
|
|
|
25
19
|
xmlns:type="org.blockml.bml.type"
|
|
26
20
|
xmlns:validator="org.blockml.bml.compiler.validator">
|
|
27
21
|
|
|
28
|
-
<
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
<is>
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
22
|
+
<baseType>
|
|
23
|
+
core:Capability
|
|
24
|
+
</baseType>
|
|
25
|
+
<is>
|
|
26
|
+
Create root RenderContext for a session
|
|
27
|
+
</is>
|
|
28
|
+
<documentation>
|
|
29
|
+
C1: optional blockFqn and outputRelativePath default empty; child forks overrides.
|
|
30
|
+
</documentation>
|
|
35
31
|
<references>
|
|
36
32
|
<see type="rundocumentation:RenderContextRules" relation="SeeAlso" />
|
|
37
33
|
</references>
|
|
38
|
-
|
|
39
34
|
<properties>
|
|
40
35
|
<session type="runapi:RenderSession">
|
|
41
|
-
<documentation>
|
|
36
|
+
<documentation>
|
|
37
|
+
Session. (required)
|
|
38
|
+
</documentation>
|
|
42
39
|
</session>
|
|
43
40
|
<blockFqn type="type:Text">
|
|
44
|
-
<documentation>
|
|
41
|
+
<documentation>
|
|
42
|
+
Initial block FQN. (optional)
|
|
43
|
+
</documentation>
|
|
45
44
|
</blockFqn>
|
|
46
45
|
<outputRelativePath type="type:Text">
|
|
47
|
-
<documentation>
|
|
46
|
+
<documentation>
|
|
47
|
+
Initial relative path. (optional)
|
|
48
|
+
</documentation>
|
|
48
49
|
</outputRelativePath>
|
|
49
50
|
<result type="runapi:RenderContext">
|
|
50
|
-
<documentation>
|
|
51
|
+
<documentation>
|
|
52
|
+
Root context. (required)
|
|
53
|
+
</documentation>
|
|
51
54
|
</result>
|
|
52
55
|
</properties>
|
|
53
|
-
|
|
54
|
-
</block>
|
|
56
|
+
</runcap:CreateRenderContext>
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
-->
|
|
5
|
-
<block
|
|
6
|
-
xmlns="http://blockml.org/bml"
|
|
7
|
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
8
|
-
xsi:schemaLocation="http://blockml.org/bml https://blockml.org/schemas/bml.xsd
|
|
9
|
-
"
|
|
1
|
+
<!--Compiler Runtime Capability — GetTarget
|
|
2
|
+
FQN: org.blockml.bml.compiler.runtime.capability.GetTarget-->
|
|
3
|
+
<runcap:GetTarget xmlns="http://blockml.org/bml"
|
|
10
4
|
xmlns:blockml="org.blockml.bml"
|
|
11
5
|
xmlns:bom="org.blockml.bml.bom"
|
|
12
6
|
xmlns:bomapi="org.blockml.bml.bom.api"
|
|
@@ -25,24 +19,28 @@
|
|
|
25
19
|
xmlns:type="org.blockml.bml.type"
|
|
26
20
|
xmlns:validator="org.blockml.bml.compiler.validator">
|
|
27
21
|
|
|
28
|
-
<
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
<is>
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
22
|
+
<baseType>
|
|
23
|
+
core:Capability
|
|
24
|
+
</baseType>
|
|
25
|
+
<is>
|
|
26
|
+
Look up a registered RenderTarget by name
|
|
27
|
+
</is>
|
|
28
|
+
<documentation>
|
|
29
|
+
Returns undefined when missing; CompileToOutput turns that into BML_UNKNOWN_TARGET.
|
|
30
|
+
</documentation>
|
|
35
31
|
<references>
|
|
36
32
|
<see type="rundocumentation:TargetRegistry" relation="SeeAlso" />
|
|
37
33
|
</references>
|
|
38
|
-
|
|
39
34
|
<properties>
|
|
40
35
|
<name type="type:Text">
|
|
41
|
-
<documentation>
|
|
36
|
+
<documentation>
|
|
37
|
+
Target name. (required)
|
|
38
|
+
</documentation>
|
|
42
39
|
</name>
|
|
43
40
|
<result type="runapi:RenderTarget">
|
|
44
|
-
<documentation>
|
|
41
|
+
<documentation>
|
|
42
|
+
Target or absent. (optional)
|
|
43
|
+
</documentation>
|
|
45
44
|
</result>
|
|
46
45
|
</properties>
|
|
47
|
-
|
|
48
|
-
</block>
|
|
46
|
+
</runcap:GetTarget>
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
-->
|
|
5
|
-
<block
|
|
6
|
-
xmlns="http://blockml.org/bml"
|
|
7
|
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
8
|
-
xsi:schemaLocation="http://blockml.org/bml https://blockml.org/schemas/bml.xsd
|
|
9
|
-
"
|
|
1
|
+
<!--Compiler Runtime Capability — RegisterTarget
|
|
2
|
+
FQN: org.blockml.bml.compiler.runtime.capability.RegisterTarget-->
|
|
3
|
+
<runcap:RegisterTarget xmlns="http://blockml.org/bml"
|
|
10
4
|
xmlns:blockml="org.blockml.bml"
|
|
11
5
|
xmlns:bom="org.blockml.bml.bom"
|
|
12
6
|
xmlns:bomapi="org.blockml.bml.bom.api"
|
|
@@ -25,23 +19,25 @@
|
|
|
25
19
|
xmlns:type="org.blockml.bml.type"
|
|
26
20
|
xmlns:validator="org.blockml.bml.compiler.validator">
|
|
27
21
|
|
|
28
|
-
<
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
<is>
|
|
32
|
-
|
|
33
|
-
|
|
22
|
+
<baseType>
|
|
23
|
+
core:Capability
|
|
24
|
+
</baseType>
|
|
25
|
+
<is>
|
|
26
|
+
Register a RenderTarget in the in-memory Target Registry
|
|
27
|
+
</is>
|
|
28
|
+
<documentation>
|
|
29
|
+
C3: overwrites same name; registry starts empty — no built-in targets.
|
|
34
30
|
Validates before store (host programming errors throw): name non-empty; accepts non-empty
|
|
35
|
-
and only valid CompileScopeKind values; render is a function; validateRequest if set is a function
|
|
36
|
-
|
|
31
|
+
and only valid CompileScopeKind values; render is a function; validateRequest if set is a function.
|
|
32
|
+
</documentation>
|
|
37
33
|
<references>
|
|
38
34
|
<see type="rundocumentation:TargetRegistry" relation="SeeAlso" />
|
|
39
35
|
</references>
|
|
40
|
-
|
|
41
36
|
<properties>
|
|
42
37
|
<target type="runapi:RenderTarget">
|
|
43
|
-
<documentation>
|
|
38
|
+
<documentation>
|
|
39
|
+
Target to register. (required)
|
|
40
|
+
</documentation>
|
|
44
41
|
</target>
|
|
45
42
|
</properties>
|
|
46
|
-
|
|
47
|
-
</block>
|
|
43
|
+
</runcap:RegisterTarget>
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
-->
|
|
5
|
-
<block
|
|
6
|
-
xmlns="http://blockml.org/bml"
|
|
7
|
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
8
|
-
xsi:schemaLocation="http://blockml.org/bml https://blockml.org/schemas/bml.xsd
|
|
9
|
-
"
|
|
1
|
+
<!--Compiler Runtime Capability — RegisteredTargetNames
|
|
2
|
+
FQN: org.blockml.bml.compiler.runtime.capability.RegisteredTargetNames-->
|
|
3
|
+
<runcap:RegisteredTargetNames xmlns="http://blockml.org/bml"
|
|
10
4
|
xmlns:blockml="org.blockml.bml"
|
|
11
5
|
xmlns:bom="org.blockml.bml.bom"
|
|
12
6
|
xmlns:bomapi="org.blockml.bml.bom.api"
|
|
@@ -25,17 +19,20 @@
|
|
|
25
19
|
xmlns:type="org.blockml.bml.type"
|
|
26
20
|
xmlns:validator="org.blockml.bml.compiler.validator">
|
|
27
21
|
|
|
28
|
-
<
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
<is>
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
22
|
+
<baseType>
|
|
23
|
+
core:Capability
|
|
24
|
+
</baseType>
|
|
25
|
+
<is>
|
|
26
|
+
List registered target names
|
|
27
|
+
</is>
|
|
28
|
+
<documentation>
|
|
29
|
+
Returns keys of the in-memory registry map.
|
|
30
|
+
</documentation>
|
|
35
31
|
<properties>
|
|
36
32
|
<result type="type:Text">
|
|
37
|
-
<documentation>
|
|
33
|
+
<documentation>
|
|
34
|
+
Target name list. (required)
|
|
35
|
+
</documentation>
|
|
38
36
|
</result>
|
|
39
37
|
</properties>
|
|
40
|
-
|
|
41
|
-
</block>
|
|
38
|
+
</runcap:RegisteredTargetNames>
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
-->
|
|
5
|
-
<block
|
|
6
|
-
xmlns="http://blockml.org/bml"
|
|
7
|
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
8
|
-
xsi:schemaLocation="http://blockml.org/bml https://blockml.org/schemas/bml.xsd
|
|
9
|
-
"
|
|
1
|
+
<!--Compiler Runtime Capability — ResolveScope
|
|
2
|
+
FQN: org.blockml.bml.compiler.runtime.capability.ResolveScope-->
|
|
3
|
+
<runcap:ResolveScope xmlns="http://blockml.org/bml"
|
|
10
4
|
xmlns:blockml="org.blockml.bml"
|
|
11
5
|
xmlns:bom="org.blockml.bml.bom"
|
|
12
6
|
xmlns:bomapi="org.blockml.bml.bom.api"
|
|
@@ -25,30 +19,38 @@
|
|
|
25
19
|
xmlns:type="org.blockml.bml.type"
|
|
26
20
|
xmlns:validator="org.blockml.bml.compiler.validator">
|
|
27
21
|
|
|
28
|
-
<
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
<is>
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
22
|
+
<baseType>
|
|
23
|
+
core:Capability
|
|
24
|
+
</baseType>
|
|
25
|
+
<is>
|
|
26
|
+
Resolve CompileScope to ResolvedScope or empty diagnostic
|
|
27
|
+
</is>
|
|
28
|
+
<documentation>
|
|
29
|
+
C7: document requires document; library/corpus use scope fields then ScopeConfigHints; auto prefers libraries then roots; empty → BML_COMPILE_SCOPE_EMPTY.
|
|
30
|
+
</documentation>
|
|
35
31
|
<references>
|
|
36
32
|
<see type="rundocumentation:CompileScopeRules" relation="SeeAlso" />
|
|
37
33
|
</references>
|
|
38
|
-
|
|
39
34
|
<properties>
|
|
40
35
|
<scope type="runapi:CompileScope">
|
|
41
|
-
<documentation>
|
|
36
|
+
<documentation>
|
|
37
|
+
Input scope. (required)
|
|
38
|
+
</documentation>
|
|
42
39
|
</scope>
|
|
43
40
|
<hints type="runapi:ScopeConfigHints">
|
|
44
|
-
<documentation>
|
|
41
|
+
<documentation>
|
|
42
|
+
Host hints. (optional)
|
|
43
|
+
</documentation>
|
|
45
44
|
</hints>
|
|
46
45
|
<resolved type="runapi:ResolvedScope">
|
|
47
|
-
<documentation>
|
|
46
|
+
<documentation>
|
|
47
|
+
Concrete scope or null. (optional)
|
|
48
|
+
</documentation>
|
|
48
49
|
</resolved>
|
|
49
50
|
<diagnostics type="type:Text">
|
|
50
|
-
<documentation>
|
|
51
|
+
<documentation>
|
|
52
|
+
Scope diagnostics. (required)
|
|
53
|
+
</documentation>
|
|
51
54
|
</diagnostics>
|
|
52
55
|
</properties>
|
|
53
|
-
|
|
54
|
-
</block>
|
|
56
|
+
</runcap:ResolveScope>
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
-->
|
|
5
|
-
<block
|
|
6
|
-
xmlns="http://blockml.org/bml"
|
|
7
|
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
8
|
-
xsi:schemaLocation="http://blockml.org/bml https://blockml.org/schemas/bml.xsd
|
|
9
|
-
"
|
|
1
|
+
<!--Compiler Runtime Capability — ScopeAccepts
|
|
2
|
+
FQN: org.blockml.bml.compiler.runtime.capability.ScopeAccepts-->
|
|
3
|
+
<runcap:ScopeAccepts xmlns="http://blockml.org/bml"
|
|
10
4
|
xmlns:blockml="org.blockml.bml"
|
|
11
5
|
xmlns:bom="org.blockml.bml.bom"
|
|
12
6
|
xmlns:bomapi="org.blockml.bml.bom.api"
|
|
@@ -25,27 +19,33 @@
|
|
|
25
19
|
xmlns:type="org.blockml.bml.type"
|
|
26
20
|
xmlns:validator="org.blockml.bml.compiler.validator">
|
|
27
21
|
|
|
28
|
-
<
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
<is>
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
22
|
+
<baseType>
|
|
23
|
+
core:Capability
|
|
24
|
+
</baseType>
|
|
25
|
+
<is>
|
|
26
|
+
Whether a resolved kind is accepted by a target accepts list
|
|
27
|
+
</is>
|
|
28
|
+
<documentation>
|
|
29
|
+
True if accepts includes the resolved kind; also true if accepts includes auto and kind is library or corpus.
|
|
30
|
+
</documentation>
|
|
35
31
|
<references>
|
|
36
32
|
<see type="rundocumentation:CompileScopeRules" relation="SeeAlso" />
|
|
37
33
|
</references>
|
|
38
|
-
|
|
39
34
|
<properties>
|
|
40
35
|
<resolvedKind type="type:Text">
|
|
41
|
-
<documentation>
|
|
36
|
+
<documentation>
|
|
37
|
+
document | library | corpus. (required)
|
|
38
|
+
</documentation>
|
|
42
39
|
</resolvedKind>
|
|
43
40
|
<accepts type="type:Text">
|
|
44
|
-
<documentation>
|
|
41
|
+
<documentation>
|
|
42
|
+
Target accepts array. (required)
|
|
43
|
+
</documentation>
|
|
45
44
|
</accepts>
|
|
46
45
|
<result type="type:Boolean">
|
|
47
|
-
<documentation>
|
|
46
|
+
<documentation>
|
|
47
|
+
True if accepted. (required)
|
|
48
|
+
</documentation>
|
|
48
49
|
</result>
|
|
49
50
|
</properties>
|
|
50
|
-
|
|
51
|
-
</block>
|
|
51
|
+
</runcap:ScopeAccepts>
|