@blockml/compiler 0.1.0

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.
Files changed (74) hide show
  1. package/blocks/org/blockml/bml/compiler/runtime/Library.bml +121 -0
  2. package/blocks/org/blockml/bml/compiler/runtime/README.bml +60 -0
  3. package/blocks/org/blockml/bml/compiler/runtime/RuntimeType.bml +36 -0
  4. package/blocks/org/blockml/bml/compiler/runtime/api/CompileBomOptions.bml +46 -0
  5. package/blocks/org/blockml/bml/compiler/runtime/api/CompileInput.bml +43 -0
  6. package/blocks/org/blockml/bml/compiler/runtime/api/CompileOptions.bml +44 -0
  7. package/blocks/org/blockml/bml/compiler/runtime/api/CompileRequest.bml +42 -0
  8. package/blocks/org/blockml/bml/compiler/runtime/api/CompileScope.bml +45 -0
  9. package/blocks/org/blockml/bml/compiler/runtime/api/CompileScopeKind.bml +44 -0
  10. package/blocks/org/blockml/bml/compiler/runtime/api/CompilerResult.bml +43 -0
  11. package/blocks/org/blockml/bml/compiler/runtime/api/RenderContext.bml +43 -0
  12. package/blocks/org/blockml/bml/compiler/runtime/api/RenderOutput.bml +43 -0
  13. package/blocks/org/blockml/bml/compiler/runtime/api/RenderOutputFile.bml +42 -0
  14. package/blocks/org/blockml/bml/compiler/runtime/api/RenderSession.bml +49 -0
  15. package/blocks/org/blockml/bml/compiler/runtime/api/RenderTarget.bml +44 -0
  16. package/blocks/org/blockml/bml/compiler/runtime/api/ResolvedScope.bml +44 -0
  17. package/blocks/org/blockml/bml/compiler/runtime/api/ScopeConfigHints.bml +43 -0
  18. package/blocks/org/blockml/bml/compiler/runtime/capability/BuildRenderSession.bml +49 -0
  19. package/blocks/org/blockml/bml/compiler/runtime/capability/ClearTargets.bml +41 -0
  20. package/blocks/org/blockml/bml/compiler/runtime/capability/CompileBmlToBom.bml +52 -0
  21. package/blocks/org/blockml/bml/compiler/runtime/capability/CompileBmlToOutput.bml +54 -0
  22. package/blocks/org/blockml/bml/compiler/runtime/capability/CompileBomToOutput.bml +60 -0
  23. package/blocks/org/blockml/bml/compiler/runtime/capability/CompileToOutput.bml +58 -0
  24. package/blocks/org/blockml/bml/compiler/runtime/capability/CreateRenderContext.bml +54 -0
  25. package/blocks/org/blockml/bml/compiler/runtime/capability/GetTarget.bml +48 -0
  26. package/blocks/org/blockml/bml/compiler/runtime/capability/RegisterTarget.bml +47 -0
  27. package/blocks/org/blockml/bml/compiler/runtime/capability/RegisteredTargetNames.bml +41 -0
  28. package/blocks/org/blockml/bml/compiler/runtime/capability/ResolveScope.bml +54 -0
  29. package/blocks/org/blockml/bml/compiler/runtime/capability/ScopeAccepts.bml +51 -0
  30. package/blocks/org/blockml/bml/compiler/runtime/capability/ValidateRegistryDocuments.bml +51 -0
  31. package/blocks/org/blockml/bml/compiler/runtime/config/RuntimeConstants.bml +43 -0
  32. package/blocks/org/blockml/bml/compiler/runtime/documentation/ArchitectureOverview.bml +49 -0
  33. package/blocks/org/blockml/bml/compiler/runtime/documentation/CompileIO.bml +44 -0
  34. package/blocks/org/blockml/bml/compiler/runtime/documentation/CompileScopeRules.bml +46 -0
  35. package/blocks/org/blockml/bml/compiler/runtime/documentation/DesignDecisions.bml +47 -0
  36. package/blocks/org/blockml/bml/compiler/runtime/documentation/Diagnostics.bml +47 -0
  37. package/blocks/org/blockml/bml/compiler/runtime/documentation/ExternalTargetContract.bml +63 -0
  38. package/blocks/org/blockml/bml/compiler/runtime/documentation/Introduction.bml +49 -0
  39. package/blocks/org/blockml/bml/compiler/runtime/documentation/LayerSeparation.bml +48 -0
  40. package/blocks/org/blockml/bml/compiler/runtime/documentation/PackageOwnership.bml +46 -0
  41. package/blocks/org/blockml/bml/compiler/runtime/documentation/PublicApi.bml +52 -0
  42. package/blocks/org/blockml/bml/compiler/runtime/documentation/RenderContextRules.bml +47 -0
  43. package/blocks/org/blockml/bml/compiler/runtime/documentation/ScopeExclusions.bml +43 -0
  44. package/blocks/org/blockml/bml/compiler/runtime/documentation/TargetRegistry.bml +48 -0
  45. package/blocks/org/blockml/bml/compiler/runtime/documentation/V1Scope.bml +50 -0
  46. package/dist/compile-bml-to-bom.d.ts +6 -0
  47. package/dist/compile-bml-to-bom.d.ts.map +1 -0
  48. package/dist/compile-bml-to-bom.js +51 -0
  49. package/dist/compile-bml-to-bom.js.map +1 -0
  50. package/dist/compile-to-output.d.ts +6 -0
  51. package/dist/compile-to-output.d.ts.map +1 -0
  52. package/dist/compile-to-output.js +198 -0
  53. package/dist/compile-to-output.js.map +1 -0
  54. package/dist/index.d.ts +7 -0
  55. package/dist/index.d.ts.map +1 -0
  56. package/dist/index.js +6 -0
  57. package/dist/index.js.map +1 -0
  58. package/dist/render-context.d.ts +12 -0
  59. package/dist/render-context.d.ts.map +1 -0
  60. package/dist/render-context.js +33 -0
  61. package/dist/render-context.js.map +1 -0
  62. package/dist/scope.d.ts +8 -0
  63. package/dist/scope.d.ts.map +1 -0
  64. package/dist/scope.js +71 -0
  65. package/dist/scope.js.map +1 -0
  66. package/dist/target-registry.d.ts +6 -0
  67. package/dist/target-registry.d.ts.map +1 -0
  68. package/dist/target-registry.js +41 -0
  69. package/dist/target-registry.js.map +1 -0
  70. package/dist/types.d.ts +83 -0
  71. package/dist/types.d.ts.map +1 -0
  72. package/dist/types.js +2 -0
  73. package/dist/types.js.map +1 -0
  74. package/package.json +43 -0
