feat(ir): executable IR, module/unit identities and builtin metadata
Add the independent program IR from blueprint sections 7.1 and 11: - ModuleId, FunctionId and UnitId canonical identities; UnitInfo/UnitKind for heading scopes (root, namespace, function, section). - Function with explicit or inferred signature metadata, params and defaults; assignments, expression statements, link-form calls, branches, loops and returns, all carrying source spans. - CallTarget distinguishes same-module, import-alias-qualified and link-resolved calls. - ImportDecl from explicit front-matter imports; Resource records inert Formula/Code artifacts with SHA-256 content hashes and owning units. - Module anchors, resolved import edges and Program lookup helpers used by the runtime and CLI. - Builtin registry (names, aliases, arity, named-only/effect flags) shared by static validation and runtime dispatch; adding a builtin is a spec change. Prose is absent from the IR by construction, so narrative edits cannot change the executable projection.
This commit is contained in:
1 parent
9897ecc37f
commit
4db6e6afd6
3 files changed
+761
-2
No files matched your search
@@ -10,8 +10,9 @@ authors.workspace = true
|
||||
|
||||
[dependencies]
|
||||
marqdo-span = { workspace = true }
|
||||
marqdo-value = { workspace = true }
|
||||
marqdo-expression = { workspace = true }
|
||||
serde = { workspace = true }
|
||||
serde_json = { workspace = true }
|
||||
|
||||
|
||||
[dev-dependencies]
|
||||
serde_json = { workspace = true }
|
||||
Reference in new issue
Block a user