ludic/selfhost
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
..
golden feat(stdlib): namespaced standard library (issue #2) 2026-08-30 00:26:19 +03:00
tests refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
ast.ludic refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
buf.ludic refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
emit_addr.ludic refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
emit_collide.ludic refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
emit_color.ludic refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
emit_colorfn.ludic refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
emit_core.ludic refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
emit_decl.ludic refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
emit_ease.ludic refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
emit_ecs.ludic refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
emit_expr.ludic refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
emit_game.ludic refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
emit_hash.ludic refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
emit_head.ludic refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
emit_intrin.ludic refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
emit_intrin2.ludic refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
emit_list.ludic refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
emit_machine.ludic refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
emit_math.ludic refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
emit_mem.ludic refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
emit_net.ludic refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
emit_new.ludic refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
emit_query.ludic refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
emit_save.ludic refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
emit_spawn.ludic refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
emit_stmt.ludic refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
emit_text.ludic refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
emit_time.ludic refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
emit_ui.ludic refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
io.ludic refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
lex.ludic refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
ludicc.seed.ll refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
main.ludic refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
parse.ludic refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
parse_game.ludic refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00
str.ludic refactor(lang): rename the fn keyword to function 2026-08-30 01:43:22 +03:00