dreamstack/examples/modules
enzotar 6368b798cf feat: v2 module system — import/export with multi-file compilation
Syntax:
  import { Counter, shared_count } from "./shared"
  export let shared_count = 0
  export component Counter = ...

Implementation:
- Lexer: Import, Export keywords
- AST: ImportDecl(names, source), Export(name, inner_decl)
- Parser: parse_import_decl, parse_export_decl
- CLI: resolve_imports() — recursive file resolution, dedup, inline

Resolves relative paths, adds .ds extension, handles transitive imports.
110 tests, 0 failures.
2026-02-25 20:36:18 -08:00
..
app.ds feat: v2 module system — import/export with multi-file compilation 2026-02-25 20:36:18 -08:00
shared.ds feat: v2 module system — import/export with multi-file compilation 2026-02-25 20:36:18 -08:00