ludic/selfhost/tests/fixed.ludic
Orkuncakilkaya 985f9ad8f2 Baseline: Ludic compiler + toolchain, Phase 1 syntax fixes complete
Self-hosted compiler (selfhost/*.ludic), runtime, examples, editor tooling,
and docs. Phase 1 of the syntax-redesign cohesion pass has landed:
edge-system fix, signature-query, when-alias, and the documentation truth-pass.
Suite green (14/14), C-free bootstrap fixpoint holds.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-27 15:15:35 +03:00

12 lines
384 B
Text

game T {
main {
let half = 0.5
let a = 1.5
print_int(flr(a + half)) # flr(2.0) = 2
print_int(flr(a * 2.0)) # flr(3.0) = 3
let third = 1.0 / 3.0
print_int(flr(third * 3.0)) # ~flr(1.0) = 1 (may be 0 with rounding)
print_int(flr(fx(5) + a)) # flr(6.5) = 6
if a > half { print_int(1) } else { print_int(0) } # 1
}
}