A curated tour of the language, one concept per file.
Read these in order. Each file is standalone and runs under
kintsugi <file>.
datatypes.ktg- built-in types and how they printevaluation.ktg- left-to-right eval, word kinds, pathsfunctions.ktg- specs, refinements, closures, recursioncontexts.ktg- context!, scope, nested recordsseries.ktg- blocks, strings, indexed accessloops.ktg- loop dialect with/collect,/partition,/foldmatch.ktg- pattern matching with captures and guardsobjects.ktg- object dialect,field/required,maketypes.ktg-@type/wherefor subset types and unionserrors.ktg- attempt dialect pipelinesblocks.ktg- homoiconicity andcapturemetaprogramming.ktg-@compose,@template,@preprocessmodules.ktg-import,/using,load,exports
Files that require interpreter-only features declare
target: 'interpreter in their header and will be refused by
kintsugi -c.
games/<target>/<name>/main.ktg holds a full small game
per Lua-based target.
games/love2d/pong- Pong on LOVE2D
Compile a game with kintsugi -c main.ktg -o main.lua. The
compiler emits readable Lua you can hand-edit or extend.