dreamstack/compiler
enzotar 9ef28bb53a feat: dependent types — refinement types, type aliases, type annotations
- Lexer: added 'type' and 'where' keywords
- AST: TypeExpr::Refined, Declaration::TypeAlias, LetDecl.type_annotation
- Parser: parse_type_alias_decl, parse_type_expr (Named, Generic, where)
- Type system: Type::Refined, Predicate/PredicateExpr with evaluate_static()
- Errors: RefinementViolation, TypeAliasCycle (Elm-style messages)
- Checker: type alias registry, resolve_type_expr, ast_to_predicate,
  static refinement checking for literal values
- Codegen: Phase 1b runtime guards, predicate_to_js helper

Syntax: type PositiveInt = Int where value > 0
        let count: PositiveInt = 5  -- static check passes
        let count: PositiveInt = -1 -- compile error

118 tests pass (16 in ds-types, 5 new for refinements)
2026-02-26 11:09:33 -08:00
..
ds-analyzer feat(compiler): complete bitstream integration — all 9 changes 2026-02-25 13:26:59 -08:00
ds-cli feat: v2 module system — import/export with multi-file compilation 2026-02-25 20:36:18 -08:00
ds-codegen feat: dependent types — refinement types, type aliases, type annotations 2026-02-26 11:09:33 -08:00
ds-layout feat(compiler): complete bitstream integration — all 9 changes 2026-02-25 13:26:59 -08:00
ds-parser feat: dependent types — refinement types, type aliases, type annotations 2026-02-26 11:09:33 -08:00
ds-types feat: dependent types — refinement types, type aliases, type annotations 2026-02-26 11:09:33 -08:00