AHA! LangAHA! Lang
  • Overview
  • Introduction
  • Getting Started
  • Language Tour
  • Course
  • Blog

Guides

  • Functions
  • Strings
  • Builtins
  • Arrays
  • CLI Reference
  • Code Snippets
  • Architecture
  • Changelog
  • FAQ

Links

  • GitHub
AHA! LangAHA! Lang
  • Overview
  • Introduction
  • Getting Started
  • Language Tour
  • Course
  • Blog

Guides

  • Functions
  • Strings
  • Builtins
  • Arrays
  • CLI Reference
  • Code Snippets
  • Architecture
  • Changelog
  • FAQ

Links

  • GitHub

Course

Learn to write AHA! Lang from scratch — 10 step-by-step lessons, from Hello, World to a small project.

  1. 1

    What Is AHA! Lang?

    Get to know AHA! Lang first: a modern programming language with an LLVM compiler that is easy to read and powerful.

  2. 2

    Hello, World: Your First Program

    Writing your first program, printing output, and understanding the simple anatomy of an AHA! Lang program.

  3. 3

    Variables and Data Types

    Storing data with let, getting to know Int, Bool, and String, and how to change a variable's value.

  4. 4

    Operators and Expressions

    Arithmetic, comparison, and logic in AHA! Lang — plus the boolean quirk that can be used directly in arithmetic.

  5. 5

    Working with Strings

    Text in AHA! Lang: literals, escape sequences, concatenation, comparison, and string length.

  6. 6

    Decisions with if / else

    Making programs branch: if/else in AHA! Lang is an expression that produces a value.

  7. 7

    Looping with while

    Running code repeatedly as long as a condition holds — the foundation of automation in AHA! Lang.

  8. 8

    Looping with for

    for i in 0..10 — a concise range loop, with break and continue.

  9. 9

    Functions: Reusable Code

    Wrapping logic in fn: parameters, return values, early return, and functions that call each other.

  10. 10

    A Small Project: Sharpening All Your Knowledge

    Final project: FizzBuzz, the Fibonacci sequence, and a prime number check — combining variables, expressions, loops, and functions.