You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Accept resolved scalar type aliases in Whale programs #875
At fd07427f4a976de05e38eff3ee1760db97fbb761 on Linux amd64 with Rust 1.89 and locked Whale 020d2a4, lexing, parsing and TypedProgram lowering succeed, but calling whale::emit_ir on this source returns Whale backend does not yet support non-function top-level declarations:
type Number = i32; fun main() -> Number { return 0; }
Scope
Handle compile-time TypeAlias metadata and consume existing HIR canonical types for signatures and expressions. Do not reinterpret aliases in the backend or broadly accept unsupported top-level storage. Starting point: whale/src/codegen/mod.rs.
Difficulty: medium.
Completion criteria
Accept used and unused scalar aliases, including alias chains.
Verify equivalent scalar IR after HIR canonicalization.
Activity
Expand Whale scalar support and remove unused std::libc bindings (#924)