Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

The Korrin guide

A hands-on introduction. Read it front to back once; keep the specification open afterwards as a reference.

Every code block below is run by CI, so what you see is what Korrin does.

  1. Getting started — install, run a file, use the REPL.
  2. Values — numbers, strings, booleans, nil, lists, maps.
  3. Control flow and functionsif, loops, fn, closures.
  4. Classes — objects, methods, inheritance, super.
  5. A worked example — a small program, start to finish.

The whole language on one page

  • Blocks are indentation; a newline ends a statement. No braces, no semicolons.
  • 19 keywords: and break class continue elif else false fn for if in nil not or pass return super true while.
  • # starts a comment.
  • Assignment is bare: x = 1. No let.
  • Every string interpolates: "hi {name}"; {{ is a literal brace.
  • Only nil and false are falsy.
  • / always gives a float; integer overflow is an error, not a wraparound.