@@ -0,0 +1,121 @@
1
+ <!--
2
+ BlockML Compiler Runtime Library
3
+ FQN: org.blockml.bml.compiler.runtime.Library
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
+ "
10
+ xmlns:blockml="org.blockml.bml"
11
+ xmlns:bom="org.blockml.bml.bom"
12
+ xmlns:bomapi="org.blockml.bml.bom.api"
13
+ xmlns:bomcommon="org.blockml.bml.bom.common"
14
+ xmlns:bomdoc="org.blockml.bml.bom.document"
15
+ xmlns:cli="org.blockml.bml.cli"
16
+ xmlns:core="org.blockml.bml.core"
17
+ xmlns:def="org.blockml.bml.definition"
18
+ xmlns:framework="org.blockml.bml.framework"
19
+ xmlns:parser="org.blockml.bml.compiler.parser"
20
+ xmlns:runtime="org.blockml.bml.compiler.runtime"
21
+ xmlns:runapi="org.blockml.bml.compiler.runtime.api"
22
+ xmlns:runcap="org.blockml.bml.compiler.runtime.capability"
23
+ xmlns:runconfig="org.blockml.bml.compiler.runtime.config"
24
+ xmlns:rundocumentation="org.blockml.bml.compiler.runtime.documentation"
25
+ xmlns:type="org.blockml.bml.type"
26
+ xmlns:validator="org.blockml.bml.compiler.validator">
27
+
28
+ <name>Library</name>
29
+ <type>runtime:Library</type>
30
+ <baseType>core:BlockLibrary</baseType>
31
+ <is>The BlockML compiler runtime package library catalog</is>
32
+
33
+ <documentation>
34
+ Canonical compiler runtime specification for BlockML — compileToOutput, Target
35
+ Registry, compile scope, RenderContext (C1–C7). TypeScript in packages/compiler/src/
36
+ implements this library. Membership is defined exclusively by this blocks list.
37
+ </documentation>
38
+
39
+ <version>0.1.0</version>
40
+
41
+ <language>
42
+ <English />
43
+ </language>
44
+
45
+ <properties>
46
+ <description>
47
+ <value>BlockML Compiler runtime library</value>
48
+ </description>
49
+ </properties>
50
+
51
+ <aggregations>
52
+ <readMe>
53
+ <composition>
54
+ <runtime:README />
55
+ </composition>
56
+ </readMe>
57
+ <dependencies>
58
+ <composition>
59
+ <blockml:Library />
60
+ </composition>
61
+ <composition>
62
+ <bom:Library />
63
+ </composition>
64
+ <composition>
65
+ <framework:Library />
66
+ </composition>
67
+ <composition>
68
+ <parser:Library />
69
+ </composition>
70
+ <composition>
71
+ <validator:Library />
72
+ </composition>
73
+ </dependencies>
74
+ <blocks>
75
+ <composition><runtime:RuntimeType /></composition>
76
+ <composition><runapi:CompileScopeKind /></composition>
77
+ <composition><runapi:CompileInput /></composition>
78
+ <composition><runapi:CompileScope /></composition>
79
+ <composition><runapi:CompileRequest /></composition>
80
+ <composition><runapi:CompileOptions /></composition>
81
+ <composition><runapi:CompileBomOptions /></composition>
82
+ <composition><runapi:CompilerResult /></composition>
83
+ <composition><runapi:RenderOutputFile /></composition>
84
+ <composition><runapi:RenderOutput /></composition>
85
+ <composition><runapi:RenderSession /></composition>
86
+ <composition><runapi:RenderContext /></composition>
87
+ <composition><runapi:RenderTarget /></composition>
88
+ <composition><runapi:ScopeConfigHints /></composition>
89
+ <composition><runapi:ResolvedScope /></composition>
90
+ <composition><runconfig:RuntimeConstants /></composition>
91
+ <composition><runcap:CompileToOutput /></composition>
92
+ <composition><runcap:CompileBmlToOutput /></composition>
93
+ <composition><runcap:CompileBomToOutput /></composition>
94
+ <composition><runcap:RegisterTarget /></composition>
95
+ <composition><runcap:GetTarget /></composition>
96
+ <composition><runcap:ClearTargets /></composition>
97
+ <composition><runcap:RegisteredTargetNames /></composition>
98
+ <composition><runcap:ResolveScope /></composition>
99
+ <composition><runcap:ScopeAccepts /></composition>
100
+ <composition><runcap:CompileBmlToBom /></composition>
101
+ <composition><runcap:ValidateRegistryDocuments /></composition>
102
+ <composition><runcap:BuildRenderSession /></composition>
103
+ <composition><runcap:CreateRenderContext /></composition>
104
+ <composition><rundocumentation:Introduction /></composition>
105
+ <composition><rundocumentation:LayerSeparation /></composition>
106
+ <composition><rundocumentation:ArchitectureOverview /></composition>
107
+ <composition><rundocumentation:V1Scope /></composition>
108
+ <composition><rundocumentation:PublicApi /></composition>
109
+ <composition><rundocumentation:CompileIO /></composition>
110
+ <composition><rundocumentation:CompileScopeRules /></composition>
111
+ <composition><rundocumentation:TargetRegistry /></composition>
112
+ <composition><rundocumentation:RenderContextRules /></composition>
113
+ <composition><rundocumentation:ExternalTargetContract /></composition>
114
+ <composition><rundocumentation:Diagnostics /></composition>
115
+ <composition><rundocumentation:DesignDecisions /></composition>
116
+ <composition><rundocumentation:PackageOwnership /></composition>
117
+ <composition><rundocumentation:ScopeExclusions /></composition>
118
+ </blocks>
119
+ </aggregations>
120
+
121
+ </block>
@@ -0,0 +1,60 @@
1
+ <!--
2
+ BlockML Compiler Runtime — README
3
+ FQN: org.blockml.bml.compiler.runtime.README
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
+ "
10
+ xmlns:blockml="org.blockml.bml"
11
+ xmlns:bom="org.blockml.bml.bom"
12
+ xmlns:bomapi="org.blockml.bml.bom.api"
13
+ xmlns:bomcommon="org.blockml.bml.bom.common"
14
+ xmlns:bomdoc="org.blockml.bml.bom.document"
15
+ xmlns:cli="org.blockml.bml.cli"
16
+ xmlns:core="org.blockml.bml.core"
17
+ xmlns:def="org.blockml.bml.definition"
18
+ xmlns:framework="org.blockml.bml.framework"
19
+ xmlns:parser="org.blockml.bml.compiler.parser"
20
+ xmlns:runtime="org.blockml.bml.compiler.runtime"
21
+ xmlns:runapi="org.blockml.bml.compiler.runtime.api"
22
+ xmlns:runcap="org.blockml.bml.compiler.runtime.capability"
23
+ xmlns:runconfig="org.blockml.bml.compiler.runtime.config"
24
+ xmlns:rundocumentation="org.blockml.bml.compiler.runtime.documentation"
25
+ xmlns:type="org.blockml.bml.type"
26
+ xmlns:validator="org.blockml.bml.compiler.validator">
27
+
28
+ <name>README</name>
29
+ <type>runtime:README</type>
30
+ <baseType>core:ReadMe</baseType>
31
+ <is>Reading entry for the compiler runtime library</is>
32
+
33
+ <documentation>
34
+ The @blockml/compiler package implements the Stage-3 facade and Target Registry.
35
+ This library (org.blockml.bml.compiler.runtime.*) is the SSOT; TypeScript in
36
+ packages/compiler/src/ implements it. Tests in packages/compiler/test/ verify contracts.
37
+
38
+ Start reading at org.blockml.bml.compiler.runtime.documentation.Introduction (ReadNext chain).
39
+
40
+ V1: compileToOutput with document|library|corpus|auto scope, empty Target Registry
41
+ (hosts register targets), RenderContext/Session, opaque RenderOutput. CLI owns
42
+ bootstrap, write, C5/C6.
43
+
44
+ Layer separation:
45
+ • parser / validator / framework — Stage 1–2 and TypeRegistry
46
+ • org.blockml.bml.compiler.runtime.* (this library) — facade and registry
47
+ • org.blockml.bml.cli.* — host orchestration
48
+ • target libraries — render emit
49
+
50
+ Modules: documentation, api/config, capability.
51
+ </documentation>
52
+
53
+ <references>
54
+ <see type="rundocumentation:Introduction" relation="ReadFirst" />
55
+ <see type="rundocumentation:DesignDecisions" relation="SeeAlso" />
56
+ <see type="rundocumentation:PublicApi" relation="SeeAlso" />
57
+ <see type="runcap:CompileToOutput" relation="SeeAlso" />
58
+ </references>
59
+
60
+ </block>
@@ -0,0 +1,36 @@
1
+ <!--
2
+ Compiler Runtime — RuntimeType
3
+ FQN: org.blockml.bml.compiler.runtime.RuntimeType
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
+ "
10
+ xmlns:blockml="org.blockml.bml"
11
+ xmlns:bom="org.blockml.bml.bom"
12
+ xmlns:bomapi="org.blockml.bml.bom.api"
13
+ xmlns:bomcommon="org.blockml.bml.bom.common"
14
+ xmlns:bomdoc="org.blockml.bml.bom.document"
15
+ xmlns:cli="org.blockml.bml.cli"
16
+ xmlns:core="org.blockml.bml.core"
17
+ xmlns:def="org.blockml.bml.definition"
18
+ xmlns:framework="org.blockml.bml.framework"
19
+ xmlns:parser="org.blockml.bml.compiler.parser"
20
+ xmlns:runtime="org.blockml.bml.compiler.runtime"
21
+ xmlns:runapi="org.blockml.bml.compiler.runtime.api"
22
+ xmlns:runcap="org.blockml.bml.compiler.runtime.capability"
23
+ xmlns:runconfig="org.blockml.bml.compiler.runtime.config"
24
+ xmlns:rundocumentation="org.blockml.bml.compiler.runtime.documentation"
25
+ xmlns:type="org.blockml.bml.type"
26
+ xmlns:validator="org.blockml.bml.compiler.validator">
27
+
28
+ <name>RuntimeType</name>
29
+ <type>runtime:RuntimeType</type>
30
+ <baseType>core:Entity</baseType>
31
+ <is>Abstract marker for compiler runtime API and config data-structure blocks</is>
32
+
33
+ <documentation>All org.blockml.bml.compiler.runtime.api|config.* types extend this marker. Distinct from core:Capability and bom Urmodell types.</documentation>
34
+ <abstract>true</abstract>
35
+
36
+ </block>
@@ -0,0 +1,46 @@
1
+ <!--
2
+ Compiler Runtime API — CompileBomOptions
3
+ FQN: org.blockml.bml.compiler.runtime.api.CompileBomOptions
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
+ "
10
+ xmlns:blockml="org.blockml.bml"
11
+ xmlns:bom="org.blockml.bml.bom"
12
+ xmlns:bomapi="org.blockml.bml.bom.api"
13
+ xmlns:bomcommon="org.blockml.bml.bom.common"
14
+ xmlns:bomdoc="org.blockml.bml.bom.document"
15
+ xmlns:cli="org.blockml.bml.cli"
16
+ xmlns:core="org.blockml.bml.core"
17
+ xmlns:def="org.blockml.bml.definition"
18
+ xmlns:framework="org.blockml.bml.framework"
19
+ xmlns:parser="org.blockml.bml.compiler.parser"
20
+ xmlns:runtime="org.blockml.bml.compiler.runtime"
21
+ xmlns:runapi="org.blockml.bml.compiler.runtime.api"
22
+ xmlns:runcap="org.blockml.bml.compiler.runtime.capability"
23
+ xmlns:runconfig="org.blockml.bml.compiler.runtime.config"
24
+ xmlns:rundocumentation="org.blockml.bml.compiler.runtime.documentation"
25
+ xmlns:type="org.blockml.bml.type"
26
+ xmlns:validator="org.blockml.bml.compiler.validator">
27
+
28
+ <name>CompileBomOptions</name>
29
+ <type>runapi:CompileBomOptions</type>
30
+ <baseType>runtime:RuntimeType</baseType>
31
+ <is>Host options for compileBomToOutput (BOM-first Stage-3)</is>
32
+
33
+ <documentation>typeRegistry is required and passed through unchanged — no bootstrap or re-parse.
34
+ Domain-specific host fields (e.g. MachineBlocks lib path) belong in targetOptions, not here.</documentation>
35
+ <references>
36
+ <see type="runcap:CompileBomToOutput" relation="SeeAlso" />
37
+ <see type="rundocumentation:ExternalTargetContract" relation="SeeAlso" />
38
+ </references>
39
+ <properties>
40
+ <typeRegistry type="type:Text"><documentation>Pre-built TypeRegistry; required. (required)</documentation></typeRegistry>
41
+ <outputBasePath type="type:Text"><documentation>Output base path for session. (optional)</documentation></outputBasePath>
42
+ <rootDir type="type:Text"><documentation>Project root for diagnostics source paths. (optional)</documentation></rootDir>
43
+ <targetOptions type="type:Text"><documentation>Opaque options forwarded on the synthetic CompileRequest. (optional)</documentation></targetOptions>
44
+ </properties>
45
+
46
+ </block>
@@ -0,0 +1,43 @@
1
+ <!--
2
+ Compiler Runtime API — CompileInput
3
+ FQN: org.blockml.bml.compiler.runtime.api.CompileInput
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
+ "
10
+ xmlns:blockml="org.blockml.bml"
11
+ xmlns:bom="org.blockml.bml.bom"
12
+ xmlns:bomapi="org.blockml.bml.bom.api"
13
+ xmlns:bomcommon="org.blockml.bml.bom.common"
14
+ xmlns:bomdoc="org.blockml.bml.bom.document"
15
+ xmlns:cli="org.blockml.bml.cli"
16
+ xmlns:core="org.blockml.bml.core"
17
+ xmlns:def="org.blockml.bml.definition"
18
+ xmlns:framework="org.blockml.bml.framework"
19
+ xmlns:parser="org.blockml.bml.compiler.parser"
20
+ xmlns:runtime="org.blockml.bml.compiler.runtime"
21
+ xmlns:runapi="org.blockml.bml.compiler.runtime.api"
22
+ xmlns:runcap="org.blockml.bml.compiler.runtime.capability"
23
+ xmlns:runconfig="org.blockml.bml.compiler.runtime.config"
24
+ xmlns:rundocumentation="org.blockml.bml.compiler.runtime.documentation"
25
+ xmlns:type="org.blockml.bml.type"
26
+ xmlns:validator="org.blockml.bml.compiler.validator">
27
+
28
+ <name>CompileInput</name>
29
+ <type>runapi:CompileInput</type>
30
+ <baseType>runtime:RuntimeType</baseType>
31
+ <is>Single BML source unit for document scope</is>
32
+
33
+ <documentation>Used as CompileScope.document and by CompileBmlToBom / CompileBmlToOutput.</documentation>
34
+ <references>
35
+ <see type="rundocumentation:PublicApi" relation="SeeAlso" />
36
+ </references>
37
+ <properties>
38
+ <source type="type:Text"><documentation>BML source text. (required)</documentation></source>
39
+ <filePath type="type:Text"><documentation>Logical file path for diagnostics. (required)</documentation></filePath>
40
+ <format type="type:Text"><documentation>Optional format hint; V1 only xml. (optional)</documentation></format>
41
+ </properties>
42
+
43
+ </block>
@@ -0,0 +1,44 @@
1
+ <!--
2
+ Compiler Runtime API — CompileOptions
3
+ FQN: org.blockml.bml.compiler.runtime.api.CompileOptions
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
+ "
10
+ xmlns:blockml="org.blockml.bml"
11
+ xmlns:bom="org.blockml.bml.bom"
12
+ xmlns:bomapi="org.blockml.bml.bom.api"
13
+ xmlns:bomcommon="org.blockml.bml.bom.common"
14
+ xmlns:bomdoc="org.blockml.bml.bom.document"
15
+ xmlns:cli="org.blockml.bml.cli"
16
+ xmlns:core="org.blockml.bml.core"
17
+ xmlns:def="org.blockml.bml.definition"
18
+ xmlns:framework="org.blockml.bml.framework"
19
+ xmlns:parser="org.blockml.bml.compiler.parser"
20
+ xmlns:runtime="org.blockml.bml.compiler.runtime"
21
+ xmlns:runapi="org.blockml.bml.compiler.runtime.api"
22
+ xmlns:runcap="org.blockml.bml.compiler.runtime.capability"
23
+ xmlns:runconfig="org.blockml.bml.compiler.runtime.config"
24
+ xmlns:rundocumentation="org.blockml.bml.compiler.runtime.documentation"
25
+ xmlns:type="org.blockml.bml.type"
26
+ xmlns:validator="org.blockml.bml.compiler.validator">
27
+
28
+ <name>CompileOptions</name>
29
+ <type>runapi:CompileOptions</type>
30
+ <baseType>runtime:RuntimeType</baseType>
31
+ <is>Host options for compile helpers and compileToOutput</is>
32
+
33
+ <documentation>typeRegistry, paths, and session fields supplied by the host (often CLI).
34
+ Domain-specific passthrough fields belong in targetOptions, not here.</documentation>
35
+ <references>
36
+ <see type="rundocumentation:PublicApi" relation="SeeAlso" />
37
+ </references>
38
+ <properties>
39
+ <typeRegistry type="type:Text"><documentation>Optional pre-built TypeRegistry. (optional)</documentation></typeRegistry>
40
+ <outputBasePath type="type:Text"><documentation>Output base path for session. (optional)</documentation></outputBasePath>
41
+ <rootDir type="type:Text"><documentation>Project root for bootstrap defaults. (optional)</documentation></rootDir>
42
+ </properties>
43
+
44
+ </block>
@@ -0,0 +1,42 @@
1
+ <!--
2
+ Compiler Runtime API — CompileRequest
3
+ FQN: org.blockml.bml.compiler.runtime.api.CompileRequest
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
+ "
10
+ xmlns:blockml="org.blockml.bml"
11
+ xmlns:bom="org.blockml.bml.bom"
12
+ xmlns:bomapi="org.blockml.bml.bom.api"
13
+ xmlns:bomcommon="org.blockml.bml.bom.common"
14
+ xmlns:bomdoc="org.blockml.bml.bom.document"
15
+ xmlns:cli="org.blockml.bml.cli"
16
+ xmlns:core="org.blockml.bml.core"
17
+ xmlns:def="org.blockml.bml.definition"
18
+ xmlns:framework="org.blockml.bml.framework"
19
+ xmlns:parser="org.blockml.bml.compiler.parser"
20
+ xmlns:runtime="org.blockml.bml.compiler.runtime"
21
+ xmlns:runapi="org.blockml.bml.compiler.runtime.api"
22
+ xmlns:runcap="org.blockml.bml.compiler.runtime.capability"
23
+ xmlns:runconfig="org.blockml.bml.compiler.runtime.config"
24
+ xmlns:rundocumentation="org.blockml.bml.compiler.runtime.documentation"
25
+ xmlns:type="org.blockml.bml.type"
26
+ xmlns:validator="org.blockml.bml.compiler.validator">
27
+
28
+ <name>CompileRequest</name>
29
+ <type>runapi:CompileRequest</type>
30
+ <baseType>runtime:RuntimeType</baseType>
31
+ <is>Primary Stage-3 request envelope</is>
32
+
33
+ <documentation>C2: scope plus opaque targetOptions typed per target package.</documentation>
34
+ <references>
35
+ <see type="rundocumentation:PublicApi" relation="SeeAlso" />
36
+ </references>
37
+ <properties>
38
+ <scope type="runapi:CompileScope"><documentation>Compile scope. (required)</documentation></scope>
39
+ <targetOptions type="type:Text"><documentation>Opaque options for the named target. (optional)</documentation></targetOptions>
40
+ </properties>
41
+
42
+ </block>
@@ -0,0 +1,45 @@
1
+ <!--
2
+ Compiler Runtime API — CompileScope
3
+ FQN: org.blockml.bml.compiler.runtime.api.CompileScope
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
+ "
10
+ xmlns:blockml="org.blockml.bml"
11
+ xmlns:bom="org.blockml.bml.bom"
12
+ xmlns:bomapi="org.blockml.bml.bom.api"
13
+ xmlns:bomcommon="org.blockml.bml.bom.common"
14
+ xmlns:bomdoc="org.blockml.bml.bom.document"
15
+ xmlns:cli="org.blockml.bml.cli"
16
+ xmlns:core="org.blockml.bml.core"
17
+ xmlns:def="org.blockml.bml.definition"
18
+ xmlns:framework="org.blockml.bml.framework"
19
+ xmlns:parser="org.blockml.bml.compiler.parser"
20
+ xmlns:runtime="org.blockml.bml.compiler.runtime"
21
+ xmlns:runapi="org.blockml.bml.compiler.runtime.api"
22
+ xmlns:runcap="org.blockml.bml.compiler.runtime.capability"
23
+ xmlns:runconfig="org.blockml.bml.compiler.runtime.config"
24
+ xmlns:rundocumentation="org.blockml.bml.compiler.runtime.documentation"
25
+ xmlns:type="org.blockml.bml.type"
26
+ xmlns:validator="org.blockml.bml.compiler.validator">
27
+
28
+ <name>CompileScope</name>
29
+ <type>runapi:CompileScope</type>
30
+ <baseType>runtime:RuntimeType</baseType>
31
+ <is>Compile scope payload on CompileRequest</is>
32
+
33
+ <documentation>C7 scope kinds with optional document, libraries, roots, includeDependencies.</documentation>
34
+ <references>
35
+ <see type="rundocumentation:PublicApi" relation="SeeAlso" />
36
+ </references>
37
+ <properties>
38
+ <kind type="type:Text"><documentation>CompileScopeKind value. (required)</documentation></kind>
39
+ <document type="runapi:CompileInput"><documentation>Required when kind is document. (optional)</documentation></document>
40
+ <libraries type="type:Text"><documentation>Library.bml paths. (optional)</documentation></libraries>
41
+ <roots type="type:Text"><documentation>Corpus root directories. (optional)</documentation></roots>
42
+ <includeDependencies type="type:Boolean"><documentation>Reserved; host may pass through. (optional)</documentation></includeDependencies>
43
+ </properties>
44
+
45
+ </block>
@@ -0,0 +1,44 @@
1
+ <!--
2
+ Compiler Runtime API — CompileScopeKind
3
+ FQN: org.blockml.bml.compiler.runtime.api.CompileScopeKind
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
+ "
10
+ xmlns:blockml="org.blockml.bml"
11
+ xmlns:bom="org.blockml.bml.bom"
12
+ xmlns:bomapi="org.blockml.bml.bom.api"
13
+ xmlns:bomcommon="org.blockml.bml.bom.common"
14
+ xmlns:bomdoc="org.blockml.bml.bom.document"
15
+ xmlns:cli="org.blockml.bml.cli"
16
+ xmlns:core="org.blockml.bml.core"
17
+ xmlns:def="org.blockml.bml.definition"
18
+ xmlns:framework="org.blockml.bml.framework"
19
+ xmlns:parser="org.blockml.bml.compiler.parser"
20
+ xmlns:runtime="org.blockml.bml.compiler.runtime"
21
+ xmlns:runapi="org.blockml.bml.compiler.runtime.api"
22
+ xmlns:runcap="org.blockml.bml.compiler.runtime.capability"
23
+ xmlns:runconfig="org.blockml.bml.compiler.runtime.config"
24
+ xmlns:rundocumentation="org.blockml.bml.compiler.runtime.documentation"
25
+ xmlns:type="org.blockml.bml.type"
26
+ xmlns:validator="org.blockml.bml.compiler.validator">
27
+
28
+ <name>CompileScopeKind</name>
29
+ <type>runapi:CompileScopeKind</type>
30
+ <baseType>runtime:RuntimeType</baseType>
31
+ <is>Enumerated compile scope kinds</is>
32
+
33
+ <documentation>C7: document | library | corpus | auto. auto is input-only; ResolveScope yields a concrete kind.</documentation>
34
+ <references>
35
+ <see type="rundocumentation:PublicApi" relation="SeeAlso" />
36
+ </references>
37
+ <properties>
38
+ <document type="type:Text"><documentation>Single .bml document scope.</documentation></document>
39
+ <library type="type:Text"><documentation>Library.bml roots plus dependency closure.</documentation></library>
40
+ <corpus type="type:Text"><documentation>Directory roots / blocks trees.</documentation></corpus>
41
+ <auto type="type:Text"><documentation>Resolve from libraries then roots; never left as auto after ResolveScope.</documentation></auto>
42
+ </properties>
43
+
44
+ </block>
@@ -0,0 +1,43 @@
1
+ <!--
2
+ Compiler Runtime API — CompilerResult
3
+ FQN: org.blockml.bml.compiler.runtime.api.CompilerResult
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
+ "
10
+ xmlns:blockml="org.blockml.bml"
11
+ xmlns:bom="org.blockml.bml.bom"
12
+ xmlns:bomapi="org.blockml.bml.bom.api"
13
+ xmlns:bomcommon="org.blockml.bml.bom.common"
14
+ xmlns:bomdoc="org.blockml.bml.bom.document"
15
+ xmlns:cli="org.blockml.bml.cli"
16
+ xmlns:core="org.blockml.bml.core"
17
+ xmlns:def="org.blockml.bml.definition"
18
+ xmlns:framework="org.blockml.bml.framework"
19
+ xmlns:parser="org.blockml.bml.compiler.parser"
20
+ xmlns:runtime="org.blockml.bml.compiler.runtime"
21
+ xmlns:runapi="org.blockml.bml.compiler.runtime.api"
22
+ xmlns:runcap="org.blockml.bml.compiler.runtime.capability"
23
+ xmlns:runconfig="org.blockml.bml.compiler.runtime.config"
24
+ xmlns:rundocumentation="org.blockml.bml.compiler.runtime.documentation"
25
+ xmlns:type="org.blockml.bml.type"
26
+ xmlns:validator="org.blockml.bml.compiler.validator">
27
+
28
+ <name>CompilerResult</name>
29
+ <type>runapi:CompilerResult</type>
30
+ <baseType>runtime:RuntimeType</baseType>
31
+ <is>Success flag, diagnostics, and optional output</is>
32
+
33
+ <documentation>Generic envelope CompilerResult of T. success is false if any error diagnostic.</documentation>
34
+ <references>
35
+ <see type="rundocumentation:PublicApi" relation="SeeAlso" />
36
+ </references>
37
+ <properties>
38
+ <output type="type:Text"><documentation>Typed output or null. (optional)</documentation></output>
39
+ <diagnostics type="type:Text"><documentation>Diagnostic list. (required)</documentation></diagnostics>
40
+ <success type="type:Boolean"><documentation>True when no error diagnostics. (required)</documentation></success>
41
+ </properties>
42
+
43
+ </block>
@@ -0,0 +1,43 @@
1
+ <!--
2
+ Compiler Runtime API — RenderContext
3
+ FQN: org.blockml.bml.compiler.runtime.api.RenderContext
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
+ "
10
+ xmlns:blockml="org.blockml.bml"
11
+ xmlns:bom="org.blockml.bml.bom"
12
+ xmlns:bomapi="org.blockml.bml.bom.api"
13
+ xmlns:bomcommon="org.blockml.bml.bom.common"
14
+ xmlns:bomdoc="org.blockml.bml.bom.document"
15
+ xmlns:cli="org.blockml.bml.cli"
16
+ xmlns:core="org.blockml.bml.core"
17
+ xmlns:def="org.blockml.bml.definition"
18
+ xmlns:framework="org.blockml.bml.framework"
19
+ xmlns:parser="org.blockml.bml.compiler.parser"
20
+ xmlns:runtime="org.blockml.bml.compiler.runtime"
21
+ xmlns:runapi="org.blockml.bml.compiler.runtime.api"
22
+ xmlns:runcap="org.blockml.bml.compiler.runtime.capability"
23
+ xmlns:runconfig="org.blockml.bml.compiler.runtime.config"
24
+ xmlns:rundocumentation="org.blockml.bml.compiler.runtime.documentation"
25
+ xmlns:type="org.blockml.bml.type"
26
+ xmlns:validator="org.blockml.bml.compiler.validator">
27
+
28
+ <name>RenderContext</name>
29
+ <type>runapi:RenderContext</type>
30
+ <baseType>runtime:RuntimeType</baseType>
31
+ <is>Per-node render context with child fork</is>
32
+
33
+ <documentation>C1: session plus blockFqn and outputRelativePath; child() forks without mutating session.</documentation>
34
+ <references>
35
+ <see type="rundocumentation:PublicApi" relation="SeeAlso" />
36
+ </references>
37
+ <properties>
38
+ <session type="runapi:RenderSession"><documentation>Shared session. (required)</documentation></session>
39
+ <blockFqn type="type:Text"><documentation>Current block FQN. (required)</documentation></blockFqn>
40
+ <outputRelativePath type="type:Text"><documentation>Relative output path hint. (required)</documentation></outputRelativePath>
41
+ </properties>
42
+
43
+ </block>
@@ -0,0 +1,43 @@
1
+ <!--
2
+ Compiler Runtime API — RenderOutput
3
+ FQN: org.blockml.bml.compiler.runtime.api.RenderOutput
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
+ "
10
+ xmlns:blockml="org.blockml.bml"
11
+ xmlns:bom="org.blockml.bml.bom"
12
+ xmlns:bomapi="org.blockml.bml.bom.api"
13
+ xmlns:bomcommon="org.blockml.bml.bom.common"
14
+ xmlns:bomdoc="org.blockml.bml.bom.document"
15
+ xmlns:cli="org.blockml.bml.cli"
16
+ xmlns:core="org.blockml.bml.core"
17
+ xmlns:def="org.blockml.bml.definition"
18
+ xmlns:framework="org.blockml.bml.framework"
19
+ xmlns:parser="org.blockml.bml.compiler.parser"
20
+ xmlns:runtime="org.blockml.bml.compiler.runtime"
21
+ xmlns:runapi="org.blockml.bml.compiler.runtime.api"
22
+ xmlns:runcap="org.blockml.bml.compiler.runtime.capability"
23
+ xmlns:runconfig="org.blockml.bml.compiler.runtime.config"
24
+ xmlns:rundocumentation="org.blockml.bml.compiler.runtime.documentation"
25
+ xmlns:type="org.blockml.bml.type"
26
+ xmlns:validator="org.blockml.bml.compiler.validator">
27
+
28
+ <name>RenderOutput</name>
29
+ <type>runapi:RenderOutput</type>
30
+ <baseType>runtime:RuntimeType</baseType>
31
+ <is>Opaque Stage-3 render result</is>
32
+
33
+ <documentation>C4/C6: base shape is files[] with optional rootFiles[] and diagnostics[]. Thumbnails are not part of RenderOutput.</documentation>
34
+ <references>
35
+ <see type="rundocumentation:PublicApi" relation="SeeAlso" />
36
+ </references>
37
+ <properties>
38
+ <files type="runapi:RenderOutputFile"><documentation>Primary artifacts under outputBasePath. (required)</documentation></files>
39
+ <rootFiles type="runapi:RenderOutputFile"><documentation>Root-level artifacts (e.g. catalog.xml). (optional)</documentation></rootFiles>
40
+ <diagnostics type="type:Text"><documentation>Target-emitted diagnostics for CLI merge. (optional)</documentation></diagnostics>
41
+ </properties>
42
+
43
+ </block>