ludic/selfhost
Orkuncakilkaya cc701013f5 Phase 6e: unify builtin naming (loaders domain-first, set_reg)
Fixed the naming inconsistencies the cohesion audit flagged, converging on the
domain-first style the bulk of the surface already uses (ui_*, text_*, rng_*,
font_load, image_load):

  - load_png    -> png_load       (asset loaders were split: font_load/image_load
  - load_sprites -> sprites_load   were domain-first, load_* were verb-first)
  - setreg      -> set_reg        (missing underscore vs ui_set_int/ui_set_text)

Game builtins resolve to their `rt_` runtime function, so the renames are in
runtime/native (rt_png_load, rt_sprites_load, rt_set_reg) plus the ~100 example
call sites; `become` lowering in emit_machine now emits @fn_rt_set_reg. Purely a
surface rename — every renamed call maps to the same runtime symbol, so behavior
and golden renders are byte-identical.

Vocabulary + docs updated (ludic_syntax.h, grammar, LudicTokens.kt, LANGUAGE.md,
README, SYNTAX-REDESIGN). Reseeded; C-free fixpoint holds; goldens identical;
17/17; vocab clean.

Left as-is: os_argc/os_arg (compiler-internal intrinsics, already namespaced and
consistent with each other; renaming would need a bootstrap dance for little
gain). reg/set_reg keep the getter-bare/setter-set_ shape ui_focused/ui_set_int
already use.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-08-27 23:38:10 +03:00
..
golden Baseline: Ludic compiler + toolchain, Phase 1 syntax fixes complete 2026-08-27 15:15:35 +03:00
tests Phase 6d: merge struct into property; storage follows use 2026-08-27 23:32:05 +03:00
ast.ludic Phase 6d: merge struct into property; storage follows use 2026-08-27 23:32:05 +03:00
bootstrap-cfree.sh Phase 6a: rename core vocabulary (game/main/component/archetype/system) 2026-08-27 18:22:13 +03:00
bootstrap.sh Baseline: Ludic compiler + toolchain, Phase 1 syntax fixes complete 2026-08-27 15:15:35 +03:00
buf.ludic Phase 6d: merge struct into property; storage follows use 2026-08-27 23:32:05 +03:00
build.sh Phase 6a: rename core vocabulary (game/main/component/archetype/system) 2026-08-27 18:22:13 +03:00
compile.sh Baseline: Ludic compiler + toolchain, Phase 1 syntax fixes complete 2026-08-27 15:15:35 +03:00
emit_addr.ludic Phase 2: enforce statement separators (Rule B) 2026-08-27 15:41:29 +03:00
emit_core.ludic Phase 6d: merge struct into property; storage follows use 2026-08-27 23:32:05 +03:00
emit_decl.ludic Phase 2: enforce statement separators (Rule B) 2026-08-27 15:41:29 +03:00
emit_ecs.ludic Phase 6d: merge struct into property; storage follows use 2026-08-27 23:32:05 +03:00
emit_expr.ludic Scriptable properties (ECS-safe subset): @Computed and @OnSpawn 2026-08-27 21:01:32 +03:00
emit_game.ludic Add enable/disable across ECS scopes + @OnEnable/@OnDisable hooks 2026-08-27 23:05:47 +03:00
emit_head.ludic Phase 6d: merge struct into property; storage follows use 2026-08-27 23:32:05 +03:00
emit_intrin.ludic Phase 2: enforce statement separators (Rule B) 2026-08-27 15:41:29 +03:00
emit_intrin2.ludic Phase 2: enforce statement separators (Rule B) 2026-08-27 15:41:29 +03:00
emit_machine.ludic Phase 6e: unify builtin naming (loaders domain-first, set_reg) 2026-08-27 23:38:10 +03:00
emit_math.ludic Phase 2: enforce statement separators (Rule B) 2026-08-27 15:41:29 +03:00
emit_new.ludic Phase 6d: merge struct into property; storage follows use 2026-08-27 23:32:05 +03:00
emit_query.ludic Add enable/disable across ECS scopes + @OnEnable/@OnDisable hooks 2026-08-27 23:05:47 +03:00
emit_save.ludic Phase 2: enforce statement separators (Rule B) 2026-08-27 15:41:29 +03:00
emit_spawn.ludic Add enable/disable across ECS scopes + @OnEnable/@OnDisable hooks 2026-08-27 23:05:47 +03:00
emit_stmt.ludic Add enable/disable across ECS scopes + @OnEnable/@OnDisable hooks 2026-08-27 23:05:47 +03:00
emit_ui.ludic Phase 2: enforce statement separators (Rule B) 2026-08-27 15:41:29 +03:00
game-build.sh Baseline: Ludic compiler + toolchain, Phase 1 syntax fixes complete 2026-08-27 15:15:35 +03:00
io.ludic Baseline: Ludic compiler + toolchain, Phase 1 syntax fixes complete 2026-08-27 15:15:35 +03:00
lex.ludic Phase 6d: merge struct into property; storage follows use 2026-08-27 23:32:05 +03:00
ludicc.seed.ll Phase 6e: unify builtin naming (loaders domain-first, set_reg) 2026-08-27 23:38:10 +03:00
main.ludic Phase 6a: rename core vocabulary (game/main/component/archetype/system) 2026-08-27 18:22:13 +03:00
parse.ludic Phase 6d: merge struct into property; storage follows use 2026-08-27 23:32:05 +03:00
parse_game.ludic Phase 6b: a handler's query is @Queries only; drop the signature clauses 2026-08-27 23:20:09 +03:00
reseed.sh Phase 6a: rename core vocabulary (game/main/component/archetype/system) 2026-08-27 18:22:13 +03:00
str.ludic Phase 2: enforce statement separators (Rule B) 2026-08-27 15:41:29 +03:00
test.sh Baseline: Ludic compiler + toolchain, Phase 1 syntax fixes complete 2026-08-27 15:15:35 +03:00