feat(modules): support local module imports and exports #59
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/modules-sep-013"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Sigil programs can now import local modules and share declarations across files, enabling codebases to organize reusable code without combining every source into one file.
The compiler builds a module graph, analyzes module declarations and exports, and compiles linked modules together. Imports support qualified paths, aliases, and selected members; diagnostics cover missing modules, unresolved symbols, and import conflicts.
Design decisions
Tests
ruff format --check ./srcruff check ./src ./testspytest tests -q -m "not e2e and not performance"(2150 passed, 1 skipped, 37 xfailed)