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>
This commit is contained in:
commit
985f9ad8f2
418 changed files with 39065 additions and 0 deletions
12
selfhost/tests/fixed.ludic
Normal file
12
selfhost/tests/fixed.ludic
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
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
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue