ludic/examples
Orkuncakilkaya 4c48077d68 refactor(lang): rename the fn keyword to function
Expand the function-declaration keyword to the full word across the whole
language and toolchain:
  fn name(...) -> T { ... }   ->   function name(...) -> T { ... }

Done as a self-hosting migration: teach the parser both spellings, reseed,
rewrite every .ludic definition to `function`, then drop `fn`. The compiler
now rejects `fn`. Touches the parser, all selfhost/tools/runtime/example/test
sources, the grammars (TextMate shared+vscode, ludic_syntax.h, JetBrains
LudicTokens.kt), the LSP and formatter, the Python doc/vocab tools
(check-impl, check-docs, validate, palette, test-lsp), and the docs
(fences, prose, kw-fn -> kw-function).

Reseeded; C-free bootstrap fixpoint holds. All suites green (45 regression,
24 self-host, 29 tool); the docs site generates and check.py passes.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-30 01:43:22 +03:00
..
chronorift refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
lib refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
annotations.ludic Phase 7e: polymorphic print(x) + str(x) (retire print_int/print_str) 2026-08-28 01:22:38 +03:00
cancel.ludic Networking N2–N6, and a fully C-free toolchain 2026-08-29 15:08:23 +03:00
chronorift.ludic Phase 6a: rename core vocabulary (game/main/component/archetype/system) 2026-08-27 18:22:13 +03:00
detach.ludic feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
draw_prims.ludic feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
events.ludic Networking N2–N6, and a fully C-free toolchain 2026-08-29 15:08:23 +03:00
hello.ludic Phase 7e: polymorphic print(x) + str(x) (retire print_int/print_str) 2026-08-28 01:22:38 +03:00
layer_events.ludic Networking N2–N6, and a fully C-free toolchain 2026-08-29 15:08:23 +03:00
lifecycle.ludic Phase 7e: polymorphic print(x) + str(x) (retire print_int/print_str) 2026-08-28 01:22:38 +03:00
menu.ludic Language: named colors, namespaced Screen/Input/Random/Map API, named args 2026-08-29 16:05:55 +03:00
mod_events.ludic Networking N2–N6, and a fully C-free toolchain 2026-08-29 15:08:23 +03:00
net_demo.ludic feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
net_echo.ludic Networking N2–N6, and a fully C-free toolchain 2026-08-29 15:08:23 +03:00
net_owner.ludic Networking N2–N6, and a fully C-free toolchain 2026-08-29 15:08:23 +03:00
net_roles.ludic Networking N2–N6, and a fully C-free toolchain 2026-08-29 15:08:23 +03:00
net_rpc.ludic Networking N2–N6, and a fully C-free toolchain 2026-08-29 15:08:23 +03:00
net_rt.ludic refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
net_snapshot.ludic Networking N2–N6, and a fully C-free toolchain 2026-08-29 15:08:23 +03:00
net_sync.ludic Networking N2–N6, and a fully C-free toolchain 2026-08-29 15:08:23 +03:00
program_events.ludic Networking N2–N6, and a fully C-free toolchain 2026-08-29 15:08:23 +03:00
promote.ludic Networking N2–N6, and a fully C-free toolchain 2026-08-29 15:08:23 +03:00
prop_events.ludic Networking N2–N6, and a fully C-free toolchain 2026-08-29 15:08:23 +03:00
qdecl.ludic Phase 7e: polymorphic print(x) + str(x) (retire print_int/print_str) 2026-08-28 01:22:38 +03:00
reason.ludic feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
recurse.ludic Networking N2–N6, and a fully C-free toolchain 2026-08-29 15:08:23 +03:00
rng_demo.ludic feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
scene_events.ludic Networking N2–N6, and a fully C-free toolchain 2026-08-29 15:08:23 +03:00
scenes.ludic Language: named colors, namespaced Screen/Input/Random/Map API, named args 2026-08-29 16:05:55 +03:00
scoped.ludic Networking N2–N6, and a fully C-free toolchain 2026-08-29 15:08:23 +03:00
snake.ludic refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
strings.ludic Phase 7h: string slicing s[a..b] (retire substr) 2026-08-28 01:35:24 +03:00
time_demo.ludic feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
toggle.ludic Phase 7e: polymorphic print(x) + str(x) (retire print_int/print_str) 2026-08-28 01:22:38 +03:00
world_dyn.ludic Networking N2–N6, and a fully C-free toolchain 2026-08-29 15:08:23 +03:00
world_get.ludic Networking N2–N6, and a fully C-free toolchain 2026-08-29 15:08:23 +03:00
world_mixed.ludic Networking N2–N6, and a fully C-free toolchain 2026-08-29 15:08:23 +03:00
world_query.ludic Networking N2–N6, and a fully C-free toolchain 2026-08-29 15:08:23 +03:00
world_scan.ludic Networking N2–N6, and a fully C-free toolchain 2026-08-29 15:08:23 +03:00
world_spawn.ludic Networking N2–N6, and a fully C-free toolchain 2026-08-29 15:08:23 +03:00