Learn Kalm

Build a text-statistics CLI, from the first line to a tested program. Each lesson adds one small piece. Keep your files between lessons.

Build a text-statistics script in one file. The first seven lessons each supply a complete App.kalms program; replace the file as you progress. The final lesson explains the native tests available in project mode.

  1. Your first program
  2. Values and text
  3. Arguments and absence
  4. Count with a loop
  5. Extract a function
  6. Keep results together
  7. Read a file safely
  8. Test your CLI

Start with Getting started for the JDK and compiler setup. No previous Kalm knowledge is needed; familiarity with variables and functions helps.