Getting Started › Quick Startv0.1
Getting Started

Quick Start

Write and run your first Pseudo program in under 2 minutes.

  1. 1

    Create a file

    Create a file named hello.pseudo:

    hello.pseudo
    # hello.pseudo
    name = "world"
    print "Hello, {name}!"
    Output
    Hello, world!
  2. 2

    Run it

    bash
    pseudo run hello.pseudo
  3. 3

    Try an algorithm

    sort.pseudo
    func bubbleSort(arr)
        for i from 0 to len(arr)
            for j from 0 to len(arr) - i - 1
                if arr[j] > arr[j+1]
                    swap arr[j] and arr[j+1]
        return arr
    
    bubbleSort([5, 2, 9, 1])
    Output
    [1, 2, 5, 9]
  4. 4

    Step through it (educational mode)

    bash
    pseudo run sort.pseudo --step

    The --step flag pauses at each line and shows variable state. Perfect for understanding how an algorithm progresses.

  5. 5

    Try recursion

    fib.pseudo
    recursive fibonacci(n)
        if n <= 1: return n
        return fibonacci(n-1) + fibonacci(n-2)
    
    fibonacci(10)
    Output
    55

Auto-print Behavior

A bare expression or function call at any level automatically prints its value - you don't need print everywhere:

pseudo
x = 42
x          # → prints 42

arr = [1, 2, 3]
len(arr)   # → prints 3
Output
42 3

Key Concepts

Indentation defines blocks

The only strict rule. Spaces or tabs - consistent within a file.

Flexible keywords

if / when / check / given - all work. Defined by the .pmap file.

Dynamic typing

No type declarations. Types change freely like Python.

Auto-print

Bare values print automatically. No console.log spam needed.