hashc
hashc copied to clipboard
The Hash programming language compiler :zap:
The following snippet: ```rust fmt := import("printing") math := import("math") main := () => { } ``` The compiler crashes with a stack overflow: ``` thread 'main' has overflowed its...
The following snippet: ```rust math := import("math") // #dump_ir main := () => { temp := Intrinsics::cast(type f64, type i32, -1.) t := math::abs(temp) } ``` Causes the compiler to...
This fixes issue #980 and other similar issues where given that multiple imports are being simultaneously parsed, the insertion order of the modules in `NodeMap` is not correctly preserved when...
The following snippet: ```rust fmt := import("printing"); main := () => { y := 1 + 1 + 1 + 1; fmt::print_int(y + t); } ``` `print_int` is a defined...
- **ast: remove `AccessKind` differentiator** - **parser: change access type and pattern syntax to use `.` over `::`** - **semantics: adjust resolution to work without `AccessKind`** - **stdlib: update sources...
To do this, there should be an attribute `#[intrinsic]` to label something as being an intrinsic, and it should be "linked" appropriately on the compiler side so that the intrinsic...