Documentation

Welcome to the .prompt documentation. Here you'll find everything you need to get started and master the language.

Quick Links

The One Rule

@ means variable. Always. Only. Everywhere.

Structural keywords (like init, if, case, end) never use @.

Example

init do
  @version: 1.0
  @major: 1

  params:
    @name: str
    @age: int

end init

Hello, @name! You are @age years old.

This compiles to a simple greeting with the variables replaced at runtime.