Finch/boot
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nexoniarz 873b52565d boot: sized numbers (i8..u64, f32), conversions, unsigned arithmetic
The self-hosted compiler now has the numeric types the C++ one has: int and
float stay the i64 and f64 defaults, the others lower to their LLVM sizes;
literals adapt to the other operand if they fit, smaller types widen into
bigger ones, signed and unsigned mixing is refused, division and shifts and
comparisons pick their signedness, and u8(x), f32(x), bool(x) convert.

boot.sh: 11 passed, 0 failed, 10 skipped (was 9 / 12).
2026-10-25 19:13:46 +01:00
..
ast.fch Rename the Finch file extension from .fn to .fch 2026-10-08 19:27:42 +02:00
gen.fch boot: sized numbers (i8..u64, f32), conversions, unsigned arithmetic 2026-10-25 19:13:46 +01:00
lexer.fch Rename the Finch file extension from .fn to .fch 2026-10-08 19:27:42 +02:00
main.fch OpenGL and Vulkan examples; ptr(int)/int(ptr); trailing commas in calls; drop .fn hint 2026-10-08 19:37:34 +02:00
parser.fch boot: sized numbers (i8..u64, f32), conversions, unsigned arithmetic 2026-10-25 19:13:46 +01:00